csmsdocument.cpp

来自「可以在symbian S60 3rd手机平台实现短信发送功能」· C++ 代码 · 共 63 行

CPP
63
字号
/* Copyright (c) 2003, Nokia. All rights reserved */

// INCLUDE FILES
#include "CSmsDocument.h"
#include "CSmsAppUi.h"

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

// -----------------------------------------------------------------------------
// CSmsDocument::CSmsDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CSmsDocument::CSmsDocument( CEikApplication& aApp )
: CAknDocument( aApp )
    {
    }

// ----------------------------------------------------------
// CSmsDocument::~CSmsDocument()
// Destructor.
// ----------------------------------------------------------
//
CSmsDocument::~CSmsDocument()
    {
    }

// -----------------------------------------------------------------------------
// CSmsDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSmsDocument::ConstructL()
    {
    }

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

    return self;
    }

// -----------------------------------------------------------------------------
// CSmsDocument::CreateAppUiL()
// Constructs CSmsAppUi.
// -----------------------------------------------------------------------------
//
CEikAppUi* CSmsDocument::CreateAppUiL()
    {
    return new ( ELeave ) CSmsAppUi;
    }

// End of File

⌨️ 快捷键说明

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