home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Archived / MP3 / Riscster / riscsrc / h / runimage < prev   
Text File  |  2000-05-27  |  4KB  |  153 lines

  1. /*
  2.        _             __
  3.   ____(_)__ _______ / /____ ____
  4.  / __/ (_-</ __(_-</ __/ -_) __/
  5. /_/ /_/___/\__/___/\__/\__/_/   
  6.  
  7. Napster client for RISC OS
  8. Copyright (C) 2000 Robert Dimond
  9.  
  10. Portions are based on gnap by Ryan Dahl.
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program; if not, write to the Free Software
  24. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  25.  
  26. Bransley Cottage, Cleobury Mortimer, Kidderminster, WORCS. DY14 0BZ
  27. England. robdimond@cwcom.net
  28.  
  29. */
  30.  
  31. #include <stdio.h>
  32. #include <string.h>
  33. #include <stdlib.h>
  34.  
  35. #include "OS:os.h"
  36. #include "OS:wimp.h"
  37. #include "OS:messagetrans.h"
  38. #include "OS:wimpreadsy.h"
  39. #include "OS:font.h"
  40.  
  41. #include "proto.h"
  42.  
  43.  
  44.  
  45. #define C_INCOMING 10
  46. #define C_DOWNLOADS 5
  47. #define ISIZE 1024*64
  48.  
  49. #define MESSAGE_DELAY 200
  50.  
  51. #define CONNECTWIN_OKICON 7
  52. #define CONNECTWIN_PASSWD 3
  53. #define CONNECTWIN_USERNM 1
  54. #define CONNECTWIN_NEWUSR 4
  55. #define CONNECTWIN_EMAIL 5
  56. #define CONNECTWIN_COND 8
  57. #define CONNECTWIN_CONB 9
  58. #define CONNECTWIN_REMD 11
  59.  
  60. #define MESSAGEWIN_DISMISS 2
  61. #define MESSAGEWIN_MESSAGE 1
  62.  
  63. #define SEARCHWIN_ARTIST 2
  64. #define SEARCHWIN_TRACK 3
  65. #define SEARCHWIN_MAXRES 4
  66. #define SEARCHWIN_BRD 7
  67. #define SEARCHWIN_LTD 11
  68. #define SEARCHWIN_FRD 16
  69. #define SEARCHWIN_BRC 8
  70. #define SEARCHWIN_LTC 12
  71. #define SEARCHWIN_FRC 17
  72. #define SEARCHWIN_BRI 9
  73. #define SEARCHWIN_LTI 13
  74. #define SEARCHWIN_FRI 18
  75. #define SEARCHWIN_LTM 14
  76. #define SEARCHWIN_OK 19
  77.  
  78. #define GETWIN_FILE 0
  79. #define GETWIN_USER 1
  80. #define GETWIN_CANCEL 4
  81. #define GETWIN_OK 3
  82. #define GETWIN_PROGB 5
  83. #define GETWIN_PROGN 6
  84. #define GETWIN_BAR 7
  85.  
  86. #define INFOWIN_AUTHOR 2
  87. #define INFOWIN_VERSION 3
  88. #define INFOWIN_PURPOSE 1
  89.  
  90. #define AUTHOR "Robert Dimond (Drobe software)"
  91. #define VERSION "1.00 (27th May 2000)"
  92. #define PURPOSE "Client for Napsterâ„¢"
  93.  
  94. void connectedchange(int new);
  95. void motd_addline(char * text);
  96. void search_finish(void);
  97. void get_closewin(int);
  98. void search_updatebar(int);
  99. void mess_openwindow(wimp_block * block);
  100. void mess_closewindow(wimp_block * block);
  101. void mess_nullevent(wimp_block * block);
  102. void mess_usermessage(wimp_block * block);
  103. void mess_mouseclick(wimp_block * block);
  104. void mess_menuselect(wimp_block * block);
  105. void mess_redrawwindow(wimp_block * block);
  106. void mess_keypressed(wimp_block * block);
  107.  
  108. int error(os_error *);
  109.  
  110. void ui_alert(char * text);
  111. void ui_messalert(char * token);
  112. void ui_openconnectwin(void);
  113. void ui_iconbaricon(void);
  114. void ui_loadwindows(void);
  115. void ui_loadsprites(void);
  116. void ui_loadmessages(void);
  117. void ui_setupmenus(void);
  118. void ui_close(void);
  119. void ui_connectok(void);
  120. void ui_newuserclick(void);
  121. void ui_openconmenu(void);
  122. void ui_opencon2menu(void);
  123. void ui_updatecond(void);
  124. void ui_opencommenu(wimp_i icon);
  125.  
  126. void motd_openwin(void);
  127. void motd_redrawwin(wimp_block * block);
  128. void motd_reset(void);
  129. void motd_init(void);
  130. void motd_drawblock(wimp_draw * area, int more, int xorigin, int yorigin);
  131.  
  132. void search_openwin(void);
  133. void search_updatecond(void);
  134. void search_ok(void);
  135. void search_new(void);
  136. void search_ungrey(void);
  137. void search_update(search_result * result);
  138. void search_redrawwin(wimp_block * block);
  139. void search_drawblock(wimp_draw * area, int more, int xorigin, int yorigin);
  140. void search_click(wimp_block * block);
  141. char * search_trim(char * in, int len);
  142. void search_getok(int tno);
  143. void get_init(void);
  144. void ui_storedetails(void);
  145. void ui_loaddetails(void);
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.