|
1 /* |
|
2 * Copyright (c) 2008 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CABACKUPNOTIFIER_H |
|
19 #define CABACKUPNOTIFIER_H |
|
20 |
|
21 #include <e32property.h> |
|
22 #include "caclient_global.h" |
|
23 |
|
24 class CCaStorageProxy; |
|
25 |
|
26 /** |
|
27 * CA Backup notifier. |
|
28 * |
|
29 * @since S60 v5.0 |
|
30 */ |
|
31 |
|
32 |
|
33 NONSHARABLE_CLASS( CCaBackupNotifier ) : public CActive |
|
34 { |
|
35 |
|
36 enum TCaBackupState |
|
37 /** |
|
38 The backup / restore state of a device. |
|
39 |
|
40 @released |
|
41 @publishedAll |
|
42 */ |
|
43 { |
|
44 ECaBackup = 1, |
|
45 ECaRestore = 2 |
|
46 }; |
|
47 |
|
48 public: |
|
49 |
|
50 /** |
|
51 * Creates an instance of CCaBackupNotifier. |
|
52 * @param aNotifier Reference to notifier interface. |
|
53 * @param aNotificationType Notification type. |
|
54 */ |
|
55 static CCaBackupNotifier* NewL( CCaStorageProxy* aStorageProxy ); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CCaBackupNotifier(); |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * Symbian 2nd phase constructor. |
|
66 * @param aNotificationType Notification type. |
|
67 */ |
|
68 void ConstructL( ); |
|
69 |
|
70 /** |
|
71 * From CActive. |
|
72 */ |
|
73 void DoCancel(); |
|
74 |
|
75 /** |
|
76 * From CActive. |
|
77 */ |
|
78 void RunL(); |
|
79 |
|
80 /** |
|
81 * From CActive. |
|
82 */ |
|
83 TInt RunError( TInt aError ); |
|
84 |
|
85 private: |
|
86 |
|
87 CCaBackupNotifier( CCaStorageProxy* aStorageProxy ); |
|
88 |
|
89 /** |
|
90 * RProperty. |
|
91 * Own. |
|
92 */ |
|
93 RProperty iProperty; |
|
94 |
|
95 /* |
|
96 * not owned |
|
97 */ |
|
98 CCaStorageProxy* iStorageProxy; |
|
99 |
|
100 /* |
|
101 * Keeps last state of backup |
|
102 */ |
|
103 TInt iLastState; |
|
104 |
|
105 CA_CLIENT_TEST_FRIEND_CLASS(TestCaClient) |
|
106 |
|
107 }; |
|
108 |
|
109 #endif /* CABACKUPNOTIFIER_H */ |
|
110 |
|
111 // End of File |
|
112 |