Nokia N97 SDK
Example Applications Guide

ListboxDocument.cpp

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

© Nokia 2009

Back to top