|
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 CMMCScBkupStateArchiveOpSystemData |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __CMMCSCBKUPSTATEARCHIVEOPSYSTEMDATA_H__ |
|
20 #define __CMMCSCBKUPSTATEARCHIVEOPSYSTEMDATA_H__ |
|
21 |
|
22 // System includes |
|
23 #include <connect/sbtypes.h> |
|
24 |
|
25 // User includes |
|
26 #include "CMMCScBkupStateOpAware.h" |
|
27 #include "TMMCScBkupArchiveVector.h" |
|
28 #include "CMMCScBkupTransferWriteRequest.h" |
|
29 #include "CMMCScBkupTransferReadRequest.h" |
|
30 |
|
31 // Namespaces |
|
32 using namespace conn; |
|
33 |
|
34 // Classes referenced |
|
35 class CMMCScBkupDataOwnerInfo; |
|
36 |
|
37 |
|
38 |
|
39 /** |
|
40 * |
|
41 * |
|
42 * @since 3.0 |
|
43 */ |
|
44 NONSHARABLE_CLASS(CMMCScBkupStateArchiveOpSystemData) : public CMMCScBkupStateOpAware, public MMMCScBkupIndexHandler |
|
45 { |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Static constructor |
|
50 */ |
|
51 static CMMCScBkupStateArchiveOpSystemData* NewL( MMMCScBkupDriver& aDriver ); |
|
52 |
|
53 /** |
|
54 * C++ destructor |
|
55 */ |
|
56 ~CMMCScBkupStateArchiveOpSystemData( ); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * C++ default constructor |
|
62 */ |
|
63 CMMCScBkupStateArchiveOpSystemData( MMMCScBkupDriver& aDriver ); |
|
64 |
|
65 public: // From CMMCScBkupState |
|
66 TMMCScBkupStateId StateId() const; |
|
67 |
|
68 public: // From CMMCScBkupStateOpAware |
|
69 TMMCScBkupStateId NextStateBackupId( TBool aPartial ) const; |
|
70 TMMCScBkupStateId NextStateRestoreId( TBool aPartial ) const; |
|
71 |
|
72 private: // From CMMCScBkupStateOpAware |
|
73 void PerformStateInitBackupL( TBool aPartial ); |
|
74 void PerformStateInitRestoreL( TBool aPartial ); |
|
75 void PerformAsynchronousStateStepBackupL( TBool aPartial ); |
|
76 void PerformAsynchronousStateStepRestoreL( TBool aPartial ); |
|
77 void PerformLastRightsBackupL( TBool aPartial ); |
|
78 void PerformLastRightsRestoreL( TBool aPartial ); |
|
79 TBool PerformAsynchronousErrorCleanupBackup( TBool aPartial, TInt aError ); |
|
80 TBool PerformAsynchronousErrorCleanupRestore( TBool aPartial, TInt aError ); |
|
81 |
|
82 private: // From CMMCScBkupState |
|
83 void PerformAsynchronousCancellation(); |
|
84 |
|
85 private: // From MMMCScBkupIndexHandler |
|
86 void AddIndexRecordL( CMMCScBkupArchiveFooter& aFooter, CMMCScBkupDataOwnerInfo& aDataOwner, const TMMCScBkupArchiveVector& aInfo, TDriveNumber aDrive ); |
|
87 |
|
88 private: // Member data |
|
89 |
|
90 // |
|
91 TInt iIndexValueCurrent; |
|
92 // Associated secure id of the data owner (if it has one) |
|
93 TSecureId iSecureId; |
|
94 // |
|
95 CMMCScBkupWriteDataTransferRequest< TPackageDataType >* iBackupTransferObject; |
|
96 CMMCScBkupReadDataTransferRequest< TPackageDataType >* iRestoreTransferObject; |
|
97 }; |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 #endif // __CMMCSCBKUPSTATEARCHIVEOPSYSTEMDATA_H__ |
|
104 |
|
105 //End of File |