qiqiweatherdocument.cpp

来自「手机天气预报系统」· C++ 代码 · 共 86 行

CPP
86
字号
/*
 ============================================================================
 Name		: QiQiWeatherDocument.cpp
 Author	  : Richie Chyi
 Copyright   : Copyright?2008
 Description : CQiQiWeatherDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "QiQiWeatherAppUi.h"
#include "QiQiWeatherDocument.h"

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

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

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

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

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

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

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

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

// End of File

⌨️ 快捷键说明

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