|
1 /** |
|
2 * Copyright (c) 2004-2009 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 |
|
20 /** |
|
21 @file |
|
22 @released |
|
23 */ |
|
24 |
|
25 #ifndef __T_BUR_TEST_STEP_BACKUP_H__ |
|
26 #define __T_BUR_TEST_STEP_BACKUP_H__ |
|
27 |
|
28 #include "t_burteststepbase.h" |
|
29 #include "t_asyncbackuptransferhandler.h" |
|
30 |
|
31 _LIT(KBURTestBackup, "TestBackup"); |
|
32 |
|
33 namespace bur_ts |
|
34 { |
|
35 // Forward declaration |
|
36 class CAsyncBackupTransferHandler; |
|
37 |
|
38 class CBURTestStepBackup : public CBURTestStepBase |
|
39 /** |
|
40 Implements the backup operation. |
|
41 |
|
42 @released |
|
43 @internalComponent |
|
44 */ |
|
45 { |
|
46 public: |
|
47 static CBURTestStepBackup* NewL(CBURTestServer& aTestServer); |
|
48 ~CBURTestStepBackup(); |
|
49 |
|
50 // Inherited from CTestStep |
|
51 virtual TVerdict doTestStepPreambleL(); |
|
52 virtual TVerdict doTestStepPostambleL(); |
|
53 virtual TVerdict doTestStepL(); |
|
54 |
|
55 private: |
|
56 CBURTestStepBackup(CBURTestServer& aTestServer); |
|
57 void ConstructL(); |
|
58 |
|
59 // Core backup function |
|
60 void DoBackupL(); |
|
61 void DoActiveBackupL(TTransferDataType aTransferDataType); |
|
62 |
|
63 // Following 2 methods implement sequences of backup operations during |
|
64 // base and incremental backups respectively |
|
65 void BaseBackupL(); |
|
66 void IncrementalBackupL(); |
|
67 |
|
68 // Registration data backup handler |
|
69 void BackupRegistrationDataL(); |
|
70 |
|
71 // Passive backup handlers |
|
72 void BackupPassiveSnapshotDataL(); |
|
73 void SupplyPassiveSnapshotDataL(); |
|
74 void BackupPassiveBaseDataL(); |
|
75 void BackupPassiveIncDataL(); |
|
76 |
|
77 // Active backup handlers |
|
78 void BackupActiveSnapshotDataL(); |
|
79 void SupplyActiveSnapshotDataL(); |
|
80 void BackupActiveBaseDataL(); |
|
81 void BackupActiveIncDataL(); |
|
82 |
|
83 // Packages backup |
|
84 void SupplySystemSnapshotDataL(); |
|
85 void BackupSystemSnapshotDataL(); |
|
86 void BackupSystemBaseDataL(); |
|
87 |
|
88 // java |
|
89 void BackupJavaMidletsL(); |
|
90 void BackupJavaMidletsDataL(); |
|
91 |
|
92 // public |
|
93 void BackupPublicDataL(); |
|
94 void DoPublicBackupL(RPointerArray<CSBGenericDataType>& aTransferTypes); |
|
95 |
|
96 private: |
|
97 /** Handler for async data requests */ |
|
98 CAsyncBackupTransferHandler* iDataTransferHandler; |
|
99 }; |
|
100 } |
|
101 #endif // __T_BUR_TEST_STEP_BACKUP_H__ |