home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #4 / amigaacscoverdisc1998-041998.iso / utilities / shareware / comm / qamitrack / source / qamitrack.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-19  |  2.2 KB  |  72 lines

  1.  
  2. struct String
  3. {
  4.   ULONG bufLen;  /* sizeof buffer, including NUL byte */
  5.   char * buffer;
  6. };
  7.  
  8. struct Client
  9. {
  10.   struct Node node;
  11.   time_t timeStamp;
  12.   BOOL firstTime;
  13.   struct String * hostName;
  14.   struct String * userName;
  15.   struct String * realName;
  16.   struct String * winOpen;
  17.   struct String * comment;
  18.   struct String * listString;
  19.   int viewOffset;  /* For scrolling a string across the listView! */
  20. };
  21.  
  22.  
  23. int DoAction(int index, int action, BOOL BConfirm);
  24. BOOL ConnectToServer(struct WindowStuff *, char * szPeerName);
  25. BOOL PingServer(struct WindowStuff * win, struct SocketStuff * sSocket, char * szComment);
  26. void DoPeriodicUpdates(struct WindowStuff * win, struct SocketStuff * sSocket, struct TimerStuff * timer);
  27. void DoRefresh(void);
  28. struct CxStuff * SetupCxStuff(struct CxStuff * teardown, int pri, char * popkey);
  29. void SetMenuValues(void);
  30. void ListClicked(int index);
  31. char * GetDisplayListItem(int index);
  32. int GetNumItems(struct List * list);
  33. BOOL ParseBool(char * string);
  34. int getActionCycleWidth(struct WindowStuff * win);
  35. int UpdateActions(struct WindowStuff * win, char * command);
  36. void debug(int n);
  37. void FreeStringArray(char ** array);
  38. int ParseOutputLevel(char * name);
  39. int ParseViewBy(char * keyword);
  40. char * GetOutputLevelName(int id);
  41. char * GetViewByName(int k);
  42.  
  43. /* Call these to update program state & GUI */
  44. void SetCommentString(struct WindowStuff * win, char * newVal, BOOL BFinal);
  45. void SetServerString(struct WindowStuff * win, char * newVal);
  46. void SetPortNumber(struct WindowStuff * win, int nPort);
  47. void SetCurrentActionIndex(struct WindowStuff * win, int code);
  48. void SetCurrentAction(struct WindowStuff * win, char * name);
  49. void SetViewBy(ULONG ulItemCode);
  50. void SetVisibleTo(char * visibleTo);
  51. void StatMessage(char *);
  52.  
  53. int GetTrackHostByName(char * name);
  54. int GetTrackActionByName(char * name);
  55.  
  56. /* Bare-naked variables for TrackRexx_rxif.c ... should probably
  57.    have accessor functions but I'm too lazy ;) */
  58. extern int nPort, currentAction, nLastEntryClicked;
  59. extern BOOL BConfirmAppLaunch, BSendGoodbye, BEnabled;
  60. extern int nNumActions;
  61.  
  62. extern int nWinLeft;
  63. extern int nWinTop;
  64. extern int nWinWidth;
  65. extern int nWinHeight;
  66.  
  67. extern char * ActionLabels[20], * Actions[20];
  68. extern char * szServerName;
  69. extern char szMyHostName[100];
  70.  
  71. extern long lLastChangeAt;
  72.