oandxdocument.cpp

来自「Symbian OS C++ for Mobile Phones v3 Exam」· C++ 代码 · 共 57 行

CPP
57
字号
// Copyright (c) 2004 - 2006, Symbian Software Ltd. All rights reserved.

#include "OandXApplication.h"
#include "OandXAppUi.h"
#include "OandXDocument.h"

COandXDocument* COandXDocument::NewL(CEikApplication& aApp)
/**
	Factory function allocates new initialized document object.
	
	@param	aApp			The application object, which is used
							to initialize the newly-created document object.
	@return					New initialized document object.  The
							object is owned by the caller.
 */
    {
    COandXDocument* self = new(ELeave) COandXDocument(aApp);
    return self;
    }

COandXDocument::COandXDocument(CEikApplication& aApp)
/**
	This constructor is only defined to initialize the
	platform-specific superclass with the supplied application object.
	
	@param	aApp			Application object which is used to
							initialize the platform-specific
							superclass.
 */
:	CAknDocument(aApp)
    {
	// empty.
    }

COandXDocument::~COandXDocument()
/**
	This d'tor is empty but defining it here ensures
	that only one instance is generated.
 */
    {
	// empty.
    }

CEikAppUi* COandXDocument::CreateAppUiL()
/**
	Implement CEikDocument by creating a new app UI object.
	
	@return					New app UI object.  This is CBase-initialized
							and its constructor has been called, but no
							secondary initialization has been performed.
 */
    {
    iAppUi = new (ELeave) COandXAppUi;
    return iAppUi;
    }

⌨️ 快捷键说明

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