basiclocationinfodisplay/blid/ui/inc/CBlidDocument.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:  Blid application document class definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CBLIDDOCUMENT_H
       
    20 #define CBLIDDOCUMENT_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <AknDoc.h>
       
    24    
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CEikAppUi;
       
    28 class CBlidEng;
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  CBlidDocument application class.
       
    33 */
       
    34 class CBlidDocument : public CAknDocument
       
    35     {
       
    36     public: // Constructors and destructor
       
    37         /**
       
    38          * Two-phased constructor.
       
    39          */
       
    40         static CBlidDocument* NewL(CEikApplication& aApp);
       
    41 
       
    42         /**
       
    43          * Destructor.
       
    44          */
       
    45         virtual ~CBlidDocument();
       
    46 
       
    47     private:
       
    48 
       
    49         /**
       
    50          * C++ default constructor.
       
    51          */
       
    52         CBlidDocument(CEikApplication& aApp);
       
    53 
       
    54         /**
       
    55          * By default Symbian 2nd phase constructor is private.
       
    56          */        
       
    57         void ConstructL();
       
    58 
       
    59     public: // New functions
       
    60         /**
       
    61          * Creates the Blid engine owned by this object.
       
    62          *
       
    63          */
       
    64         void CreateEngineL();
       
    65 
       
    66         /**
       
    67          * Returns a pointer to blid application engine.
       
    68          */
       
    69         CBlidEng* Engine();
       
    70 
       
    71     private: //From CAknDocument
       
    72         /**
       
    73          * Stores the document of application.
       
    74          */
       
    75         void StoreL( CStreamStore& aStore, 
       
    76             CStreamDictionary& aStreamDic ) const;
       
    77         /**
       
    78          * Restores the document of application
       
    79          */
       
    80         void RestoreL( const CStreamStore& aStore,
       
    81             const CStreamDictionary& aStreamDic );
       
    82             
       
    83         /**
       
    84          * Restores the document's state from the specified file, 
       
    85          * or creates a new default document
       
    86          */
       
    87         CFileStore* OpenFileL(TBool aDoOpen, const TDesC& aFileName, RFs& aFs);
       
    88 
       
    89     private: // From CEikDocument
       
    90         /**
       
    91          * From CEikDocument, create CLocAppUi "App UI" object.
       
    92          */
       
    93         CEikAppUi* CreateAppUiL();
       
    94 
       
    95     private: // Data
       
    96         /// Own: A pointer to Blid's engine
       
    97         CBlidEng* iEngine; 
       
    98     };
       
    99 
       
   100 #endif // CBLIDDOCUMENT_H
       
   101 
       
   102 // End of File