phoneuis/Ussd/inc/UssdAppUi.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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:  Declares UI class for application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef USSDAPPUI_H
       
    20 #define USSDAPPUI_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknappui.h>
       
    25 #include <bldvariant.hrh> 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CUssdContainer;
       
    29 class CUssdComms;
       
    30 
       
    31 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  Application UI class.
       
    37 *  Provides support for the following features:
       
    38 *  - EIKON control architecture
       
    39 * 
       
    40 *  @since 1.0
       
    41 */
       
    42 class CUssdAppUi : public CAknAppUi
       
    43     {
       
    44 
       
    45     public: // Constructors and destructor
       
    46 
       
    47         /**
       
    48         * Symbian OS default constructor.
       
    49         */      
       
    50         void ConstructL();
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */      
       
    55         ~CUssdAppUi();
       
    56 
       
    57 
       
    58     public: // New functions
       
    59 
       
    60         /**
       
    61         * Set manu pane items.
       
    62         * To be used only if help is defined, otherwise does nothing.
       
    63         *
       
    64         * @param aResourceId The resource ID.
       
    65         * @param aMenuPane The menu pane.
       
    66         */
       
    67         void DynInitMenuPaneL( TInt aResourceId,CEikMenuPane* aMenuPane );
       
    68 
       
    69         /**
       
    70         * Set's left seftkey visible.
       
    71         * To be used only when help not defined. Otherwise does nothing.
       
    72         *
       
    73         * @param aVisible ETrue if set visible.
       
    74         */
       
    75         void SetSoftkeySendVisibleL( TBool aVisible = ETrue );
       
    76 
       
    77         
       
    78     public: // Functions from base classes
       
    79         /**
       
    80         * From CEikAppUi, takes care of command handling.
       
    81         * @param aCommand command to be handled
       
    82         */
       
    83         void HandleCommandL( TInt aCommand );
       
    84 
       
    85         /**
       
    86         * From CEikAppUi, handles resource changes.
       
    87         * @param aType type of event.
       
    88         */
       
    89         virtual void HandleResourceChangeL( TInt aType );
       
    90 
       
    91     private:
       
    92 
       
    93         // From CAknAppUi
       
    94         void HandleForegroundEventL(TBool aForeground);
       
    95 
       
    96 
       
    97     private: //Data
       
    98 
       
    99         // Object for sneding the string.
       
   100         CUssdComms* iComms;
       
   101 
       
   102         // Main "view".
       
   103         CUssdContainer* iAppContainer;
       
   104 
       
   105         // Current softkeys. Used only when help is not defined.
       
   106         TInt iCbaResource;
       
   107 
       
   108         // Is control added to stack.
       
   109         TBool iIsAddedToStack;
       
   110     };
       
   111 
       
   112 #endif
       
   113 
       
   114 // End of File