diff -r ccd8e69b5392 -r 496ad160a278 tsrc/CenrepEditor/Src/cenrepeditordocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/CenrepEditor/Src/cenrepeditordocument.cpp Fri Jun 11 13:36:18 2010 +0300 @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +// INCLUDE FILES +#include "cenrepeditordocument.h" +#include "cenrepeditorappui.h" + +// ================= MEMBER FUNCTIONS ======================= + +// ----------------------------------------------------------------------------- +// CCenrepEditorDocument::CCenrepEditorDocument(CEikApplication& aApp) +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CCenrepEditorDocument::CCenrepEditorDocument(CEikApplication& aApp) +: CAknDocument(aApp) + { + } + +// ----------------------------------------------------------------------------- +// CCenrepEditorDocument::~CCenrepEditorDocument() +// Destructor. +// ----------------------------------------------------------------------------- +// +CCenrepEditorDocument::~CCenrepEditorDocument() + { + + } + +// ----------------------------------------------------------------------------- +// CCenrepEditorDocument::ConstructL() +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CCenrepEditorDocument::ConstructL() + { + + } + +// ----------------------------------------------------------------------------- +// CCenrepEditorDocument::NewL(CEikApplication& aApp) +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CCenrepEditorDocument* CCenrepEditorDocument::NewL(CEikApplication& aApp) // CCenrepEditorApp reference + { + CCenrepEditorDocument* self = new (ELeave) CCenrepEditorDocument( aApp ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +// ---------------------------------------------------- +// CCenrepEditorDocument::CreateAppUiL() +// Constructs CCenrepEditorAppUi. +// ---------------------------------------------------- +// +CEikAppUi* CCenrepEditorDocument::CreateAppUiL() + { + return new (ELeave) CCenrepEditorAppUi; + } +