00001 // 00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). 00003 // All rights reserved. 00004 // This component and the accompanying materials are made available 00005 // under the terms of the License "Eclipse Public License v1.0" 00006 // which accompanies this distribution, and is available 00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00008 // 00009 // Initial Contributors: 00010 // Nokia Corporation - initial contribution. 00011 // 00012 // Contributors: 00013 // 00014 // Description: CSkeletonDocument implementation 00015 // 00016 // 00017 00018 00019 00020 // INCLUDE FILES 00021 #include "SkeletonAppUi.h" 00022 #include "SkeletonDocument.h" 00023 00024 // ============================ MEMBER FUNCTIONS =============================== 00025 00026 // ----------------------------------------------------------------------------- 00027 // CSkeletonDocument::NewL() 00028 // Two-phased constructor. 00029 // ----------------------------------------------------------------------------- 00030 // 00031 CSkeletonDocument* CSkeletonDocument::NewL( CEikApplication& aApp ) 00032 { 00033 CSkeletonDocument* self = NewLC( aApp ); 00034 CleanupStack::Pop( self ); 00035 return self; 00036 } 00037 00038 // ----------------------------------------------------------------------------- 00039 // CSkeletonDocument::NewLC() 00040 // Two-phased constructor. 00041 // ----------------------------------------------------------------------------- 00042 // 00043 CSkeletonDocument* CSkeletonDocument::NewLC( CEikApplication& aApp ) 00044 { 00045 CSkeletonDocument* self = 00046 new ( ELeave ) CSkeletonDocument( aApp ); 00047 00048 CleanupStack::PushL( self ); 00049 self->ConstructL(); 00050 return self; 00051 } 00052 00053 // ----------------------------------------------------------------------------- 00054 // CSkeletonDocument::ConstructL() 00055 // Symbian 2nd phase constructor can leave. 00056 // ----------------------------------------------------------------------------- 00057 // 00058 void CSkeletonDocument::ConstructL() 00059 { 00060 // No implementation required 00061 } 00062 00063 // ----------------------------------------------------------------------------- 00064 // CSkeletonDocument::CSkeletonDocument() 00065 // C++ default constructor can NOT contain any code, that might leave. 00066 // ----------------------------------------------------------------------------- 00067 // 00068 CSkeletonDocument::CSkeletonDocument( CEikApplication& aApp ) 00069 : CAknDocument( aApp ) 00070 { 00071 // No implementation required 00072 } 00073 00074 // --------------------------------------------------------------------------- 00075 // CSkeletonDocument::~CSkeletonDocument() 00076 // Destructor. 00077 // --------------------------------------------------------------------------- 00078 // 00079 CSkeletonDocument::~CSkeletonDocument() 00080 { 00081 // No implementation required 00082 } 00083 00084 // --------------------------------------------------------------------------- 00085 // CSkeletonDocument::CreateAppUiL() 00086 // Constructs CreateAppUi. 00087 // --------------------------------------------------------------------------- 00088 // 00089 CEikAppUi* CSkeletonDocument::CreateAppUiL() 00090 { 00091 // Create the application user interface, and return a pointer to it; 00092 // the framework takes ownership of this object 00093 return ( static_cast <CEikAppUi*> ( new ( ELeave ) 00094 CSkeletonAppUi ) ); 00095 } 00096 00097 // End of File