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

  1. //************************************************************************
  2. //
  3. //    Timer.h.  
  4. //
  5. //    by    Felipe A. Rodriguez        
  6. //
  7. //
  8. //    This code is supplied "as is" the author makes no warranty as to its 
  9. //    suitability for any purpose.  This code is free and may be distributed 
  10. //    in accordance with the terms of the:
  11. //        
  12. //            GNU GENERAL PUBLIC LICENSE
  13. //            Version 2, June 1991
  14. //            copyright (C) 1989, 1991 Free Software Foundation, Inc.
  15. //             675 Mass Ave, Cambridge, MA 02139, USA
  16. //
  17. //************************************************************************
  18.  
  19.  
  20. #import <appkit/appkit.h>
  21.  
  22. @interface Timer:Object
  23. {
  24.     id timerPanel;
  25.     id sessionView;
  26.     id monthView;
  27.     id previousMonthView;
  28.     id delegate;
  29.     struct tm *timestamp;
  30.     struct tm *tmMonth;
  31.     time_t ltime;                // elapsed time this session
  32.     time_t mtime;                // elapsed time this month
  33.      time_t savedTime;            // saved time usage this month
  34.      time_t monthTime;            // mo,yr last time timer was fired/freed
  35.     time_t StartTime;            // starttime of this session
  36. }
  37.  
  38. - initFromDDB;
  39. - timer:sender;
  40. - showTimerPanel:sender; 
  41. - timerEngine:sender;
  42. - Fire:sender; 
  43. - setDelegate:anObject;
  44. - stopTimer;
  45.  
  46.  
  47. @end
  48.