voiceui/voiceuivoicerecognition/inc/vuicappui.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2007 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 VUICAPPUI_H
       
    20 #define VUICAPPUI_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <eikapp.h>
       
    24 #include <eikdoc.h>
       
    25 #include <e32std.h>
       
    26 #include <coeccntx.h>
       
    27 #include <aknappui.h>
       
    28 
       
    29 #include "vuimvoicerecogdialogcallback.h"
       
    30 #include "vuimcalldetectorobserver.h"
       
    31 #include "vuimkeycallback.h"
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CVoiceRecognitionDialogImpl;
       
    35 class CCallDetector;
       
    36 class CKeyGrabber;
       
    37 class CFoldObserver;
       
    38 class CNotificationObserver;
       
    39 
       
    40 // CLASS DECLARATION
       
    41 
       
    42 /**
       
    43 * Application UI class.
       
    44 * Provides support for the following features:
       
    45 * - EIKON control architecture
       
    46 * - view architecture
       
    47 * - status pane
       
    48 */
       
    49 NONSHARABLE_CLASS( CAppUi ) : public CAknAppUi,
       
    50                               public MVoiceRecognitionDialogCallback,
       
    51                               public MCallDetectorObserver,
       
    52                               public MKeyCallback
       
    53     {
       
    54     public: // Constructors and destructor
       
    55 
       
    56         /**
       
    57         * Symbian C++ default constructor.
       
    58         */      
       
    59         void ConstructL();
       
    60 
       
    61         /**
       
    62         * Destructor.
       
    63         */      
       
    64         virtual ~CAppUi();
       
    65         
       
    66     public: // Functions from base classes
       
    67 
       
    68         /**
       
    69         * From MVoiceRecognitionDialogCallback
       
    70         *
       
    71         * @see MVoiceRecognitionDialogCallback for more information
       
    72         */
       
    73         void DialogDismissed();
       
    74         
       
    75         /**
       
    76         * From MCallDetectorObserver
       
    77         *
       
    78         * @see MCallDetectorObserver for more information
       
    79         */
       
    80         void CallDetectedL();
       
    81         
       
    82         /**
       
    83         * From MKeyCallback
       
    84         *
       
    85         * @see MKeyCallback for more information
       
    86         */
       
    87         void HandleKeypressL( TInt aSoftkey );
       
    88 
       
    89     public: // New Functions
       
    90 
       
    91     private: // Functions from base classes
       
    92 
       
    93         /**
       
    94         * From CEikAppUi
       
    95         *
       
    96         * @see CEikAppUi for more information
       
    97         */
       
    98         void HandleCommandL( TInt aCommand );
       
    99         
       
   100         /**
       
   101         * From CEikAppUi
       
   102         *
       
   103         * @see CEikAppUi for more information
       
   104         */
       
   105         void PrepareToExit( );
       
   106         
       
   107     private: // New functions
       
   108         
       
   109         /**
       
   110          * Handles command line parameters.
       
   111          * @param aCommandLine CApaCommandLine object
       
   112          */
       
   113         TBool ProcessCommandParametersL( CApaCommandLine& aCommandLine );    
       
   114     
       
   115     private: // data
       
   116         
       
   117         // Recognition dialog
       
   118         CVoiceRecognitionDialogImpl*    iRecognitionDialog;
       
   119         
       
   120         // Call detector
       
   121         CCallDetector*                  iCallDetector;
       
   122         
       
   123         // Key grabber
       
   124         CKeyGrabber*                    iKeyGrabber;
       
   125         
       
   126         // Fold observer
       
   127         CFoldObserver*                  iFoldObserver;
       
   128         
       
   129         // Soft notification observer
       
   130         CNotificationObserver*          iNotificationObserver;
       
   131     };
       
   132 
       
   133 #endif  // VUICAPPUI_H
       
   134 
       
   135 // End of File
       
   136 
       
   137