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