outcallwatcher.h

来自「symbian 2rd下可以获取并显示来电号码」· C头文件 代码 · 共 54 行

H
54
字号
#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 + =
减小字号Ctrl + -
显示快捷键?