locationlandmarksuirefapp/inc/LmUiRefAppDocument.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   LandmarksUi Content File -
       
    15 *     Declares document for application.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef LMUIREFAPPDOCUMENT_H
       
    25 #define LMUIREFAPPDOCUMENT_H
       
    26 
       
    27 // INCLUDES
       
    28 #include <AknDoc.h>
       
    29 #include <EPos_Landmarks.h>
       
    30 
       
    31 // CONSTANTS
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class  CEikAppUi;
       
    35 
       
    36 class CPosLandmarkDatabase;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  CLmUiRefAppDocument application class.
       
    42 */
       
    43 class CLmUiRefAppDocument: public CAknDocument
       
    44     {
       
    45     public: // Constructors and destructor
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         static CLmUiRefAppDocument* NewL(CEikApplication& aApp);
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~CLmUiRefAppDocument();
       
    55 
       
    56     public: // New functions
       
    57 
       
    58        /**
       
    59         * Returns a reference to landmarks database.
       
    60         * @return database reference, not initialized necessarily
       
    61         */
       
    62     CPosLandmarkDatabase& LmDb() const;
       
    63 
       
    64     protected:  // New functions
       
    65 
       
    66     protected:  // Functions from base classes
       
    67 
       
    68     private:
       
    69 
       
    70         /**
       
    71         * EPOC default constructor.
       
    72         */
       
    73          CLmUiRefAppDocument(CEikApplication& aApp);
       
    74         void ConstructL();
       
    75 
       
    76     private:
       
    77 
       
    78         /**
       
    79         * From CEikDocument, create LmUiRefAppUi "App UI" object.
       
    80         */
       
    81         CEikAppUi* CreateAppUiL();
       
    82 
       
    83     private: //Data
       
    84     	///Own:
       
    85 
       
    86     	CPosLandmarkDatabase* iDb;
       
    87     };
       
    88 
       
    89 #endif
       
    90 
       
    91 // End of File
       
    92