home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Connectivity / GateKeeper-2.1 / Coordinator.h < prev    next >
Encoding:
Text File  |  1997-04-02  |  3.8 KB  |  137 lines

  1. //************************************************************************
  2. //
  3. //    Coordinator.m  
  4. //        
  5. //        NXApp delegate, central control object for GateKeeper 
  6. // 
  7. //            by    Felipe A. Rodriguez        
  8. //
  9. //    The base for this file was:
  10. //    
  11. //            Coordinator.m
  12. //            by Joe Freeman, David LaVallee
  13. //            Subprocess Example, Release 2.0
  14. //            NeXT Computer, Inc.
  15. //
  16. //    This code is supplied "as is" the author makes no warranty as to its 
  17. //    suitability for any purpose.  This code is free and may be distributed 
  18. //    in accordance with the terms of the:
  19. //        
  20. //            GNU GENERAL PUBLIC LICENSE
  21. //            Version 2, June 1991
  22. //            copyright (C) 1989, 1991 Free Software Foundation, Inc.
  23. //             675 Mass Ave, Cambridge, MA 02139, USA
  24. //
  25. //************************************************************************
  26.  
  27. #import <objc/Object.h>
  28. #import <appkit/Application.h>
  29. #import <appkit/nextstd.h>
  30.  
  31.  
  32. @interface Coordinator:Object
  33. {
  34.     id  theIconView;
  35.     id  theAnimator;
  36.     id  onImage;            // pointer to our "linked" tiff
  37.     NXRect bRect;
  38.     id  timeCell;
  39.     id    commandView;
  40.     id    statusView;
  41.     id    diagWin;
  42.     id    statusWin;
  43.     id    connectionSpeedField;
  44.     id    timeField;
  45.     id    localIPField;
  46.     id    remoteIPField;
  47.     id    providerField;
  48.     id    statusButton;
  49.     id    linkMenuButton;
  50.     id    dial;
  51.     id  infoPanel;            /* The Info... panel */
  52.     id  helpPanel;            /* outlet to our help panel */
  53.     id  prefPanel;            /* The Preferences panel */
  54.     id    theSubprocess;
  55.     id    stringTable;
  56.     id  theTimer;
  57.     id  theOpenButton;
  58.     id  theGateDocEditor;
  59.     id  theOptionsEditor;
  60.     BOOL userWantsTermination;    // subprocess fail should not kill GateKeeper
  61.     char lastCall[MAXPATHLEN + 1];     // stores path of last .Gate doc invoked
  62.     id theGateServer;            // distributed objects server
  63.     id GateConnection;            // distributed objects server
  64.     char Path[MAXPATHLEN + 1];    // generic buffer to hold paths
  65.     char BPath[MAXPATHLEN + 1];    // generic buffer to hold paths
  66.     time_t ltime;                // time used in producing a startup delay
  67.     int numEntries[10];
  68.     id  strHashTable;            // keywords hashtable used in detecting link up
  69.     id  toolBar;                // our tool bar 
  70.     char *capturedStr[4];        // ptr array to address str's and baud str
  71.     id  iTimer;                    // the Inacitivity Timer/pppstats controller 
  72.     id  Parser;                    // pattern search object
  73.     int linkStg;                // stage of ppp link
  74.     int backOffDelay;            // delay to backoff on consecutive redials
  75.     int backOffDefault;            // backoff delay default value
  76.     id  hotListDelegate;        // hotlist window's delegate
  77.     BOOL appIconTime;            // display online time in app icon
  78. }
  79.  
  80. - showInfo:sender;
  81. - preferences:sender;
  82. - showHelpPanel:sender;
  83. - showStatusPanel:sender; 
  84. - showDiagWin:sender;
  85. - showTimerPanel:sender; 
  86.  
  87. - Dial:sender;  
  88. - DOFinished;
  89. - Link:sender;  
  90. - UnLink:sender;  
  91. - (BOOL)appAcceptsAnotherFile:sender; 
  92. - showMenuTimer:(char *)buffer; 
  93. - gotIt;
  94. - displayLinkStatus;
  95. - analyzeBuffer:(char *)buffer;
  96. - syslogdReset;
  97. - syslogdRun;
  98. - DialOnDemand;
  99. - namedReset:(const char *)buffer;
  100. - namedDod;
  101. - fifo;
  102. - toolBar:sender;
  103. - setTimeout:(int)minTillTimeout; 
  104. - readable:(const char *)nameOfFile;
  105. - optionsEditor;
  106. - appIconView;
  107. - (BOOL)mailInQueue; 
  108. - runScript:(const char *)type;  
  109. - redial:sender;
  110. - resetDelay:sender;
  111. - connectedAt:(const char *)speed;  
  112. - linkWithFile:(const char *)path;  
  113. - (const char *)extractName:(const char *)aPath;
  114. - (BOOL)debugFlag:(const char *)optionFile;
  115. - hotListDelegate; 
  116. - updateBrowser:sender;
  117. - setAppIconTimer:(BOOL)onOff; 
  118. - stringTable;
  119. - showAlert:(const char *)errorString;
  120. - (const char *)localString:(const char *)aString;
  121.  
  122.     // Subprocess Delegation
  123. - subprocessOutput:(char *)buffer;
  124. - subprocessDone;
  125.  
  126.     // Application Object Delegation
  127. - appDidInit:sender;
  128. - appWillTerminate:sender;
  129. - (int)app:sender openFile:(const char *)path type:(const char *)type; 
  130. - (BOOL)appAcceptsAnotherFile:sender; 
  131.  
  132.     // Window Object Delegation
  133. - windowWillMiniaturize:sender toMiniwindow:miniwindow; 
  134.  
  135. @end
  136.  
  137.