dddocument.cpp

来自「实现界面编程。symbian方面的界面开发」· C++ 代码 · 共 91 行

CPP
91
字号
/*
============================================================================
 Name        : ddDocument.cpp
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Application document class (model)
============================================================================
*/

// INCLUDE FILES
#include "ddAppUi.h"
#include "ddDocument.h"

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

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

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

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

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

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

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

// ---------------------------------------------------------------------------
// CddDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CddDocument::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 )
		CddAppUi ) );
	}

// End of File

⌨️ 快捷键说明

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