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: 00015 // 00016 00017 00018 // INCLUDE FILES 00019 #include <aknviewappui.h> 00020 #include <SqlSrvDemo.rsg> 00021 #include "DetailView.h" 00022 #include "DetailContainer.h" 00023 #include "SqlSrvDemo.hrh" 00024 00025 // ========================= MEMBER FUNCTIONS ================================== 00026 00027 // ----------------------------------------------------------------------------- 00028 // CDetailView::CDetailView() 00029 // C++ default constructor can NOT contain any code, that might leave. 00030 // ----------------------------------------------------------------------------- 00031 // 00032 CDetailView::CDetailView() 00033 { 00034 iIdentifier = TUid::Uid( EDetailViewId ); 00035 } 00036 00037 // ----------------------------------------------------------------------------- 00038 // CDetailView::NewL() 00039 // Two-phased constructor. 00040 // ----------------------------------------------------------------------------- 00041 // 00042 CDetailView* CDetailView::NewL() 00043 { 00044 CDetailView* self = CDetailView::NewLC(); 00045 CleanupStack::Pop( self ); 00046 return self; 00047 } 00048 00049 // ----------------------------------------------------------------------------- 00050 // CDetailView::NewLC() 00051 // Two-phased constructor. 00052 // ----------------------------------------------------------------------------- 00053 // 00054 CDetailView* CDetailView::NewLC() 00055 { 00056 CDetailView* self = new ( ELeave ) CDetailView(); 00057 CleanupStack::PushL( self ); 00058 self->ConstructL(); 00059 return self; 00060 } 00061 00062 // ----------------------------------------------------------------------------- 00063 // CDetailView::ConstructL() 00064 // Symbian 2nd phase constructor can leave. 00065 // ----------------------------------------------------------------------------- 00066 // 00067 void CDetailView::ConstructL() 00068 { 00069 BaseConstructL( R_BROWSER_VIEW ); 00070 } 00071 00072 // ----------------------------------------------------------------------------- 00073 // CDetailView::~CDetailView() 00074 // Destructor. 00075 // ----------------------------------------------------------------------------- 00076 // 00077 CDetailView::~CDetailView() 00078 { 00079 // No implementation required 00080 } 00081 00082 void CDetailView::ConstructContainerL() 00083 { 00084 iContainer = CDetailContainer::NewL( ClientRect(), *this ); 00085 } 00086 00087 // End of File