📄 s60uiexampledocument.cpp
字号:
// Copyright (c) 2006 Nokia Corporation.
#include "S60UIExampleAppUi.h"
#include "S60UIExampleDocument.h"
// -----------------------------------------------------------------------------
// CS60UIExampleDocument::CS60UIExampleDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CS60UIExampleDocument::CS60UIExampleDocument(CEikApplication& aApp)
: CAknDocument(aApp)
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CS60UIExampleDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CS60UIExampleDocument* CS60UIExampleDocument::NewL(CEikApplication& aApp)
{
CS60UIExampleDocument* self = NewLC(aApp);
CleanupStack::Pop(self);
return self;
}
// -----------------------------------------------------------------------------
// CS60UIExampleDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CS60UIExampleDocument* CS60UIExampleDocument::NewLC(CEikApplication& aApp)
{
CS60UIExampleDocument* self = new (ELeave) CS60UIExampleDocument(aApp);
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
// -----------------------------------------------------------------------------
// CS60UIExampleDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CS60UIExampleDocument::ConstructL()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CS60UIExampleDocument::~CS60UIExampleDocument()
// Destructor.
// -----------------------------------------------------------------------------
//
CS60UIExampleDocument::~CS60UIExampleDocument()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CS60UIExampleDocument::CreateAppUiL()
// Create the application user interface, and return a pointer to it
// -----------------------------------------------------------------------------
//
CEikAppUi* CS60UIExampleDocument::CreateAppUiL()
{
return(static_cast<CEikAppUi*>(new (ELeave) CS60UIExampleAppUi));
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -