profilesapplication/Profiles/ProfileApp/UIsrc/CProfileDocument.h
branchRCL_3
changeset 18 b7fa36b488f8
parent 17 861562a14a53
child 19 cd54903d48da
equal deleted inserted replaced
17:861562a14a53 18:b7fa36b488f8
     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:  The document class for Profiles application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROFILEDOCUMENT_H
       
    21 #define CPROFILEDOCUMENT_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <AknDoc.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CEikAppUi;
       
    28 class CProfileEngineHandler;
       
    29 class CProfileIndexHandler;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33 *  The document class for Profiles application.
       
    34 *  CProfileDocument owns Engine handler and Index handler.
       
    35 *  An instance of both are needed during application lifetime.
       
    36 *  CProfileDocument initializes the Feature Manager.
       
    37 *
       
    38 *  @lib ProfileApp.app
       
    39 *  @since 1.2
       
    40 */
       
    41 NONSHARABLE_CLASS( CProfileDocument ) : public CAknDocument
       
    42     {
       
    43     public:		// Constructors and destructor
       
    44 
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         static CProfileDocument* NewL( CEikApplication& aApp );
       
    49 
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         ~CProfileDocument();
       
    54 
       
    55     private:	// Functions from base classes
       
    56 
       
    57        /**
       
    58        * From CEikDocument
       
    59        */
       
    60        CEikAppUi* CreateAppUiL();
       
    61 
       
    62 	private:
       
    63 
       
    64 		/**
       
    65         * C++ constructor.
       
    66         */
       
    67         CProfileDocument( CEikApplication& aApp );
       
    68 
       
    69         /**
       
    70         * By default Symbian 2nd phase constructor is private.
       
    71         */
       
    72 		void ConstructL();
       
    73 
       
    74 	private:	// Data
       
    75 
       
    76         // Own: Engine handler.
       
    77         CProfileEngineHandler* iEngineHandler;
       
    78 
       
    79         // Own: Index handler.
       
    80         CProfileIndexHandler* iIndexHandler;
       
    81 
       
    82 	};
       
    83 
       
    84 #endif // CPROFILEDOCUMENT_H
       
    85 
       
    86 
       
    87 // End of File