williamr@2
|
1 |
/**
|
williamr@2
|
2 |
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
5 |
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description:
|
williamr@2
|
15 |
* Declaration of Types and Constants for Secure Backup and Restore
|
williamr@2
|
16 |
*
|
williamr@2
|
17 |
*
|
williamr@2
|
18 |
*/
|
williamr@2
|
19 |
|
williamr@2
|
20 |
|
williamr@2
|
21 |
|
williamr@2
|
22 |
|
williamr@2
|
23 |
|
williamr@2
|
24 |
/**
|
williamr@2
|
25 |
@file
|
williamr@2
|
26 |
*/
|
williamr@2
|
27 |
#ifndef __SBDEFS_H__
|
williamr@2
|
28 |
#define __SBDEFS_H__
|
williamr@2
|
29 |
|
williamr@2
|
30 |
#include <e32std.h>
|
williamr@2
|
31 |
#include <f32file.h>
|
williamr@2
|
32 |
|
williamr@2
|
33 |
namespace conn
|
williamr@2
|
34 |
{
|
williamr@2
|
35 |
/** Secure Backup and Restore publish and subscribe key
|
williamr@2
|
36 |
|
williamr@2
|
37 |
Secure Backup and Restore uses a Publish and Subscribe key to publish
|
williamr@2
|
38 |
the current backup / restore state.
|
williamr@2
|
39 |
|
williamr@2
|
40 |
The key is a system key so the category to be used when subscribing is KUidSystemCategoryValue
|
williamr@2
|
41 |
The key to be used is KUidBackupRestoreKey.
|
williamr@2
|
42 |
The value is a bit-wise OR of a TBURPartType value and a TBackupIncType value
|
williamr@2
|
43 |
This means that a normal state (i.e. non-backup or restore) is EBURNormal | ENoBackup but
|
williamr@2
|
44 |
If the key has not been set (i.e. == 0) then no backup or restore is in progress either
|
williamr@2
|
45 |
|
williamr@2
|
46 |
@released
|
williamr@2
|
47 |
@publishedAll
|
williamr@2
|
48 |
*/
|
williamr@2
|
49 |
const TUint KUidBackupRestoreKey = 0x10202792 ;
|
williamr@2
|
50 |
|
williamr@2
|
51 |
|
williamr@2
|
52 |
/** TBURPartType Bitmask
|
williamr@2
|
53 |
@released
|
williamr@2
|
54 |
@publishedAll
|
williamr@2
|
55 |
*/
|
williamr@2
|
56 |
const TUint KBURPartTypeMask = 0xff;
|
williamr@2
|
57 |
|
williamr@2
|
58 |
enum TBURPartType
|
williamr@2
|
59 |
/**
|
williamr@2
|
60 |
The backup / restore state of a device.
|
williamr@2
|
61 |
|
williamr@2
|
62 |
@released
|
williamr@2
|
63 |
@publishedAll
|
williamr@2
|
64 |
*/
|
williamr@2
|
65 |
{
|
williamr@2
|
66 |
EBURUnset = 0x00000000, /*!< 0x00000000: The backup / restore mode has not been set */
|
williamr@2
|
67 |
EBURNormal = 0x00000001, /*!< 0x00000001: The device as a whole is not engaged in a backup or restore */
|
williamr@2
|
68 |
EBURBackupFull = 0x00000002, /*!< 0x00000002: The device as a whole is engaged in a backup of all components data */
|
williamr@2
|
69 |
EBURBackupPartial = 0x00000004, /*!< 0x00000004: The device as a whole is engaged in a backup of selected components data */
|
williamr@2
|
70 |
EBURRestoreFull = 0x00000008, /*!< 0x00000008: The device as a whole is engaged in a restore of all components data */
|
williamr@2
|
71 |
EBURRestorePartial = 0x00000010 /*!< 0x00000010: The device as a whole is engaged in a restore of all components data */
|
williamr@2
|
72 |
};
|
williamr@2
|
73 |
|
williamr@2
|
74 |
/** TBackupIncType Bitmask
|
williamr@2
|
75 |
@released
|
williamr@2
|
76 |
@publishedAll
|
williamr@2
|
77 |
*/
|
williamr@2
|
78 |
const TUint KBackupIncTypeMask = 0xffffff00;
|
williamr@2
|
79 |
|
williamr@2
|
80 |
enum TBackupIncType
|
williamr@2
|
81 |
/**
|
williamr@2
|
82 |
The type of a backup.
|
williamr@2
|
83 |
|
williamr@2
|
84 |
@released
|
williamr@2
|
85 |
@publishedAll
|
williamr@2
|
86 |
*/
|
williamr@2
|
87 |
{
|
williamr@2
|
88 |
ENoBackup = 0x00000000, /*!< 0x00000000: No backup is in progress */
|
williamr@2
|
89 |
EBackupBase = 0x00000100, /*!< 0x00000100: The backup is a base backup, i.e. it includes all files / data */
|
williamr@2
|
90 |
EBackupIncrement = 0x00000200 /*!< 0x00000200: The backup is an incremental backup, i.e. it includes only files / data that have changed since a previous backup */
|
williamr@2
|
91 |
};
|
williamr@2
|
92 |
|
williamr@2
|
93 |
} // end namespace
|
williamr@2
|
94 |
#endif
|