📄 sendasexampleengine.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -