audioplayertimer.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 48 行

H
48
字号
#ifndef __AUDIOPLAYERTIMER_H__
#define __AUDIOPLAYERTIMER_H__

#include <e32base.h>

/**
* Observer for when Timer completes
*/
class MAudioPlayerTimerObserver
{
    public:
        virtual void TimerCompleteL() = 0;
};

// CLASS DECLARATION

/**
 *
 * @class    AudioPlayerTimer AudioPlayerTimer.h
 * @brief    This class is an elementary timer object, deriving from CTimer.
 * As soon as the object is created, it starts waiting for iTime to expire.
 * When it does, the RunL() is called and the observer is updated.
 *
 * Copyright (c) EMCC Software Ltd 2003
 * @version    1.0
 *
 */
class CAudioPlayerTimer    :    public CTimer
{
    public:
        static CAudioPlayerTimer* NewL(MAudioPlayerTimerObserver& aObserver, TInt aTime);
        ~CAudioPlayerTimer();

    public:                // CActive
        void RunL();
        void DoCancel();

    private:
        CAudioPlayerTimer(MAudioPlayerTimerObserver& aObserver, TInt aTime);
        void ConstructL();

    private:
        MAudioPlayerTimerObserver&    iObserver;
        TInt                    iTime;
};

#endif

⌨️ 快捷键说明

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