S60 3rd Edition SDK for Symbian OS
Example Applications Guide

LBSReferenceDocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : LbsReferenceDocument.cpp
00004 *  Part of     : LBSReference example application
00005 *  Interface   : 
00006 *  Description : This class creates the user interface of the application
00007 *  Version     : 1.0
00008 *
00009 *  Copyright (c) 2005-2006 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 "LBSReferenceDocument.h"
00018 #include "LBSReferenceAppUi.h"
00019 
00020 // ================= MEMBER FUNCTIONS =======================
00021 
00022 // constructor
00023 CLbsReferenceDocument::CLbsReferenceDocument(CEikApplication& aApp)
00024 : CAknDocument(aApp)
00025     {
00026     // No implementation required
00027     }
00028 
00029 // Symbian OS default constructor can leave.
00030 void CLbsReferenceDocument::ConstructL()
00031     {
00032     // No implementation required
00033     }
00034 
00035 // Two-phased constructor.
00036 CLbsReferenceDocument* CLbsReferenceDocument::NewL(CEikApplication& aApp)
00037     {
00038     //Create the object
00039     CLbsReferenceDocument* self = new (ELeave) CLbsReferenceDocument( aApp );
00040 
00041     //Push the object to the cleanup stack
00042     CleanupStack::PushL( self );
00043 
00044     //Construct the object
00045     self->ConstructL();
00046     
00047     //Pop the object from the cleanup stack
00048     CleanupStack::Pop( self );
00049  
00050     //Return pointer to the created object
00051     return self;
00052     }
00053 
00054 // destructor
00055 CLbsReferenceDocument::~CLbsReferenceDocument()
00056     {
00057     // No implementation required
00058     }
00059 
00060 // ----------------------------------------------------
00061 // CLbsReferenceDocument::CreateAppUiL()
00062 // constructs CLBSReferenceAppUi
00063 // ----------------------------------------------------
00064 //
00065 CEikAppUi* CLbsReferenceDocument::CreateAppUiL()
00066     {
00067     // Create the application user interface, and return a pointer to it
00068     return new (ELeave) CLbsReferenceAppUi;
00069     }
00070 
00071 // End of File

© Nokia 2006

Back to top