examples/sfexamples/Wikipedia/src/AboutView.cpp

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

Generated by  doxygen 1.6.2