rpsdocument.cpp
来自「基于symbian UIQ 的一款古老的飞机游戏。对入门学习很有帮助。」· C++ 代码 · 共 82 行
CPP
82 行
// Copyright (c) Symbian Ltd 2008. All rights reserved.
// INCLUDE FILES
#include "rpsAppUi.h"
#include "rpsDocument.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CRpsDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CRpsDocument* CRpsDocument::NewL( CQikApplication& aApp )
{
CRpsDocument* self = NewLC( aApp );
CleanupStack::Pop( self );
return self;
}
// -----------------------------------------------------------------------------
// CRpsDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CRpsDocument* CRpsDocument::NewLC( CQikApplication& aApp )
{
CRpsDocument* self =
new ( ELeave ) CRpsDocument( aApp );
CleanupStack::PushL( self );
self->ConstructL();
return self;
}
// -----------------------------------------------------------------------------
// CRpsDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CRpsDocument::ConstructL()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CRpsDocument::CRpsDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CRpsDocument::CRpsDocument( CQikApplication& aApp )
: CQikDocument(aApp)
{
// No implementation required
}
// ---------------------------------------------------------------------------
// CRpsDocument::~CRpsDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CRpsDocument::~CRpsDocument()
{
// No implementation required
}
// ---------------------------------------------------------------------------
// CRpsDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CRpsDocument::CreateAppUiL()
{
// Create the application user interface, and return a pointer to it;
// the framework takes ownership of this object
return ( static_cast <CEikAppUi*> ( new ( ELeave )
CRpsAppUi ) );
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?