srsf/speechsynthesis/tsrc/testapplication/inc/testappappui.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2004 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 *     Declares UI class for application.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef TESTAPPAPPUI_H
       
    21 #define TESTAPPAPPUI_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <eikapp.h>
       
    25 #include <eikdoc.h>
       
    26 #include <e32std.h>
       
    27 #include <coeccntx.h>
       
    28 #include <aknappui.h>
       
    29 #include <f32file.h>
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CTestAppContainer;
       
    33 class CTestAppEngine;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 * Application UI class.
       
    39 * Provides support for the following features:
       
    40 * - EIKON control architecture
       
    41 * 
       
    42 */
       
    43 class CTestAppAppUi : public CAknAppUi
       
    44     {
       
    45     public: // // Constructors and destructor
       
    46 
       
    47         /**
       
    48         * EPOC default constructor.
       
    49         */      
       
    50         void ConstructL();
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */      
       
    55         ~CTestAppAppUi();
       
    56         
       
    57         void ChangeTextL( TInt aIndex,  TPtrC aText, TInt aNumber = -1 );
       
    58         
       
    59         void ShowNoteL( TPtrC aText, TInt aNumber = -1 );
       
    60         
       
    61     private:
       
    62     
       
    63         // From MEikMenuObserver
       
    64         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
    65 
       
    66     private:
       
    67     
       
    68         /**
       
    69         * From CEikAppUi, takes care of command handling.
       
    70         * @param aCommand command to be handled
       
    71         */
       
    72         void HandleCommandL(TInt aCommand);
       
    73 
       
    74         /**
       
    75         * From CEikAppUi, handles key events.
       
    76         * @param aKeyEvent Event to handled.
       
    77         * @param aType Type of the key event. 
       
    78         * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
       
    79         */
       
    80         virtual TKeyResponse HandleKeyEventL(
       
    81             const TKeyEvent& aKeyEvent,TEventCode aType);       
       
    82         
       
    83     private: //Data
       
    84         
       
    85         CTestAppContainer*  iAppContainer; 
       
    86         
       
    87         CTestAppEngine*     iAppEngine;
       
    88         
       
    89         TBool               iServerConnected;
       
    90         
       
    91     };
       
    92 
       
    93 #endif
       
    94 
       
    95 // End of File