1 /* |
|
2 * Copyright (c) 2004-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: Watcher for the PC-Suite data sync state |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef VCMANAGERBACKUPOBSERVER_H |
|
20 #define VCMANAGERBACKUPOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 // Publish & Subscribe of the contact handler activity |
|
27 #include <e32property.h> |
|
28 |
|
29 // CONSTANTS |
|
30 |
|
31 // MACROS |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 @todo generalize the common parts of this class, CNssChBackupObserver |
|
39 and CNssVasBackupObserver from VAS API |
|
40 At the moment the code is copy-pasted and duplicated |
|
41 */ |
|
42 |
|
43 |
|
44 |
|
45 /** |
|
46 * RProperty based data sync watcher implementation |
|
47 */ |
|
48 NONSHARABLE_CLASS( CVCommandManagerBackupObserver ) : public CActive |
|
49 { |
|
50 public: |
|
51 /** |
|
52 * Factory construction |
|
53 * @return Constructed and already started observer |
|
54 */ |
|
55 static CVCommandManagerBackupObserver* NewL(); |
|
56 |
|
57 /** |
|
58 * Destructor |
|
59 */ |
|
60 ~CVCommandManagerBackupObserver(); |
|
61 |
|
62 private: |
|
63 /** |
|
64 * C++ constructor |
|
65 */ |
|
66 CVCommandManagerBackupObserver(); |
|
67 |
|
68 /** |
|
69 * Symbian second phase constructor |
|
70 */ |
|
71 void ConstructL(); |
|
72 |
|
73 /** |
|
74 * is called when data sync property changed |
|
75 */ |
|
76 void RunL(); |
|
77 |
|
78 /** |
|
79 * Is called when system wants immediate cancelling of the watching |
|
80 */ |
|
81 void DoCancel(); |
|
82 |
|
83 /** |
|
84 * Enables voice command retraining |
|
85 */ |
|
86 void SetVoiceCommandRetrainingL(); |
|
87 |
|
88 private: |
|
89 // Publish & Subscribe property about backup/restore |
|
90 RProperty iProperty; |
|
91 |
|
92 // Has restore started |
|
93 TBool iRestoreStarted; |
|
94 }; |
|
95 |
|
96 #endif // VCMANAGERBACKUPOBSERVER_H |
|
97 |
|
98 // End of File |
|