exampletimer.h

来自「电话录音」· C头文件 代码 · 共 48 行

H
48
字号
// Copyright (c) 2006 Nokia Corporation.

#ifndef _ACTIVE_TIMER_H
#define _ACTIVE_TIMER_H

#include <e32base.h>
#include <e32cons.h>
#include <f32file.h>
#include <UTF.H>

class MExampleTimerNotify
    {
    public:
        virtual void TimerExpired(TInt aError) = 0;
    };


class CExampleTimer : public CActive
    {
    public: // construction / destruction
    
        static CExampleTimer* NewL(MExampleTimerNotify& aNotifier);
        ~CExampleTimer();

    public: // new functions
    
        void After(TTimeIntervalMicroSeconds32 anInterval);

    protected: // CActive overrides
    
        void RunL();
        void DoCancel();

    protected: // construction

        CExampleTimer(MExampleTimerNotify& aNotifier);
        void ConstructL();

    protected: // data

		RTimer iTimer;
        MExampleTimerNotify& iNotifier;		
    };

#endif // _ACTIVE_TIMER_H

// End of file

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?