cbs/cbsui/UiInc/CCbsUiappDocument.h
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Header file for the CCbsUiappDocument class.
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CBSUIAPPDOCUMENT_H
       
    21 #define __CBSUIAPPDOCUMENT_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <eikdoc.h>
       
    25   
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MCbs;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  The Document class
       
    34 */
       
    35 class CCbsUiappDocument : public CEikDocument
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * Returns new instance of CbsUiDocument.
       
    41         *
       
    42         * @param aApp application
       
    43         * @return new instance of CbsUiDocument
       
    44         */
       
    45         static CCbsUiappDocument* NewL( CEikApplication& aApp );
       
    46      
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CCbsUiappDocument();
       
    51         
       
    52     public: // From CEikDocument
       
    53         
       
    54         /**
       
    55         * Stop doc file being created
       
    56         * @param aDoOpen not used
       
    57         * @param aFilename not used 
       
    58         * @param aFs not used
       
    59         * @return NULL
       
    60         */
       
    61         inline CFileStore* OpenFileL( TBool /*aDoOpen*/, 
       
    62             const TDesC& /*aFilename*/,
       
    63             RFs& /*aFs*/);
       
    64 
       
    65         /**
       
    66         * Since 3.0
       
    67         * Stop doc file being created
       
    68         * @param aFileStore not used
       
    69         * @param aFile not used
       
    70         */
       
    71         inline void OpenFileL( CFileStore*& /*aFileStore*/, RFile& /*aFile*/ );
       
    72 
       
    73     private: // Constructors
       
    74 
       
    75         /**
       
    76         * C++ default constructor.
       
    77         *
       
    78         * @param aApp application
       
    79         */
       
    80         CCbsUiappDocument( CEikApplication& aApp );
       
    81 
       
    82         /**
       
    83         * Symbian OS constructor.
       
    84         */
       
    85         void ConstructL();
       
    86         
       
    87     private: // Functions from base classes
       
    88 
       
    89         /**
       
    90         * From CEikDocument
       
    91         * Creates and returns an instance of CBSUI application
       
    92         *
       
    93         * @return an instance of CBSUI application
       
    94         */
       
    95         CEikAppUi* CreateAppUiL();
       
    96 
       
    97     private: // Data
       
    98 
       
    99         // Own: For creating connection to the server
       
   100         MCbs* iServer;
       
   101     };
       
   102 
       
   103 
       
   104 #include "CCbsUiappDocument.inl"
       
   105 
       
   106 #endif      // __CBSUIAPPDOCUMENT_H
       
   107 
       
   108 // End of File