1 /* |
|
2 * Copyright (c) 2005-2010 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: CSConBackupRestore header file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _SCONBACKUPRESTORE_H_ |
|
20 #define _SCONBACKUPRESTORE_H_ |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <e32cons.h> |
|
26 |
|
27 class CSConSBEClient; |
|
28 class CSConBackupRestoreQueue; |
|
29 class RFs; |
|
30 |
|
31 //============================================================ |
|
32 // Class CSConBackupRestore declaration |
|
33 //============================================================ |
|
34 NONSHARABLE_CLASS( CSConBackupRestore ): public CActive |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Two-phase constructor |
|
39 * @param aQueue The address of CSConBackupRestoreQueue |
|
40 * @param aFs aReference to RFs connection. |
|
41 * @return CSConBackupRestore instance |
|
42 */ |
|
43 static CSConBackupRestore* NewL( |
|
44 CSConBackupRestoreQueue* aQueue, |
|
45 RFs& aFs ); |
|
46 /** |
|
47 * Destructor |
|
48 * @return none |
|
49 */ |
|
50 ~CSConBackupRestore(); |
|
51 |
|
52 /** |
|
53 * Starts backup-restore task |
|
54 * @param aTaskId The task number |
|
55 * @return none |
|
56 */ |
|
57 void StartBackupRestore( TInt aTaskId ); |
|
58 /** |
|
59 * Stops executing backup-restore task |
|
60 * @param aTaskId |
|
61 * @return none |
|
62 */ |
|
63 void StopBackupRestore( TInt aTaskId ); |
|
64 /** |
|
65 * Resets backup |
|
66 * @return none |
|
67 */ |
|
68 void Reset(); |
|
69 |
|
70 /** |
|
71 * Returns the active status of the backup-restore |
|
72 * @return ETrue if backup-restore is active, else EFalse |
|
73 */ |
|
74 TBool BackupRestoreActive() const; |
|
75 |
|
76 private: |
|
77 /** |
|
78 * Constructor |
|
79 * @param aQueue The address of CSConBackupRestoreQueue |
|
80 * @param aFs aReference to RFs connection. |
|
81 * @return none |
|
82 */ |
|
83 CSConBackupRestore( CSConBackupRestoreQueue* aQueue, RFs& aFs ); |
|
84 /** |
|
85 * Initializes member data |
|
86 * @return none |
|
87 */ |
|
88 void ConstructL(); |
|
89 /** |
|
90 * Implementation of CActive::DoCancel() |
|
91 * @return none |
|
92 */ |
|
93 void DoCancel(); |
|
94 /** |
|
95 * Implementation of CActive::RunL() |
|
96 * @return none |
|
97 */ |
|
98 void RunL(); |
|
99 |
|
100 private: |
|
101 CSConBackupRestoreQueue* iQueue; |
|
102 CSConSBEClient* iSBEClient; |
|
103 TInt iCurrentTask; |
|
104 TBool iBackupRestoreActive; |
|
105 RFs& iFs; |
|
106 }; |
|
107 |
|
108 #endif // _SCONBACKUPRESTORE_H_ |
|
109 |
|
110 // End of file |
|