1 /* |
|
2 * Copyright (c) 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 VUICFOLDOBSERVER_H |
|
20 #define VUICFOLDOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <e32property.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MVoiceRecognitionDialogCallback; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * Fold state observer |
|
32 * |
|
33 */ |
|
34 NONSHARABLE_CLASS( CFoldObserver ) : public CActive |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Symbian two-phased constructor. |
|
40 */ |
|
41 static CFoldObserver* NewL( MVoiceRecognitionDialogCallback* aCallback ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CFoldObserver(); |
|
47 |
|
48 public: // From base classes |
|
49 |
|
50 /** |
|
51 * From CActive |
|
52 * @see CActive for more information |
|
53 */ |
|
54 void DoCancel(); |
|
55 |
|
56 /** |
|
57 * From CActive |
|
58 * @see CActive for more information |
|
59 */ |
|
60 void RunL(); |
|
61 |
|
62 protected: // New functions |
|
63 |
|
64 /** |
|
65 * C++ default constructor. |
|
66 */ |
|
67 CFoldObserver( MVoiceRecognitionDialogCallback* aCallback ); |
|
68 |
|
69 /** |
|
70 * Symbian OS 2nd phase constructor. |
|
71 */ |
|
72 virtual void ConstructL(); |
|
73 |
|
74 private: // Data |
|
75 |
|
76 // Callback observer |
|
77 MVoiceRecognitionDialogCallback* iCallback; |
|
78 |
|
79 // Fold event |
|
80 RProperty iFoldEvent; |
|
81 |
|
82 // Current fold status |
|
83 TInt iFoldStatus; |
|
84 }; |
|
85 |
|
86 #endif // VUICFOLDOBSERVER_H |
|
87 |
|
88 // End of File |
|