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: CVibraPoolDocument implementation 00015 // 00016 // 00017 00018 00019 00020 // INCLUDE FILES 00021 #include "VibraPoolAppUi.h" 00022 #include "VibraPoolDocument.h" 00023 00024 // ============================ MEMBER FUNCTIONS =============================== 00025 00026 // ----------------------------------------------------------------------------- 00027 // CVibraPoolDocument::NewL() 00028 // Two-phased constructor. 00029 // ----------------------------------------------------------------------------- 00030 // 00031 CVibraPoolDocument* CVibraPoolDocument::NewL( CEikApplication& aApp ) 00032 { 00033 CVibraPoolDocument* self = NewLC( aApp ); 00034 CleanupStack::Pop( self ); 00035 return self; 00036 } 00037 00038 // ----------------------------------------------------------------------------- 00039 // CVibraPoolDocument::NewLC() 00040 // Two-phased constructor. 00041 // ----------------------------------------------------------------------------- 00042 // 00043 CVibraPoolDocument* CVibraPoolDocument::NewLC( CEikApplication& aApp ) 00044 { 00045 CVibraPoolDocument* self = 00046 new ( ELeave ) CVibraPoolDocument( aApp ); 00047 00048 CleanupStack::PushL( self ); 00049 self->ConstructL(); 00050 return self; 00051 } 00052 00053 // ----------------------------------------------------------------------------- 00054 // CVibraPoolDocument::ConstructL() 00055 // Symbian 2nd phase constructor can leave. 00056 // ----------------------------------------------------------------------------- 00057 // 00058 void CVibraPoolDocument::ConstructL() 00059 { 00060 // No implementation required 00061 } 00062 00063 // ----------------------------------------------------------------------------- 00064 // CVibraPoolDocument::CVibraPoolDocument() 00065 // C++ default constructor can NOT contain any code, that might leave. 00066 // ----------------------------------------------------------------------------- 00067 // 00068 CVibraPoolDocument::CVibraPoolDocument( CEikApplication& aApp ) 00069 : CAknDocument( aApp ) 00070 { 00071 // No implementation required 00072 } 00073 00074 // --------------------------------------------------------------------------- 00075 // CVibraPoolDocument::~CVibraPoolDocument() 00076 // Destructor. 00077 // --------------------------------------------------------------------------- 00078 // 00079 CVibraPoolDocument::~CVibraPoolDocument() 00080 { 00081 // No implementation required 00082 } 00083 00084 // --------------------------------------------------------------------------- 00085 // CVibraPoolDocument::CreateAppUiL() 00086 // Constructs CreateAppUi. 00087 // --------------------------------------------------------------------------- 00088 // 00089 CEikAppUi* CVibraPoolDocument::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 CVibraPoolAppUi ) ); 00095 } 00096 00097 // End of File