home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xtimer.h < prev    next >
C/C++ Source or Header  |  1998-04-06  |  1KB  |  33 lines

  1. #ifndef __OOL_XTIMER_H__
  2. #define __OOL_XTIMER_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  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. // TBO
  16. class _export_ XTimer: public XHandler
  17. {
  18.       friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
  19.    private:
  20.       int timerID;
  21.       ULONG timeOut;
  22.    public:
  23.       XTimer( const XWindow *);
  24. //      ~XTimer() { Stop(); }
  25.       ~XTimer() { }
  26.       ULONG GetTimeOut(void) const { return timeOut; }
  27.       BOOL Start( const ULONG time );
  28.       BOOL Stop( void ) const;
  29.       virtual void TimerEvent(void) { ;}
  30. };
  31.  
  32. #endif
  33.