sendasexampledocument.cpp

来自「这是一个自己开发的发送短信的程序」· C++ 代码 · 共 54 行

CPP
54
字号
/**
*
* @brief Definition of CSendAs ExampleApplication
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

// INCLUDE FILES
#include "SendAsExampleDocument.h"
#include "SendAsExampleAppUi.h"

// ================= MEMBER FUNCTIONS =======================

// constructor
CSendAsExampleDocument::CSendAsExampleDocument(CEikApplication& aApp)
: CAknDocument(aApp)
    {
    }

// destructor
CSendAsExampleDocument::~CSendAsExampleDocument()
    {
    }

// EPOC default constructor can leave.
void CSendAsExampleDocument::ConstructL()
    {
    }

// Two-phased constructor.
CSendAsExampleDocument* CSendAsExampleDocument::NewL(
        CEikApplication& aApp)     // CSendAsExampleApp reference
    {
    CSendAsExampleDocument* self = new (ELeave) CSendAsExampleDocument( aApp );
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop();

    return self;
    }

// ----------------------------------------------------
// CSendAsExampleDocument::CreateAppUiL()
// constructs CSendAsExampleAppUi
// ----------------------------------------------------
//
CEikAppUi* CSendAsExampleDocument::CreateAppUiL()
    {
    return new (ELeave) CSendAsExampleAppUi;
    }

// End of File

⌨️ 快捷键说明

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