Nokia N97 SDK
Example Applications Guide

ChoiceListExDocument.cpp

00001 /**
00002  * Copyright (c) 2007 Nokia Corporation.
00003  * This material, including documentation and any related
00004  * computer programs, is protected by
00005  * copyright controlled by Nokia Corporation.
00006  */
00007 
00008 
00009 
00010 // INCLUDE FILES
00011 #include "ChoiceListExAppUi.h"
00012 #include "ChoiceListExDocument.h"
00013 
00014 
00015 // ============================ MEMBER FUNCTIONS ===============================
00016 
00017 // -----------------------------------------------------------------------------
00018 // CChoiceListExDocument::NewL()
00019 // Two-phased constructor.
00020 // -----------------------------------------------------------------------------
00021 //
00022 CChoiceListExDocument* CChoiceListExDocument::NewL( CEikApplication& aApp )
00023     {
00024     CChoiceListExDocument* self = NewLC( aApp );
00025     CleanupStack::Pop( self );
00026     return self;
00027     }
00028 
00029 // -----------------------------------------------------------------------------
00030 // CChoiceListExDocument::NewLC()
00031 // Two-phased constructor.
00032 // -----------------------------------------------------------------------------
00033 //
00034 CChoiceListExDocument* CChoiceListExDocument::NewLC( CEikApplication& aApp )
00035     {
00036     CChoiceListExDocument* self = new ( ELeave ) CChoiceListExDocument( aApp );
00037     CleanupStack::PushL( self );
00038     self->ConstructL();
00039     return self;
00040     }
00041 
00042 // -----------------------------------------------------------------------------
00043 // CChoiceListExDocument::ConstructL()
00044 // Symbian 2nd phase constructor can leave.
00045 // -----------------------------------------------------------------------------
00046 //
00047 void CChoiceListExDocument::ConstructL()
00048     {
00049         // no implementation required
00050     }    
00051 
00052 // -----------------------------------------------------------------------------
00053 // CChoiceListExDocument::CChoiceListExDocument()
00054 // C++ default constructor can NOT contain any code, that might leave.
00055 // -----------------------------------------------------------------------------
00056 //
00057 CChoiceListExDocument::CChoiceListExDocument( CEikApplication& aApp ) : CAknDocument( aApp ) 
00058     {
00059         // no implementation required
00060     }
00061 
00062 // ---------------------------------------------------------------------------
00063 // CChoiceListExDocument::~CChoiceListExDocument()
00064 // Destructor.
00065 // ---------------------------------------------------------------------------
00066 //
00067 CChoiceListExDocument::~CChoiceListExDocument()
00068     {
00069         // no implementation required
00070     }
00071 
00072 // ---------------------------------------------------------------------------
00073 // CChoiceListExDocument::CreateAppUiL()
00074 // Constructs CreateAppUi.
00075 // ---------------------------------------------------------------------------
00076 //
00077 CEikAppUi* CChoiceListExDocument::CreateAppUiL()
00078     {
00079     // Create the application user interface, and return a pointer to it,
00080     // the framework takes ownership of this object
00081     CEikAppUi* appUi = new ( ELeave ) CChoiceListExAppUi;
00082     return appUi;
00083     }
00084 

© Nokia 2009

Back to top