diff -r 000000000000 -r b856a9924bbc data/testpublisher/src/testpublisherdocument.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/testpublisher/src/testpublisherdocument.cpp Wed Jun 02 13:22:05 2010 +0300 @@ -0,0 +1,95 @@ +/* +* Copyright (c) {Year(s)} {Copyright owner}. +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +* +* Initial Contributors: +* {Name} {Company} ? Initial contribution +* +* Contributors: +* {Name} {Company} ? {{Description of contribution}} +* +* Description: +* {{Description of the file}} +* +*/ + +// INCLUDE FILES +#include "TestPublisherAppUi.h" +#include "TestPublisherDocument.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CTestPublisherDocument::NewL() +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CTestPublisherDocument* CTestPublisherDocument::NewL(CEikApplication& aApp) + { + CTestPublisherDocument* self = NewLC(aApp); + CleanupStack::Pop(self); + return self; + } + +// ----------------------------------------------------------------------------- +// CTestPublisherDocument::NewLC() +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CTestPublisherDocument* CTestPublisherDocument::NewLC(CEikApplication& aApp) + { + CTestPublisherDocument* self = new (ELeave) CTestPublisherDocument(aApp); + + CleanupStack::PushL(self); + self->ConstructL(); + return self; + } + +// ----------------------------------------------------------------------------- +// CTestPublisherDocument::ConstructL() +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CTestPublisherDocument::ConstructL() + { + // No implementation required + } + +// ----------------------------------------------------------------------------- +// CTestPublisherDocument::CTestPublisherDocument() +// C++ default constructor can NOT contain any code, that might leave. +// ----------------------------------------------------------------------------- +// +CTestPublisherDocument::CTestPublisherDocument(CEikApplication& aApp) : + CAknDocument(aApp) + { + // No implementation required + } + +// --------------------------------------------------------------------------- +// CTestPublisherDocument::~CTestPublisherDocument() +// Destructor. +// --------------------------------------------------------------------------- +// +CTestPublisherDocument::~CTestPublisherDocument() + { + // No implementation required + } + +// --------------------------------------------------------------------------- +// CTestPublisherDocument::CreateAppUiL() +// Constructs CreateAppUi. +// --------------------------------------------------------------------------- +// +CEikAppUi* CTestPublisherDocument::CreateAppUiL() + { + // Create the application user interface, and return a pointer to it; + // the framework takes ownership of this object + return new (ELeave) CTestPublisherAppUi; + } + +// End of File