home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xtimer.h < prev    next >
C/C++ Source or Header  |  1997-02-23  |  1KB  |  31 lines

  1. #ifndef __OOL_XTIMER_H__
  2. #define __OOL_XTIMER_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XTimer                                */
  8. /*                       derived from: XHandler                              */
  9. /*                        last update: 9/96                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xhandler.h"
  14.  
  15. class XTimer: public XHandler
  16. {
  17.       friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  18.    private:
  19.       int timerID;
  20.       ULONG timeOut;
  21.    public:
  22.       XTimer( const XWindow *);
  23.       ~XTimer() { Stop(); }
  24.       ULONG GetTimeOut(void) { return timeOut; }
  25.       BOOL Start( const ULONG time );
  26.       BOOL Stop( void );
  27.       virtual void TimerEvent(void) { ;}
  28. };
  29.  
  30. #endif
  31.