openvg/openvgrefimplementation/sfopenvg/test/inc/tigerAppUi.h
changeset 43 7579f232bae7
equal deleted inserted replaced
36:01a6848ebfd7 43:7579f232bae7
       
     1 /*
       
     2 * Copyright (c) 2009 Symbian Foundation Ltd
       
     3 * This component and the accompanying materials are made available
       
     4 * under the terms of the License "Eclipse Public License v1.0"
       
     5 * which accompanies this distribution, and is available
       
     6 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 *
       
     8 * Initial Contributors:
       
     9 * Symbian Foundation Ltd - initial contribution.
       
    10 * 
       
    11 * Contributors:
       
    12 *
       
    13 * Description:
       
    14 * Tiger app UI clas declaration
       
    15 */
       
    16 
       
    17 #ifndef TIGERAPPUI_H
       
    18 #define TIGERAPPUI_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <eikapp.h>
       
    22 #include <eikdoc.h>
       
    23 #include <e32std.h>
       
    24 #include <coeccntx.h>
       
    25 #include <aknappui.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CTigerContainer;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Application UI class that contains the CTigerContainer
       
    34  * (as required by the Symbian UI application architecture).
       
    35  */
       
    36 class CTigerAppUi : public CAknAppUi
       
    37     {
       
    38     public: // Constructors and destructor
       
    39 
       
    40         /**
       
    41          * Second phase constructor. Creates the CTigerContainer
       
    42          * and adds it to the control stack.
       
    43          */
       
    44         void ConstructL();
       
    45 
       
    46         /**
       
    47          * Destructor. Removes CTigerContainer from the control
       
    48          * stack and destroys it.
       
    49          */
       
    50         virtual ~CTigerAppUi();
       
    51 
       
    52     private: // Functions from base classes
       
    53 
       
    54         /**
       
    55          * This method is called by the EIKON framework just before it displays
       
    56          * a menu pane. Does nothing in this implemenation.
       
    57          */
       
    58         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
    59 
       
    60         /**
       
    61          * CEikAppUi method that is used to handle user commands.
       
    62          * Handles menu commands and application exit request.
       
    63          * @param aCommand Command to be handled.
       
    64          */
       
    65         void HandleCommandL(TInt aCommand);
       
    66 
       
    67         /**
       
    68          * CEikAppUi method that is used to handle key events.
       
    69          * Does nothing in this implemenation.
       
    70          * @param aKeyEvent Event to handled (ignored by this implementation).
       
    71          * @param aType Type of the key event (ignored by this implementation).
       
    72          * @return Response code. Always EKeyWasNotConsumed in this implementation.
       
    73          */
       
    74         virtual TKeyResponse HandleKeyEventL(
       
    75             const TKeyEvent& aKeyEvent,TEventCode aType);
       
    76 
       
    77     private: //Data
       
    78 
       
    79         /** GUI container that resides in this application UI. */
       
    80         CTigerContainer* iAppContainer;
       
    81     };
       
    82 
       
    83 #endif
       
    84 
       
    85 // End of File