00001
00002
00003 #ifndef _ACTIVE_TIMER_H
00004 #define _ACTIVE_TIMER_H
00005
00006 #include <e32base.h>
00007
00008 class MActiveTimerNotify;
00009
00010 class CActiveTimer : public CActive
00011 {
00012 public:
00013
00014 static CActiveTimer* NewL(MActiveTimerNotify& aNotifier);
00015 ~CActiveTimer();
00016
00017 public:
00018
00019 void After(TTimeIntervalMicroSeconds32 anInterval);
00020
00021 protected:
00022
00023 void RunL();
00024 void DoCancel();
00025
00026 protected:
00027
00028 CActiveTimer(MActiveTimerNotify& aNotifier);
00029 void ConstructL();
00030
00031 protected:
00032
00033 RTimer iTimer;
00034 MActiveTimerNotify& iNotifier;
00035 };
00036
00037 #endif // _ACTIVE_TIMER_H
00038
00039