launcher/inc/launcherappui.h
branchRCL_3
changeset 21 b3cee849fa46
parent 20 48060abbbeaf
child 22 fad26422216a
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
     1 /*
       
     2 * Copyright (c) 2009 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef LAUNCHERAPPUI_H
       
    20 #define LAUNCHERAPPUI_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <eikapp.h>
       
    24 #include <eikdoc.h>
       
    25 #include <e32std.h>
       
    26 #include <coeccntx.h>
       
    27 #include <aknViewAppUi.h>
       
    28 #include <akntabgrp.h>
       
    29 #include <aknnavide.h>
       
    30 #include "../symbian_version.hrh"
       
    31 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 )
       
    32 #include <sendui.h>
       
    33 #endif 
       
    34 #include "launcherengine.h"
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 class CLauncherContainerApps;
       
    38 class CLauncherEngine;
       
    39 
       
    40 
       
    41 // CONSTANTS
       
    42 //const ?type ?constant_var = ?constant;
       
    43 
       
    44 
       
    45 // CLASS DECLARATION
       
    46 
       
    47 /**
       
    48 * Application UI class.
       
    49 * Provides support for the following features:
       
    50 * - EIKON control architecture
       
    51 * - view architecture
       
    52 * - status pane
       
    53 * 
       
    54 */
       
    55 class CLauncherAppUi : public CAknViewAppUi
       
    56     {
       
    57     public: // // Constructors and destructor
       
    58 
       
    59         /**
       
    60         * EPOC default constructor.
       
    61         */      
       
    62         void ConstructL();
       
    63 
       
    64         /**
       
    65         * Destructor.
       
    66         */      
       
    67         ~CLauncherAppUi();
       
    68         
       
    69     public: // New functions
       
    70 
       
    71     public: // Functions from base classes
       
    72 
       
    73     private:
       
    74         // From MEikMenuObserver
       
    75         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
    76 
       
    77     private:
       
    78         /**
       
    79         * From CEikAppUi, takes care of command handling.
       
    80         * @param aCommand command to be handled
       
    81         */
       
    82         void HandleCommandL(TInt aCommand);
       
    83 
       
    84         /**
       
    85         * From CEikAppUi, handles key events.
       
    86         * @param aKeyEvent Event to handled.
       
    87         * @param aType Type of the key event. 
       
    88         * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
       
    89         */
       
    90         virtual TKeyResponse HandleKeyEventL(
       
    91             const TKeyEvent& aKeyEvent,TEventCode aType);
       
    92 
       
    93     private: //Data
       
    94         CAknNavigationControlContainer* iNaviPane;
       
    95         CAknTabGroup*                   iTabGroup;
       
    96         CAknNavigationDecorator*        iDecoratedTabGroup;
       
    97         CLauncherEngine*                iEngine;
       
    98 
       
    99         #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 )
       
   100         #ifdef RD_SUPPORT_SENDUI_API_V2
       
   101           CSendUi*                        iSendUi;
       
   102         #else
       
   103           CSendAppUi*                     iSendAppUi;
       
   104         #endif
       
   105         #endif
       
   106 
       
   107     public:
       
   108         CAknTabGroup* TabGroup() { return iTabGroup; }     
       
   109     
       
   110     };
       
   111 
       
   112 #endif
       
   113 
       
   114 // End of File