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

📄 outcallwatcher.h

📁 symbian 2rd下可以获取并显示来电号码
💻 H
字号:
#ifndef __OUTCALLWATCHER_H__
#define __OUTCALLWATCHER_H__

// INCLUDE
#include <etel.h>

class MOutCallWatcherObserver
    {
    public:
        virtual void HandleOutCallHungUpL() = 0;
    };


class COutCallWatcher : public CActive
    {
    public:
        // Construction and desconstruction
        static COutCallWatcher* NewL(MOutCallWatcherObserver& aObserver, RLine& aLine);
        ~COutCallWatcher();

        // From base class CActive
        virtual void RunL();
        virtual void DoCancel();

        // New method of this class
        void MakeCallL(const TDesC& aNumber);

        inline void Test1();

    private:
        // the state of this object governs what happens when the StartL() / Stop() / RunL() / 
        // DoCancel() functions are called.
        enum TState	{ ENoState, EDialling, EWatching };

        // Construction
        COutCallWatcher(MOutCallWatcherObserver& aObserver, RLine& aLine);
        void ConstructL();

        // New method of this class
        void StartL();
        void Stop();

        // Attributes
        MOutCallWatcherObserver& iObserver;
        RLine& iLine;
        RCall iCall;
        RCall::TStatus iCallStatus;
        TState iState;
        TPtrC iNumber;
    };

void COutCallWatcher::Test1() { }
#endif

⌨️ 快捷键说明

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