|
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 * Declaration of Types and Constants for Secure Backup and Restore |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 */ |
|
25 #ifndef __SBDEFS_H__ |
|
26 #define __SBDEFS_H__ |
|
27 |
|
28 #include <e32std.h> |
|
29 #include <f32file.h> |
|
30 |
|
31 namespace conn |
|
32 { |
|
33 /** Secure Backup and Restore publish and subscribe key |
|
34 |
|
35 Secure Backup and Restore uses a Publish and Subscribe key to publish |
|
36 the current backup / restore state. |
|
37 |
|
38 The key is a system key so the category to be used when subscribing is KUidSystemCategoryValue |
|
39 The key to be used is KUidBackupRestoreKey. |
|
40 The value is a bit-wise OR of a TBURPartType value and a TBackupIncType value |
|
41 This means that a normal state (i.e. non-backup or restore) is EBURNormal | ENoBackup but |
|
42 If the key has not been set (i.e. == 0) then no backup or restore is in progress either |
|
43 |
|
44 @released |
|
45 @publishedAll |
|
46 */ |
|
47 const TUint KUidBackupRestoreKey = 0x10202792 ; |
|
48 |
|
49 |
|
50 /** TBURPartType Bitmask |
|
51 @released |
|
52 @publishedAll |
|
53 */ |
|
54 const TUint KBURPartTypeMask = 0xff; |
|
55 |
|
56 enum TBURPartType |
|
57 /** |
|
58 The backup / restore state of a device. |
|
59 |
|
60 @released |
|
61 @publishedAll |
|
62 */ |
|
63 { |
|
64 EBURUnset = 0x00000000, /*!< 0x00000000: The backup / restore mode has not been set */ |
|
65 EBURNormal = 0x00000001, /*!< 0x00000001: The device as a whole is not engaged in a backup or restore */ |
|
66 EBURBackupFull = 0x00000002, /*!< 0x00000002: The device as a whole is engaged in a backup of all components data */ |
|
67 EBURBackupPartial = 0x00000004, /*!< 0x00000004: The device as a whole is engaged in a backup of selected components data */ |
|
68 EBURRestoreFull = 0x00000008, /*!< 0x00000008: The device as a whole is engaged in a restore of all components data */ |
|
69 EBURRestorePartial = 0x00000010 /*!< 0x00000010: The device as a whole is engaged in a restore of all components data */ |
|
70 }; |
|
71 |
|
72 /** TBackupIncType Bitmask |
|
73 @released |
|
74 @publishedAll |
|
75 */ |
|
76 const TUint KBackupIncTypeMask = 0xffffff00; |
|
77 |
|
78 enum TBackupIncType |
|
79 /** |
|
80 The type of a backup. |
|
81 |
|
82 @released |
|
83 @publishedAll |
|
84 */ |
|
85 { |
|
86 ENoBackup = 0x00000000, /*!< 0x00000000: No backup is in progress */ |
|
87 EBackupBase = 0x00000100, /*!< 0x00000100: The backup is a base backup, i.e. it includes all files / data */ |
|
88 EBackupIncrement = 0x00000200 /*!< 0x00000200: The backup is an incremental backup, i.e. it includes only files / data that have changed since a previous backup */ |
|
89 }; |
|
90 |
|
91 } // end namespace |
|
92 #endif |