⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 audioplayertimer.h

📁 series60 应用程序开发的源代码 series60 应用程序开发的源代码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -