voiceui/voiceuivoicerecognition/inc/vuiccontextcheckstate.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2006 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 VUICCONTEXTCHECKSTATE_H
       
    20 #define VUICCONTEXTCHECKSTATE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "vuicstate.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CNssVASDBMgr;
       
    27 class MNssTagMgr;
       
    28 class MNssContextMgr;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 * COMMENT
       
    33 */
       
    34 NONSHARABLE_CLASS( CContextCheckState ) : public CState
       
    35 {
       
    36     public:     // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * Symbian two-phased constructor.
       
    40         */
       
    41         static CContextCheckState* NewL( CDataStorage& aDataStorage, CUiModel& aUiModel );
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CContextCheckState();
       
    47                                 
       
    48     public:     // New functions
       
    49     
       
    50         /**
       
    51         * Handles received event
       
    52         * @param Event to be handled
       
    53         */
       
    54         virtual void HandleEventL( TInt aEvent );
       
    55         
       
    56         /**
       
    57         * Executes the state functionality
       
    58         */
       
    59         virtual void ExecuteL();
       
    60          
       
    61     protected:  // New functions
       
    62         
       
    63         /**
       
    64         * C++ default constructor.
       
    65         */
       
    66         CContextCheckState( CDataStorage& aDataStorage, CUiModel& aUiModel );
       
    67         
       
    68         /**
       
    69         * Symbian OS 2nd phase constructor.
       
    70         */
       
    71         virtual void ConstructL();
       
    72 
       
    73     private:    // Functions
       
    74     
       
    75         /**
       
    76         * Checks if UI language has changed and sets the language to undefined if changed
       
    77         * @return ETrue if language has changed else EFalse
       
    78         */
       
    79         TBool LanguageChangedL();
       
    80                 
       
    81     private:    // Data
       
    82     
       
    83         enum TInternalState
       
    84             {
       
    85             ENotStarted,
       
    86             EStarted,
       
    87             ECommandsReady,
       
    88             EDialReady,
       
    89             EVerificationReady
       
    90             };
       
    91     
       
    92         // Vas stuff for handling context operations
       
    93         CNssVASDBMgr*           iVasDbManager;
       
    94         MNssTagMgr*             iTagManager;
       
    95         MNssContextMgr*         iContextManager;
       
    96         
       
    97         // For handling internal state logics
       
    98         TInternalState          iInternalState;
       
    99         
       
   100         // Number of found voice tags
       
   101         TInt                    iTagCount;
       
   102 };
       
   103 
       
   104 #endif  // VUICCONTEXTCHECKSTATE_H
       
   105 
       
   106 // End of File