S60 3rd Edition SDK for Symbian OS
Example Applications Guide

LmUiRefAppDocument.h

00001 /*
00002 * ============================================================================
00003 *  Name        : LmUiRefAppDocument.h
00004 *  Part of     : Landmarks UI Reference Application 
00005 *  Interface   : 
00006 *  Description : 
00007 *     Declares document for application.
00008 *  Version     : 
00009 *
00010 *  Copyright (c) 2005-2006 Nokia Corporation.
00011 *  This material, including documentation and any related 
00012 *  computer programs, is protected by copyright controlled by 
00013 *  Nokia Corporation.
00014 * ============================================================================
00015 */
00016 
00017 #ifndef LMUIREFAPPDOCUMENT_H
00018 #define LMUIREFAPPDOCUMENT_H 
00019 
00020 // INCLUDES
00021 #include <akndoc.h>
00022 #include <Epos_Landmarks.h>
00023    
00024 // CONSTANTS
00025 
00026 // FORWARD DECLARATIONS
00027 class  CEikAppUi;
00028 
00029 class CPosLandmarkDatabase;
00030 
00031 // CLASS DECLARATION
00032 
00033 /**
00034 *  CLmUiRefAppDocument application class.
00035 */
00036 class CLmUiRefAppDocument: public CAknDocument
00037     {
00038     public: // Constructors and destructor
00039         /**
00040         * Two-phased constructor.
00041         */
00042         static CLmUiRefAppDocument* NewL(CEikApplication& aApp);
00043 
00044         /**
00045         * Destructor.
00046         */
00047         virtual ~CLmUiRefAppDocument();
00048 
00049     public: // New functions
00050 
00051        /**
00052         * Returns a reference to landmarks database.
00053         * @return database reference, not initialized necessarily
00054         */
00055     CPosLandmarkDatabase& LmDb() const;
00056 
00057     protected:  // New functions
00058 
00059     protected:  // Functions from base classes
00060 
00061     private:
00062 
00063         /**
00064         * EPOC default constructor.
00065         */
00066          CLmUiRefAppDocument(CEikApplication& aApp);
00067         void ConstructL();
00068 
00069     private:
00070 
00071         /**
00072         * From CEikDocument, create LmUiRefAppUi "App UI" object.
00073         */
00074         CEikAppUi* CreateAppUiL();
00075 
00076     private: //Data
00077         ///Own:
00078 
00079         CPosLandmarkDatabase* iDb;
00080     };
00081 
00082 #endif
00083 
00084 // End of File
00085 

© Nokia 2006

Back to top