ActiveTimer.h
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1k
源码类别:

Symbian

开发平台:

C/C++

  1. // Copyright (c) 2006 Nokia Corporation.
  2. #ifndef _ACTIVE_TIMER_H
  3. #define _ACTIVE_TIMER_H
  4. #include <e32base.h>
  5. class MActiveTimerNotify;
  6. class CActiveTimer : public CActive
  7.     {
  8.     public: // construction / destruction
  9.     
  10.         static CActiveTimer* NewL(MActiveTimerNotify& aNotifier);
  11.         ~CActiveTimer();
  12.     public: // new functions
  13.     
  14.         void After(TTimeIntervalMicroSeconds32 anInterval);
  15.     protected: // CActive overrides
  16.     
  17.         void RunL();
  18.         void DoCancel();
  19.     protected: // construction
  20.         CActiveTimer(MActiveTimerNotify& aNotifier);
  21.         void ConstructL();
  22.     protected: // data
  23. RTimer iTimer;
  24.         MActiveTimerNotify& iNotifier;
  25.     };
  26. #endif // _ACTIVE_TIMER_H
  27. // End of file