profilesapplication/Profiles/ProfileApp/UIsrc/CProfileAppUi.h
branchRCL_3
changeset 19 cd54903d48da
parent 0 ca436256272f
equal deleted inserted replaced
18:b7fa36b488f8 19:cd54903d48da
       
     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:  Application UI class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROFILEAPPUI_H
       
    21 #define CPROFILEAPPUI_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknViewAppUi.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CProfileMainView;
       
    28 class CProfileSettingsView;
       
    29 class CProfileEngineHandler;
       
    30 class CProfileIndexHandler;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34 *  Application UI class.
       
    35 *  CProfileAppUi instantiates two views and
       
    36 *  implements view switching and command handling.
       
    37 *  The views are owned by the base class.
       
    38 *
       
    39 *  @lib ProfileApp.app
       
    40 *  @since 1.2
       
    41 */
       
    42 NONSHARABLE_CLASS( CProfileAppUi ) : public CAknViewAppUi
       
    43     {
       
    44 
       
    45     public:		// Constructors and destructor
       
    46 
       
    47 		/**
       
    48 		* C++ default constructor.
       
    49 		*/
       
    50         CProfileAppUi(
       
    51             CProfileEngineHandler& aEngineHandler,
       
    52             CProfileIndexHandler& aIndexHandler );
       
    53 
       
    54         /**
       
    55         * Destructor
       
    56         */
       
    57         ~CProfileAppUi();
       
    58 
       
    59 		/**
       
    60 		* Symbian 2nd phase constructor.
       
    61 		*/
       
    62         void ConstructL();
       
    63 
       
    64 	public:		// Functions from base classes
       
    65 
       
    66         /**
       
    67         * From CEikAppUi
       
    68         */
       
    69 		void HandleCommandL( TInt aCommand );
       
    70 
       
    71 	private:	// Data
       
    72 
       
    73         // Engine handler
       
    74         CProfileEngineHandler& iEngineHandler;
       
    75 
       
    76         // Index handler
       
    77         CProfileIndexHandler& iIndexHandler;
       
    78 
       
    79 		// Ref: Pointer to Main view
       
    80 		CProfileMainView* iMainView;
       
    81 
       
    82 		// Ref: Pointer to Settings view
       
    83 		CProfileSettingsView* iSettingsView;
       
    84 	};
       
    85 
       
    86 #endif // CPROFILEAPPUI_H
       
    87 
       
    88 
       
    89 // End of File