voiceui/voiceuivoicerecognition/inc/vuictutorialstate.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 VUICTUTORIALSTATE_H
       
    20 #define VUICTUTORIALSTATE_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "vuicstate.h"
       
    24 #include "vuictutorial.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 * COMMENT
       
    31 */
       
    32 NONSHARABLE_CLASS( CTutorialState ) : public CState
       
    33 {
       
    34     public:     // Constructors and destructor
       
    35 
       
    36         /**
       
    37         * Symbian two-phased constructor.
       
    38         */
       
    39         static CTutorialState* NewL( CDataStorage& aDataStorage, CUiModel& aUiModel );
       
    40 
       
    41         /**
       
    42         * Destructor.
       
    43         */
       
    44         virtual ~CTutorialState();
       
    45                                 
       
    46     public:     // New functions
       
    47     
       
    48         /**
       
    49         * Handles received event
       
    50         * @param Event to be handled
       
    51         */
       
    52         virtual void HandleEventL( TInt aEvent );
       
    53         
       
    54         /**
       
    55         * Executes the state functionality
       
    56         */
       
    57         virtual void ExecuteL();
       
    58          
       
    59     protected:  // New functions
       
    60         
       
    61         /**
       
    62         * C++ default constructor.
       
    63         */
       
    64         CTutorialState( CDataStorage& aDataStorage, CUiModel& aUiModel );
       
    65         
       
    66         /**
       
    67         * Symbian OS 2nd phase constructor.
       
    68         */
       
    69         virtual void ConstructL();
       
    70 
       
    71     private:    // Functions
       
    72                 
       
    73     private:    // Data
       
    74 
       
    75         enum TInternalState
       
    76             {
       
    77             ENotStarted,
       
    78             EStarted,
       
    79             EInitialized,
       
    80             ECompleted
       
    81             };
       
    82 
       
    83         // For checking current tutorial state
       
    84         CTutorial::TTutorialState       iCurrentTutorialState;
       
    85         
       
    86         // For handling internal state logics
       
    87         TInternalState                  iInternalState;
       
    88 };
       
    89 
       
    90 #endif  // VUICTUTORIALSTATE_H
       
    91 
       
    92 // End of File