examhelloworlddocument.cpp
来自「国内著名嵌入式培训机构内部资料,内含一些实例代码,包括技术专题书籍」· C++ 代码 · 共 86 行
CPP
86 行
/*
============================================================================
Name : ExamHelloWorldDocument.cpp
Author :
Copyright : Your copyright notice
Description : CExamHelloWorldDocument implementation
============================================================================
*/
// INCLUDE FILES
#include "ExamHelloWorldAppUi.h"
#include "ExamHelloWorldDocument.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CExamHelloWorldDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CExamHelloWorldDocument* CExamHelloWorldDocument::NewL(CEikApplication& aApp)
{
CExamHelloWorldDocument* self = NewLC(aApp);
CleanupStack::Pop(self);
return self;
}
// -----------------------------------------------------------------------------
// CExamHelloWorldDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CExamHelloWorldDocument* CExamHelloWorldDocument::NewLC(CEikApplication& aApp)
{
CExamHelloWorldDocument* self = new ( ELeave ) CExamHelloWorldDocument( aApp );
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
// -----------------------------------------------------------------------------
// CExamHelloWorldDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CExamHelloWorldDocument::ConstructL()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CExamHelloWorldDocument::CExamHelloWorldDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CExamHelloWorldDocument::CExamHelloWorldDocument(CEikApplication& aApp) :
CAknDocument(aApp)
{
// No implementation required
}
// ---------------------------------------------------------------------------
// CExamHelloWorldDocument::~CExamHelloWorldDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CExamHelloWorldDocument::~CExamHelloWorldDocument()
{
// No implementation required
}
// ---------------------------------------------------------------------------
// CExamHelloWorldDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CExamHelloWorldDocument::CreateAppUiL()
{
// Create the application user interface, and return a pointer to it;
// the framework takes ownership of this object
return new ( ELeave )CExamHelloWorldAppUi;
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?