|
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 VUICINITSTATE_H |
|
20 #define VUICINITSTATE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "vuicstate.h" |
|
24 |
|
25 #include "voiceuibldvariant.hrh" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * COMMENT |
|
32 */ |
|
33 NONSHARABLE_CLASS( CInitState ) : public CState |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Symbian two-phased constructor. |
|
39 */ |
|
40 static CInitState* NewL( CDataStorage& aDataStorage, CUiModel& aUiModel ); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CInitState(); |
|
46 |
|
47 public: // New functions |
|
48 |
|
49 /** |
|
50 * Handles received event |
|
51 * @param Event to be handled |
|
52 */ |
|
53 virtual void HandleEventL( TInt aEvent ); |
|
54 |
|
55 /** |
|
56 * Executes the state functionality |
|
57 */ |
|
58 virtual void ExecuteL(); |
|
59 |
|
60 protected: // New functions |
|
61 |
|
62 /** |
|
63 * C++ default constructor. |
|
64 */ |
|
65 CInitState( CDataStorage& aDataStorage, CUiModel& aUiModel ); |
|
66 |
|
67 private: // Functions |
|
68 |
|
69 /** |
|
70 * Initializes recognition system |
|
71 * @since 3.2 |
|
72 */ |
|
73 void InitializeL(); |
|
74 |
|
75 #ifndef __WINS__ |
|
76 #ifdef __FULLDUPLEX_CHANGE |
|
77 /** |
|
78 * Starts sampling |
|
79 * @since 3.2 |
|
80 */ |
|
81 void StartSamplingL(); |
|
82 #endif // __FULLDUPLEX_CHANGE |
|
83 #endif // __WINS__ |
|
84 |
|
85 /** |
|
86 * Starts recognition initialization |
|
87 * @since 3.2 |
|
88 */ |
|
89 void RecognizeInitL(); |
|
90 |
|
91 private: // Data |
|
92 |
|
93 enum TInternalState |
|
94 { |
|
95 ENotStarted, |
|
96 EStarted, |
|
97 #ifndef __WINS__ |
|
98 #ifdef __FULLDUPLEX_CHANGE |
|
99 ESamplingStarted, |
|
100 #endif // __FULLDUPLEX_CHANGE |
|
101 #endif // __WINS__ |
|
102 EInitialized, |
|
103 EReady |
|
104 }; |
|
105 |
|
106 // For handling internal state logics |
|
107 TInternalState iInternalState; |
|
108 }; |
|
109 |
|
110 #endif // VUICINITSTATE_H |
|
111 |
|
112 // End of File |