sendasexampleengine.h

来自「这是一个自己开发的发送短信的程序」· C头文件 代码 · 共 64 行

H
64
字号
#ifndef SENDASEXAMPLEENGINE_H
#define SENDASEXAMPLEENGINE_H

// INCLUDES
#include <e32base.h>    // CActive
#include <sendas.h>     // MSendAsObserver, CSendAs

// CLASS DECLARATION

class MSendAsExampleEngineObserver
    {
    public:
        virtual void HandleSaveMessageCompleteL(TInt aError) = 0;
    };

/**
 *
 * @class	CSendAsExampleEngine SendAsExampleEngine.h
 * @brief
 *
 * Copyright (c) EMCC Software Ltd 2003
 * @version	1.0
 *
 */
class CSendAsExampleEngine : public CActive,
                             public MSendAsObserver
    {
    public:
        static CSendAsExampleEngine* NewL(MSendAsExampleEngineObserver& aObserver);
        ~CSendAsExampleEngine();

        void CreateMessageL(TInt aMtmIndex, const TDesC& aAddress);
        void ResetL();
        inline const CDesCArray& AvailableMtms();

    private: // from MSendAsObserver
    	virtual TBool CapabilityOK(TUid aCapabilty, TInt aResponse);

    private:
        CSendAsExampleEngine(MSendAsExampleEngineObserver& aObserver);
        void ConstructL();

    private: // from CActive
        virtual void RunL();
        virtual void DoCancel();

    private:
        MSendAsExampleEngineObserver& iObserver;
        CSendAs* iSendAs;
    };



inline const CDesCArray& CSendAsExampleEngine::AvailableMtms()
    {
    __ASSERT_DEBUG(iSendAs != NULL, User::Invariant());
    return iSendAs->AvailableMtms();
    }


#endif // SENDASEXAMPLEENGINE_H

// End of File

⌨️ 快捷键说明

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