Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1998 - 2000 Microsoft Corporation
  3. Module Name:
  4. timer.h
  5. Abstract:
  6. Contains:
  7. Declarations of classes, routines and constants needed for
  8. timer manipulations.
  9. Environment:
  10. User Mode - Win32
  11. History:
  12. 1. 14-Feb-2000 -- File creation Ilya Kleyman (ilyak)
  13. --*/
  14. #ifndef __h323ics_timer_h
  15. #define __h323ics_timer_h
  16. #define NATH323_TIMER_QUEUE NULL // use default timer queue
  17. // Classes (Q931 src, dest and H245) inheriting
  18. // from this create timers
  19. // this class provides the callback method for the event manager
  20. class TIMER_PROCESSOR
  21. {
  22. protected:
  23. TIMER_HANDLE m_TimerHandle; // RTL timer queue timer
  24. public:
  25. TIMER_PROCESSOR (void)
  26. : m_TimerHandle (NULL)
  27. {}
  28. // This method is implemented by Q931_INFO and LOGICAL_CHANNEL
  29. virtual void TimerCallback (void) = 0;
  30. virtual void IncrementLifetimeCounter (void) = 0;
  31. virtual void DecrementLifetimeCounter (void) = 0;
  32. DWORD TimprocCreateTimer (
  33. IN DWORD Interval); // in milliseconds
  34. DWORD TimprocCancelTimer (void);
  35. };
  36. #endif // __h323ics_timer_h