Public Member Type Definitions | |
---|---|
typedef | RExternalisableArray< TEntry > RFileArray |
typedef | RExternalisableArray< TRestoreFileFilter > RRestoreFileFilterArray |
typedef | RExternalisableArray< TSecureId > RSIDArray |
typedef | RExternalisableArray< TDataOwnerAndStatus > RSIDStatusArray |
typedef | RPointerArray< CSelection > RSelections |
typedef | RPointerArray< CSnapshot > RSnapshots |
typedef | TUint32 TActiveBURSettings |
typedef | TUint32 TCommonBURSettings |
typedef | TBufC< KMaxPackageNameLength > TPackageName |
typedef | TUint32 TPassiveBURSettings |
Public Member Functions | |
---|---|
void | CleanupRPointerArray(TAny *) |
void | CleanupResetAndDestroyL(T &) |
void | CleanupResetAndDestroyPushL(T &) |
void | PackType(T &, TDesC8 &, TInt) |
void | PackTypeAdvance(T &, TDesC8 &, TInt &) |
TBool | ReadFromBufferF(T &, TUint8 *&, const TUint8 *) |
template TBool | ReadFromBufferF< TFileFixedHeader >(TFileFixedHeader &, TUint8 *&, const TUint8 *) |
template TBool | ReadFromBufferF< TSnapshot >(TSnapshot &, TUint8 *&, const TUint8 *) |
TBool | ReadFromBufferV(TPtr8 &, TInt, TUint8 *&, const TUint8 *) |
void | ReadL(T &, TPtr8 &) |
void | ReadL(T &, TPtr8 &, TInt, TInt) |
void | UnpackType(T &, TDesC8 &, TInt) |
void | UnpackTypeAdvance(T &, TDesC8 &, TInt &) |
void | UnpackTypeAdvance(TDriveList &, TDesC8 &, TInt &) |
void | WriteL(T &, TPtr8 &) |
void | WriteL(T &, TPtr8 &, TInt, TInt) |
TBool | WriteToBufferF(T &, TPtr8 &) |
TBool | WriteToBufferV(const TPtr8 &, TInt, TPtr8 &) |
_LIT(KABServerName, "!ABServer") | |
_LIT(KBackSlash, "\\") | |
_LIT(KBackupRegistrationFile, "backup_registration*.xml") | |
_LIT(KCentRepProcessName, "centralrepositorysrv.exe") | |
_LIT(KColon, ":") | |
_LIT(KConfigFile, "sbeconfig.xml") | |
_LIT(KDrive, "?:") | |
_LIT(KDriveAndSlash, "?:\\") | |
_LIT(KExclamationAsDrive, "!") | |
_LIT(KImport, "*\\import\\*") | |
_LIT(KImportDir, "\\private\\10202D56\\import\\packages\\") | |
_LIT(KMIDletTempRestorePath, "C:\\system\\temp\\MIDletRestore\\") | |
_LIT(KOther, "*\\..\\*") | |
_LIT(KPad, "00000000") | |
_LIT(KPrimaryBackupRegistrationFile, "backup_registration.xml") | |
_LIT(KPrivate, "\\private\\") | |
_LIT(KPrivateMatch, "?:\\private\\*") | |
_LIT(KPrivateNoBackup, "?:\\private\\????????\\NoBackup\\*") | |
_LIT(KPrivateSidMatch, "?:\\private\\") | |
_LIT(KQuestionMark, "?") | |
_LIT(KResource, "?:\\resource\\*") | |
_LIT(KSBEServerName, "!SBEServer") | |
_LIT(KSBImageName, "sbengine") | |
_LIT(KStar, "*") | |
_LIT(KSys, "?:\\sys\\*") | |
_LIT(KSystem, "?:\\system\\*") | |
_LIT(KTempPath, ":\\system\\temp\\") | |
_LIT8(KActiveAndProxy, "activeandproxy") | |
_LIT8(KActiveBackup, "active_backup") | |
_LIT8(KActiveOnly, "activeonly") | |
_LIT8(KActiveType, "active_type") | |
_LIT8(KAppCloseDelay, "app_close_delay") | |
_LIT8(KBackupRegistration, "backup_registration") | |
_LIT8(KBaseBackupOnly, "base_backup_only") | |
_LIT8(KCallbackDelayTime, "callback_delay_time") | |
_LIT8(KCenrepBackup, "cenrep_backup") | |
_LIT8(KCentRep, "central_repository") | |
_LIT8(KConfig, "sbe_config") | |
_LIT8(KDBMSBackup, "dbms_backup") | |
_LIT8(KDatabase, "database") | |
_LIT8(KDelay, "delay") | |
_LIT8(KDeleteBeforeRestore, "delete_before_restore") | |
_LIT8(KDrives, "exclude_drives") | |
_LIT8(KExclude, "exclude") | |
_LIT8(KHeap, "heap") | |
_LIT8(KHexLeader, "0x") | |
_LIT8(KIncludeDirectory, "include_directory") | |
_LIT8(KIncludeFile, "include_file") | |
_LIT8(KJavaXMLElementIncludeDirectory, "java_include_directory") | |
_LIT8(KJavaXMLElementJavaBackupMIDlet, "java_backup_midlet") | |
_LIT8(KJavaXMLElementMIDletSuite, "midlet_suite") | |
_LIT8(KList, "list") | |
_LIT8(KMaxRetries, "max_retries") | |
_LIT8(KMimeType, "text/xml") | |
_LIT8(KPassiveBackup, "passive_backup") | |
_LIT8(KPolicy, "policy") | |
_LIT8(KProcessName, "process_name") | |
_LIT8(KProxyDataManager, "proxy_data_manager") | |
_LIT8(KProxyOnly, "proxyonly") | |
_LIT8(KProxySID, "SID") | |
_LIT8(KPublicBackup, "public_backup") | |
_LIT8(KRedFact, "reduction_factor") | |
_LIT8(KRequiresDelay, "requires_delay_to_prepare_data") | |
_LIT8(KRequiresReboot, "requires_reboot") | |
_LIT8(KRestore, "restore") | |
_LIT8(KSize, "size") | |
_LIT8(KSupportsInc, "supports_incremental") | |
_LIT8(KSupportsSelective, "supports_selective") | |
_LIT8(KSystemBackup, "system_backup") | |
_LIT8(KUid, "uid") | |
_LIT8(KVersion, "1.0") | |
_LIT8(KYes, "yes") | |
_LIT_SECURE_ID(KCentRepSID, 0x10202BE9) | |
_LIT_SECURE_ID(KDummyId, 0x00000000) | |
_LIT_SECURITY_POLICY_PASS(KReadPolicy) | |
_LIT_SECURITY_POLICY_S0(KWritePolicy, KSID) |
This namespace is the global Symbian Connect namespace which encapsulates all of the connectivity components within Symbian OS.
typedef RExternalisableArray< TRestoreFileFilter > | RRestoreFileFilterArray |
Array of TRestoreFileFilter objects
typedef RExternalisableArray< TDataOwnerAndStatus > | RSIDStatusArray |
Array of data owners with their status
typedef TUint32 | TActiveBURSettings |
Active BUR Settings This structure will store the active backup and restore options for a SID
typedef TUint32 | TCommonBURSettings |
Common BUR Settings This structure will store the common backup and restore options for a SID
typedef TUint32 | TPassiveBURSettings |
Passive BUR Settings This structure will store the passive backup and restore options for a SID
const TTimeIntervalMicroSeconds32 | KABCallbackWatchdogTimeout |
Constant definition for the watchdog timer
const TInt | KABMaxSendDataBlock |
Size of data blocks to send back to the PC from the ABClient
const TInt | KIPCMessageSize |
The maximum size of descriptor data passed with each IPC call
const TUint | KMaxDerivedTypes |
Maximum number of derived types specified in TSBDerivedType
const TInt | KMaxGenericTypeSize |
KMaxGenericTypeSize must be a multiple of 4 to ensure that all structures are 4-byte aligned
const TUint | KUidBackupRestoreKey |
Secure Backup and Restore publish and subscribe key
Secure Backup and Restore uses a Publish and Subscribe key to publish the current backup / restore state.
The key is a system key so the category to be used when subscribing is KUidSystemCategoryValue The key to be used is KUidBackupRestoreKey. The value is a bit-wise OR of a TBURPartType value and a TBackupIncType value This means that a normal state (i.e. non-backup or restore) is EBURNormal | ENoBackup but If the key has not been set (i.e. == 0) then no backup or restore is in progress either
const TUint8 | myABElementsIndex |
Active Backup security action array
An array with a one-to-one mapping with the range array specifiying what security action to take for each server request.
const TUint | myABRangeCount |
Active Backup range count
The number of different security ranges for active backup request numbers
const TInt | myABRanges |
Active Backup security request ranges
This is a breakdown of the active backup requests into ranges for security checking purposes.
const TUint8 | mySBEElementsIndex |
Secure Backup Engine security action array
An array with a one-to-one mapping with the range array specifiying what security action to take for each server request.
const TUint | mySBERangeCount |
Secure Backup Engine range count
The number of different security ranges for SBEs request numbers
const TInt | mySBERanges |
Secure Backup Engine security request ranges
This is a breakdown of the SBE requests into ranges for security checking purposes.
List of commands that the server requests the client to call on it's callback interface
AB Client/Server Messages
The backup / restore state of a device.
TBackupDataType indicates whether a specific data stream or operation relates to active or passive backup or restore. A specific data owner can use both active and passive and so we need to differentiate between operations.
The type of a backup.
The passive backup options
TDataOwnerStatus encapsulates the status of a data owner.
TPackageDataType indicates the type of package data being transferred from the Secure Backup Engine to the Secure Backup Server or vice versa.
The passive backup options
Used to identify the derived type that the base generic type represents
SBE Client/Server Messages
TTransferDataType indicates the type of data being transferred from the Secure Backup Engine to the Secure Backup Server or vice versa.
TTransferDirection indicates whether a (just completed) data transfer is from the Secure Backup Server to a data owner or vice versa.
Templated function to copy a simple type into a specified position in aDes defined by aOffset. aOffset is not advanced as a result of this operation
Parameter | Description |
---|---|
aType | This object is overwritten with the flattened type in aDes |
aDes | The buffer that contains the type T pointed to by aPtr |
aOffset | The running index of where the following type begins. Updated by ExtractPointer |
Returns: The new offset after packing the data type
Templated function to copy a simple type into a specified position in aDes defined by aOffset. aOffset is updated to reflect the advance along aDes
Parameter | Description |
---|---|
aType | This object is overwritten with the flattened type in aDes |
aDes | The buffer that contains the type T pointed to by aPtr |
aOffset | The running index of where the following type begins. Updated by ExtractPointer |
Returns: The new offset after packing the data type
Template class to read flat structures from the buffer
Parameter | Description |
---|---|
aT | on return the flat structure. |
appCurrent | The current point into the buffer. |
apEnd | The end of the buffer. |
Returns: ETrue if read succesfully. EFalse if a retry is needed.
template TBool | ReadFromBufferF< TFileFixedHeader > | ( | TFileFixedHeader & | , |
TUint8 *& | , | |||
const TUint8 * | ||||
) |
Templated function to copy a simple type from a specified position in aDes defined by aOffset. aOffset is not updated on return.
Parameter | Description |
---|---|
aType | This pointer is set with the pointer to the type in aDes |
aDes | The buffer that contains the type T pointed to by aPtr |
aOffset | The running index of where the following type begins. Updated by ExtractPointer |
Templated function to copy a simple type from a specified position in aDes defined by aOffset. aOffset is advanced so that on return, the new offset is stored enabling the next call to UnpackType() to point at the position following this type.
Parameter | Description |
---|---|
aType | This pointer is set with the pointer to the type in aDes |
aDes | The buffer that contains the type T pointed to by aPtr |
aOffset | The running index of where the following type begins. Updated by ExtractPointer |
void | UnpackTypeAdvance | ( | TDriveList & | aType, |
TDesC8 & | aDes, | |||
TInt & | aOffset | |||
) | [inline] |
Templated function to copy a simple type from a specified position in aDes defined by aOffset. aOffset is advanced so that on return, the new offset is stored enabling the next call to UnpackType() to point at the position following this type.
Parameter | Description |
---|---|
aType | This pointer is set with the pointer to the type in aDes |
aDes | The buffer that contains the type T pointed to by aPtr |
aOffset | The running index of where the following type begins. Updated by ExtractPointer |
Writes some vairable data to the buffer.
NOTE: This should _ONLY_ be used to write T classes to the buffer.
Parameter | Description |
---|---|
aPtr | buffer to read from. |
aSize | size of the data to write. |
aBuffer | the buffer to write to. |
Returns: ETrue on success. EFalse on failure.
_LIT | ( | KBackupRegistrationFile | , |
"backup_registration*.xml" | |||
) |
_LIT | ( | KCentRepProcessName | , |
"centralrepositorysrv.exe" | |||
) |
Name of Central Repository Server
_LIT | ( | KImportDir | , |
"\\private\\10202D56\\import\\packages\\" | |||
) |
_LIT | ( | KMIDletTempRestorePath | , |
"C:\\system\\temp\\MIDletRestore\\" | |||
) |
Temporary path used for restoring midlets
_LIT | ( | KPrimaryBackupRegistrationFile | , |
"backup_registration.xml" | |||
) |
_LIT | ( | KPrivateNoBackup | , |
"?:\\private\\????????\\NoBackup\\*" | |||
) |
_LIT | ( | KSBEServerName | , |
"!SBEServer" | |||
) |
The name of the SBE server execuatable.
_LIT8 | ( | KBackupRegistration | , |
"backup_registration" | |||
) |
_LIT8 | ( | KCallbackDelayTime | , |
"callback_delay_time" | |||
) |
_LIT8 | ( | KDeleteBeforeRestore | , |
"delete_before_restore" | |||
) |
_LIT8 | ( | KJavaXMLElementIncludeDirectory | , |
"java_include_directory" | |||
) |
_LIT8 | ( | KJavaXMLElementJavaBackupMIDlet | , |
"java_backup_midlet" | |||
) |
_LIT8 | ( | KJavaXMLElementMIDletSuite | , |
"midlet_suite" | |||
) |
_LIT8 | ( | KRequiresDelay | , |
"requires_delay_to_prepare_data" | |||
) |