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

  1. //*****************************************************************************
  2. //
  3. //    InactivityTimer.h.      
  4. //
  5. //    Tracks and determines whether inactivity timeout is warranted
  6. //
  7. //        by    Felipe A. Rodriguez        
  8. //
  9. //    This code is supplied "as is" the author makes no warranty as to its 
  10. //    suitability for any purpose.  This code is free and may be distributed 
  11. //    in accordance with the terms of the:
  12. //        
  13. //            GNU GENERAL PUBLIC LICENSE
  14. //            Version 2, June 1991
  15. //            copyright (C) 1989, 1991 Free Software Foundation, Inc.
  16. //             675 Mass Ave, Cambridge, MA 02139, USA
  17. //
  18. //*****************************************************************************
  19.  
  20.  
  21.  
  22. #import <appkit/appkit.h>
  23.  
  24. @interface InactivityTimer:Object
  25. {
  26.     int  timeout;                // timeout in minutes
  27.     int iBaseCntr;                // inactivity timeout base counter
  28.     int iPeriodCntr;            // number of inactive periods measured
  29.     BOOL posNI;                    // possibly non-interactive session? ivar
  30.     BOOL pppstats;                // whether pppstats is enabled and socket open
  31.     id commandView;
  32.     id sView;
  33.     id mailView;
  34.     id ITPanel;                    // inactivity timeout panel
  35.     BOOL wasHidden;                // whether the app was hidden when called
  36.     BOOL preTimeout;            // whether pre timeout is enabled
  37.     int iTimeThresh;            // inactivity timeout threshold
  38.     id imageList;
  39. }
  40.  
  41. - init;
  42. - setTimeout:(int)minTillTimeout; 
  43. - inactivityTimeout;
  44. - resetInactivityTimer;
  45. - setPosNonInter:(BOOL)pni; 
  46. - (BOOL)posNonInter; 
  47. - pppstats:aView;
  48. - pppstatsReset;
  49. - cancel:sender;
  50. - continue:sender;
  51. - setMailIconAnim;
  52. - _animate;
  53. - removeTimedEntry;
  54.  
  55. @end
  56.