|
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 MMCScBkupSBEUtils |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __MMCSCBKUPSBEUTILS_H__ |
|
20 #define __MMCSCBKUPSBEUTILS_H__ |
|
21 |
|
22 // System includes |
|
23 #include <f32file.h> |
|
24 #include <connect/sbtypes.h> |
|
25 #include <connect/sbeclient.h> |
|
26 |
|
27 // Namespaces |
|
28 using namespace conn; |
|
29 |
|
30 |
|
31 /** |
|
32 * |
|
33 * |
|
34 * @since 3.0 |
|
35 */ |
|
36 class MMCScBkupSBEUtils |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * |
|
42 */ |
|
43 static TSecureId SecureIdFromGenericL(const CSBGenericDataType& aGeneric); |
|
44 |
|
45 /** |
|
46 * |
|
47 */ |
|
48 static TUid PackageIdFromGenericL(const CSBGenericDataType& aGeneric); |
|
49 |
|
50 /** |
|
51 * |
|
52 */ |
|
53 static HBufC* JavaHashFromGenericLC(const CSBGenericDataType& aGeneric); |
|
54 |
|
55 /** |
|
56 * |
|
57 */ |
|
58 static CSBGenericDataType* CopyLC(const CSBGenericDataType& aToBeCopied); |
|
59 |
|
60 /** |
|
61 * |
|
62 */ |
|
63 static CSBGenericTransferType* TransferTypeLC(const CSBGenericDataType& aDT, TDriveNumber aDrive, |
|
64 TTransferDataType aTransferType, TInt aVersion); |
|
65 |
|
66 /** |
|
67 * |
|
68 */ |
|
69 static CSBGenericTransferType* TransferTypeLC(const CSBGenericDataType& aDT, TDriveNumber aDrive, |
|
70 TPackageDataType aDataType, TInt aVersion); |
|
71 |
|
72 /** |
|
73 * |
|
74 */ |
|
75 static CSBGenericTransferType* TransferTypeLC(const CSBGenericDataType& aDT, TDriveNumber aDrive, |
|
76 TJavaTransferType aDataType, TInt aVersion); |
|
77 |
|
78 /** |
|
79 * |
|
80 */ |
|
81 static TBool PhoneIsInBackupOrRestoreModeL(); |
|
82 |
|
83 /** |
|
84 * |
|
85 */ |
|
86 static void EndBackupOrRestoreL( CSBEClient& aSBEClient ); |
|
87 |
|
88 /** |
|
89 * |
|
90 */ |
|
91 static TBool HasSystemDataL( const CDataOwnerInfo& aDataOwner ); |
|
92 |
|
93 /** |
|
94 * |
|
95 */ |
|
96 static TBool HasJavaDataL( const CDataOwnerInfo& aDataOwner ); |
|
97 |
|
98 /** |
|
99 * |
|
100 */ |
|
101 static TBool HasPassiveDataL( const CDataOwnerInfo& aDataOwner ); |
|
102 |
|
103 /** |
|
104 * |
|
105 */ |
|
106 static TBool HasActiveDataL( const CDataOwnerInfo& aDataOwner ); |
|
107 |
|
108 /** |
|
109 * |
|
110 */ |
|
111 static TBool HasPublicDataL( const CDataOwnerInfo& aDataOwner ); |
|
112 }; |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 #endif // __MMCSCBKUPSBEUTILS_H__ |
|
118 |
|
119 //End of File |