graphicsdocument.cpp

来自「symbian os c++ 碰撞小球 代码」· C++ 代码 · 共 86 行

CPP
86
字号
/*
 ============================================================================
 Name		: GraphicsDocument.cpp
 Author	  : 
 Copyright   : Your copyright notice
 Description : CGraphicsDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "GraphicsAppUi.h"
#include "GraphicsDocument.h"

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

// -----------------------------------------------------------------------------
// CGraphicsDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CGraphicsDocument* CGraphicsDocument::NewL(CEikApplication& aApp)
	{
	CGraphicsDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CGraphicsDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CGraphicsDocument* CGraphicsDocument::NewLC(CEikApplication& aApp)
	{
	CGraphicsDocument* self = new (ELeave) CGraphicsDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CGraphicsDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CGraphicsDocument::ConstructL()
	{
	// No implementation required
	}

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

// ---------------------------------------------------------------------------
// CGraphicsDocument::~CGraphicsDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CGraphicsDocument::~CGraphicsDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CGraphicsDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CGraphicsDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CGraphicsAppUi;
	}

// End of File

⌨️ 快捷键说明

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