launcher/inc/launcherappui.h
changeset 0 d6fe6244b863
child 7 685c7418c584
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     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 <SendUi.h>
       
    31 
       
    32 #include "LauncherEngine.h"
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CLauncherContainerApps;
       
    36 class CLauncherEngine;
       
    37 
       
    38 
       
    39 // CONSTANTS
       
    40 //const ?type ?constant_var = ?constant;
       
    41 
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 /**
       
    46 * Application UI class.
       
    47 * Provides support for the following features:
       
    48 * - EIKON control architecture
       
    49 * - view architecture
       
    50 * - status pane
       
    51 * 
       
    52 */
       
    53 class CLauncherAppUi : public CAknViewAppUi
       
    54     {
       
    55     public: // // Constructors and destructor
       
    56 
       
    57         /**
       
    58         * EPOC default constructor.
       
    59         */      
       
    60         void ConstructL();
       
    61 
       
    62         /**
       
    63         * Destructor.
       
    64         */      
       
    65         ~CLauncherAppUi();
       
    66         
       
    67     public: // New functions
       
    68 
       
    69     public: // Functions from base classes
       
    70 
       
    71     private:
       
    72         // From MEikMenuObserver
       
    73         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
    74 
       
    75     private:
       
    76         /**
       
    77         * From CEikAppUi, takes care of command handling.
       
    78         * @param aCommand command to be handled
       
    79         */
       
    80         void HandleCommandL(TInt aCommand);
       
    81 
       
    82         /**
       
    83         * From CEikAppUi, handles key events.
       
    84         * @param aKeyEvent Event to handled.
       
    85         * @param aType Type of the key event. 
       
    86         * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
       
    87         */
       
    88         virtual TKeyResponse HandleKeyEventL(
       
    89             const TKeyEvent& aKeyEvent,TEventCode aType);
       
    90 
       
    91     private: //Data
       
    92         CAknNavigationControlContainer* iNaviPane;
       
    93         CAknTabGroup*                   iTabGroup;
       
    94         CAknNavigationDecorator*        iDecoratedTabGroup;
       
    95         CLauncherEngine*                iEngine;
       
    96 
       
    97         #ifdef RD_SUPPORT_SENDUI_API_V2
       
    98           CSendUi*                        iSendUi;
       
    99         #else
       
   100           CSendAppUi*                     iSendAppUi;
       
   101         #endif
       
   102 
       
   103     public:
       
   104         CAknTabGroup* TabGroup() { return iTabGroup; }     
       
   105     
       
   106     };
       
   107 
       
   108 #endif
       
   109 
       
   110 // End of File