1 /* |
|
2 * Copyright (c) 2005 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: Declaration for CMMCScBkupStateOpAware |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPSTATEOPAWARE_H__ |
|
20 #define __CMMCSCBKUPSTATEOPAWARE_H__ |
|
21 |
|
22 // User includes |
|
23 #include "CMMCScBkupState.h" |
|
24 #include "MMCScBkupOperations.h" |
|
25 |
|
26 /** |
|
27 * |
|
28 * |
|
29 * @since 3.0 |
|
30 */ |
|
31 NONSHARABLE_CLASS(CMMCScBkupStateOpAware) : public CMMCScBkupState |
|
32 { |
|
33 protected: |
|
34 |
|
35 /** |
|
36 * C++ default constructor |
|
37 */ |
|
38 CMMCScBkupStateOpAware( MMMCScBkupDriver& aDriver, TInt aPriority = CActive::EPriorityIdle ); |
|
39 |
|
40 public: // From CMMCScBkupState |
|
41 |
|
42 /** |
|
43 * |
|
44 */ |
|
45 TMMCScBkupStateId NextStateId() const; |
|
46 |
|
47 /** |
|
48 * |
|
49 */ |
|
50 TStateExecution CategorySpecific() const { return EStatePerCategory; } |
|
51 |
|
52 protected: // New Framework |
|
53 |
|
54 /** |
|
55 * |
|
56 */ |
|
57 virtual TMMCScBkupStateId NextStateBackupId( TBool aPartial ) const = 0; |
|
58 |
|
59 /** |
|
60 * |
|
61 */ |
|
62 virtual TMMCScBkupStateId NextStateRestoreId( TBool aPartial ) const = 0; |
|
63 |
|
64 protected: // New Framework |
|
65 |
|
66 /** |
|
67 * |
|
68 */ |
|
69 virtual void PerformStateInitBackupL( TBool aPartial ) = 0; |
|
70 |
|
71 /** |
|
72 * |
|
73 */ |
|
74 virtual void PerformStateInitRestoreL( TBool aPartial ) = 0; |
|
75 |
|
76 /** |
|
77 * |
|
78 */ |
|
79 virtual void PerformAsynchronousStateStepBackupL( TBool aPartial ); |
|
80 |
|
81 /** |
|
82 * |
|
83 */ |
|
84 virtual void PerformAsynchronousStateStepRestoreL( TBool aPartial ); |
|
85 |
|
86 /** |
|
87 * |
|
88 */ |
|
89 virtual void PerformAsynchronousCancellationBackup( TBool aPartial ); |
|
90 |
|
91 /** |
|
92 * |
|
93 */ |
|
94 virtual void PerformAsynchronousCancellationRestore( TBool aPartial ); |
|
95 |
|
96 /** |
|
97 * |
|
98 */ |
|
99 virtual void PerformLastRightsBackupL( TBool aPartial ); |
|
100 |
|
101 /** |
|
102 * |
|
103 */ |
|
104 virtual void PerformLastRightsRestoreL( TBool aPartial ); |
|
105 |
|
106 /** |
|
107 * |
|
108 */ |
|
109 virtual TBool PerformAsynchronousErrorCleanupBackup( TBool aPartial, TInt aError ); |
|
110 |
|
111 /** |
|
112 * |
|
113 */ |
|
114 virtual TBool PerformAsynchronousErrorCleanupRestore( TBool aPartial, TInt aError ); |
|
115 |
|
116 protected: // From CMMCScBkupState |
|
117 void PerformStateInitL(); |
|
118 void PerformAsynchronousStateStepL(); |
|
119 void PerformAsynchronousCancellation(); |
|
120 void PerformLastRightsL(); |
|
121 TBool PerformAsynchronousErrorCleanup( TInt aError ); |
|
122 }; |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 #endif // __CMMCSCBKUPSTATEOPAWARE_H__ |
|
129 |
|
130 //End of File |
|