uitestdocument.cpp

来自「Symbian S60 UI training example」· C++ 代码 · 共 58 行

CPP
58
字号
/*
========================================================================
 Name        : UiTestDocument.cpp
 Author      : Andreas Jakl
 Copyright   : 2007, Mopius
 Description : 
========================================================================
*/
// [[[ begin generated region: do not modify [Generated User Includes]
#include "UiTestDocument.h"
#include "UiTestAppUi.h"
// ]]] end generated region [Generated User Includes]

/**
 * @brief Constructs the document class for the application.
 * @param anApplication the application instance
 */
CUiTestDocument::CUiTestDocument( CEikApplication& anApplication )
	: CAknDocument( anApplication )
	{
	}

/**
 * @brief Completes the second phase of Symbian object construction. 
 * Put initialization code that could leave here.  
 */ 
void CUiTestDocument::ConstructL()
	{
	}
	
/**
 * Symbian OS two-phase constructor.
 *
 * Creates an instance of CUiTestDocument, constructs it, and
 * returns it.
 *
 * @param aApp the application instance
 * @return the new CUiTestDocument
 */
CUiTestDocument* CUiTestDocument::NewL( CEikApplication& aApp )
	{
	CUiTestDocument* self = new (ELeave) CUiTestDocument( aApp );
	CleanupStack::PushL( self );
	self->ConstructL();
	CleanupStack::Pop( self );
	return self;
	}

/**
 * @brief Creates the application UI object for this document.
 * @return the new instance
 */	
CEikAppUi* CUiTestDocument::CreateAppUiL()
	{
	return new (ELeave) CUiTestAppUi;
	}
				

⌨️ 快捷键说明

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