|
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 VUICVERIFICATIONINITSTATE_H |
|
20 #define VUICVERIFICATIONINITSTATE_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( CVerificationInitState ) : public CState |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Symbian two-phased constructor. |
|
39 */ |
|
40 static CVerificationInitState* NewL( CDataStorage& aDataStorage, CUiModel& aUiModel ); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CVerificationInitState(); |
|
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 CVerificationInitState( CDataStorage& aDataStorage, CUiModel& aUiModel ); |
|
66 |
|
67 private: // Functions |
|
68 |
|
69 /** |
|
70 * Initializes recognition system |
|
71 * @since 3.2 |
|
72 */ |
|
73 void InitializeL(); |
|
74 |
|
75 #ifdef __FULLDUPLEX_CHANGE |
|
76 /** |
|
77 * Starts sampling |
|
78 * @since 3.2 |
|
79 */ |
|
80 void StartSamplingL(); |
|
81 #endif // __FULLDUPLEX_CHANGE |
|
82 |
|
83 /** |
|
84 * Starts recognition initialization |
|
85 * @since 3.2 |
|
86 */ |
|
87 void RecognizeInitL(); |
|
88 |
|
89 private: // Data |
|
90 |
|
91 enum TInternalState |
|
92 { |
|
93 ENotStarted, |
|
94 EStarted, |
|
95 #ifdef __FULLDUPLEX_CHANGE |
|
96 ESamplingStarted, |
|
97 #endif // __FULLDUPLEX_CHANGE |
|
98 EInitialized, |
|
99 EReady |
|
100 }; |
|
101 |
|
102 // For handling internal state logics |
|
103 TInternalState iInternalState; |
|
104 }; |
|
105 |
|
106 #endif // VUICVERIFICATIONINITSTATE_H |
|
107 |
|
108 // End of File |