1 /* |
|
2 * Copyright (c) 2006-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 VUICRECORDSTATE_H |
|
20 #define VUICRECORDSTATE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "vuicstate.h" |
|
24 |
|
25 #include <vuivoicerecogdefs.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CGlobalProgressDialog; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * COMMENT |
|
33 */ |
|
34 NONSHARABLE_CLASS( CRecordState ) : public CState |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Symbian two-phased constructor. |
|
40 */ |
|
41 static CRecordState* NewL( CDataStorage& aDataStorage, CUiModel& aUiModel ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CRecordState(); |
|
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 CRecordState( CDataStorage& aDataStorage, CUiModel& aUiModel ); |
|
67 |
|
68 /** |
|
69 * Handles timed event |
|
70 */ |
|
71 void DoTimedEventL(); |
|
72 |
|
73 private: // Functions |
|
74 |
|
75 private: // Data |
|
76 |
|
77 enum TInternalState |
|
78 { |
|
79 ENotStarted, |
|
80 EStarted, |
|
81 ERecording, |
|
82 EStopped, |
|
83 EFinished |
|
84 }; |
|
85 |
|
86 // Record progressdialog |
|
87 CGlobalProgressDialog* iProgressDialog; |
|
88 |
|
89 // For handling internal state logics |
|
90 TInternalState iInternalState; |
|
91 |
|
92 // Used to count timer ticks |
|
93 TInt iTickCount; |
|
94 |
|
95 // Timer data model |
|
96 VTimerModel iTModel; |
|
97 }; |
|
98 |
|
99 #endif // VUICRECORDSTATE_H |
|
100 |
|
101 // End of File |
|