www.pudn.com > UIQ_Code1.rar > CommandsDocument.cpp
// CommandsDocument.cpp // // © Symbian Software Ltd 2005. All rights reserved. // #include "CommandsDocument.h" #include "CommandsAppUi.h" #include "CommandsExternalInterface.h" #include#include /** Creates and constructs the document. This is called by CCommandsApplication::CreateDocumentL() which in turn is called by the UI framework. */ CCommandsDocument* CCommandsDocument::NewL(CQikApplication& aApp) { CCommandsDocument* self = new (ELeave) CCommandsDocument(aApp); CleanupStack::PushL(self); self->ConstructL(); CleanupStack::Pop(self); return self; } /** The constructor of the document class just passes the supplied reference to the constructor initialization list. */ CCommandsDocument::CCommandsDocument(CQikApplication& aApp) : CQikDocument(aApp) { } /** Second phase construction for the document. */ void CCommandsDocument::ConstructL() { } /** Destructor for the document. */ CCommandsDocument::~CCommandsDocument() { } /** This is called by the UI framework as soon as the document has been created. It creates an instance of the ApplicationUI. The Application UI class is an instance of a CEikAppUi derived class. */ CEikAppUi* CCommandsDocument::CreateAppUiL() { return new (ELeave) CCommandsAppUi; }