conn

Link against: sbeclient.lib

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 Attributes
const TIntKABASyncMessageSlots
const TUintKABBuildVersionNumber
const TTimeIntervalMicroSeconds32KABCallbackDefaultTimeout
const TTimeIntervalMicroSeconds32KABCallbackWatchdogTimeout
const TUintKABMajorVersionNumber
const TIntKABMaxSendDataBlock
const TUintKABMinorVersionNumber
const TIntKABRetryCount
const TUintKBURPartTypeMask
const TUintKBackupIncTypeMask
const TIntKCharWidthInBytes
const TIntKCompressionBlockSize
const TIntKDataOffset
const TIntKDefaultDelay
const TIntKDesCArrayGranularity
const TIntKDescriptorOffset
const TIntKEncryptionBufferSize
const TIntKHeaderOffset
const TIntKIPCMessageSize
const TIntKJavaIdLength
const TIntKJavaVirtualMachineSecureId
const TIntKKeySize
const TUintKMaxDerivedTypes
const TIntKMaxGenericTypeSize
const TIntKMaxHeapSize
const TIntKMaxPackageNameLength
const TIntKMinHeapSize
const TUint32KNullABSid
const TIntKSBBufferBlockSize
const TIntKSBEASyncMessageSlots
const TUintKSBEBuildVersionNumber
const TIntKSBEGSHDefaultSize
const TIntKSBEGSHMaxRetries
const TIntKSBEGSHReductionFactor
const TUintKSBEMajorVersionNumber
const TIntKSBEMaxHexStringLength
const TUintKSBEMinorVersionNumber
const TIntKSBERetryCount
const TUidKSBServerUID3
const TIntKSID
const TIntKSIDLength
const TUintKShutdownDelay
const TUintKUidBackupRestoreKey
const CPolicyServer::TPolicyElementmyABElements
const TUint8myABElementsIndex
const CPolicyServer::TPolicymyABPolicy
const TUintmyABRangeCount
const TIntmyABRanges
const CPolicyServer::TPolicyElementmySBEElements
const TUint8mySBEElementsIndex
const CPolicyServer::TPolicymySBEPolicy
const TUintmySBERangeCount
const TIntmySBERanges
Public Member Enumerations
enumTABCallbackCommands { EABCallbackAllSnapshotsSupplied, EABCallbackReceiveSnapshotData, EABCallbackGetExpectedDataSize, EABCallbackGetSnapshotData, ..., EABCallbackGetDataChecksum }
enumTABMessages { EABMsgBURModeInfo, EABMsgDoesPartialAffectMe, EABMsgConfirmReadyForBUR, EABMsgPrimeForCallback, ..., EABMsgGetDriveNumForSuppliedSnapshot }
enumTActiveBUROptions { ENoActiveOptions, EDelayToPrepareData, EActiveSupportsInc }
enumTActiveType { EActiveOnly, EActiveAndProxyImpl, EProxyImpOnly }
enumTBURPartType { EBURUnset, EBURNormal, EBURBackupFull, EBURBackupPartial, ..., EBURRestorePartial }
enumTBackupDataType { EActive, EPassive }
enumTBackupIncType { ENoBackup, EBackupBase, EBackupIncrement }
enumTCommonBUROptions { ENoOptions, EActiveBUR, EPassiveBUR, EHasSystemFiles, ..., ERequiresReboot }
enumTDataOwnerStatus { EUnset, EDataOwnerNotFound, EDataOwnerReady, EDataOwnerNotReady, ..., EDataOwnerReadyNoImpl }
enumTJavaTransferType { EJavaMIDlet, EJavaMIDletData }
enumTPackageDataType { ESystemData, ESystemSnapshotData }
enumTPassiveBUROptions { ENoPassiveOptions, EHasPublicFiles, EDeleteBeforeRestore, EPassiveSupportsInc }
enumTSBDerivedType { ESIDDerivedType, EPackageDerivedType, ESIDTransferDerivedType, EPackageTransferDerivedType, ..., EJavaTransferDerivedType }
enumTSBEMessages { ESBEMsgGetGSHHandle, ESBEMsgPrepDataOwnerInfo, ESBEMsgGetDataOwnerInfo, ESBEMsgPrepPublicFiles, ..., ESBEMsgGetLargePublicFiles }
enumTSelectionType { EInclude, EExclude }
enumTState { ENone, ERequest, ESupply, EBuffer }
enumTTransferDataType { ERegistrationData, EPassiveSnapshotData, EPassiveBaseData, EPassiveIncrementalData, ..., EPublicFileListing }
enumTTransferDirection { EServerToDataOwner, EDataOwnerToServer }
Public Member Functions
voidCleanupRPointerArray(TAny *)
voidCleanupResetAndDestroyL(T &)
voidCleanupResetAndDestroyPushL(T &)
voidPackType(T &, TDesC8 &, TInt)
voidPackTypeAdvance(T &, TDesC8 &, TInt &)
TBool ReadFromBufferF(T &, TUint8 *&, const TUint8 *)
template TBoolReadFromBufferF< TFileFixedHeader >(TFileFixedHeader &, TUint8 *&, const TUint8 *)
template TBoolReadFromBufferF< TSnapshot >(TSnapshot &, TUint8 *&, const TUint8 *)
TBool ReadFromBufferV(TPtr8 &, TInt, TUint8 *&, const TUint8 *)
voidReadL(T &, TPtr8 &)
voidReadL(T &, TPtr8 &, TInt, TInt)
voidUnpackType(T &, TDesC8 &, TInt)
voidUnpackTypeAdvance(T &, TDesC8 &, TInt &)
voidUnpackTypeAdvance(TDriveList &, TDesC8 &, TInt &)
voidWriteL(T &, TPtr8 &)
voidWriteL(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.

Member Type Definition Documentation

Typedef RFileArray

typedef RExternalisableArray< TEntry >RFileArray

Array of TEntry objects

Typedef RRestoreFileFilterArray

typedef RExternalisableArray< TRestoreFileFilter >RRestoreFileFilterArray

Array of TRestoreFileFilter objects

Typedef RSIDArray

typedef RExternalisableArray< TSecureId >RSIDArray

Array of TSecureId objects

Typedef RSIDStatusArray

typedef RExternalisableArray< TDataOwnerAndStatus >RSIDStatusArray

Array of data owners with their status

Typedef RSelections

typedef RPointerArray< CSelection >RSelections

An RArray of selections

Typedef RSnapshots

typedef RPointerArray< CSnapshot >RSnapshots

Simple array of TSnapshot

Typedef TActiveBURSettings

typedef TUint32 TActiveBURSettings

Active BUR Settings This structure will store the active backup and restore options for a SID

Typedef TCommonBURSettings

typedef TUint32 TCommonBURSettings

Common BUR Settings This structure will store the common backup and restore options for a SID

Typedef TPackageName

typedef TBufC< KMaxPackageNameLength >TPackageName

Typedef TPassiveBURSettings

typedef TUint32 TPassiveBURSettings

Passive BUR Settings This structure will store the passive backup and restore options for a SID

Member Attribute Documentation

KABASyncMessageSlots

const TIntKABASyncMessageSlots

Number of async message slots.

KABBuildVersionNumber

const TUintKABBuildVersionNumber

The AB build number

KABCallbackDefaultTimeout

const TTimeIntervalMicroSeconds32KABCallbackDefaultTimeout

KABCallbackWatchdogTimeout

const TTimeIntervalMicroSeconds32KABCallbackWatchdogTimeout

Constant definition for the watchdog timer

KABMajorVersionNumber

const TUintKABMajorVersionNumber

The AB major version number.

KABMaxSendDataBlock

const TIntKABMaxSendDataBlock

Size of data blocks to send back to the PC from the ABClient

KABMinorVersionNumber

const TUintKABMinorVersionNumber

The AB minor version number.

KABRetryCount

const TIntKABRetryCount

Number of times to attempt connection to server.

KBURPartTypeMask

const TUintKBURPartTypeMask

TBURPartType Bitmask

KBackupIncTypeMask

const TUintKBackupIncTypeMask

TBackupIncType Bitmask

KCharWidthInBytes

const TIntKCharWidthInBytes

Used for unpacking unicode descriptors

KCompressionBlockSize

const TIntKCompressionBlockSize

Compression block size

KDataOffset

const TIntKDataOffset

Offset to the data that the TPtr8 will point to

KDefaultDelay

const TIntKDefaultDelay

KDesCArrayGranularity

const TIntKDesCArrayGranularity

KDescriptorOffset

const TIntKDescriptorOffset

Offset to the beginning of the main descriptor

KEncryptionBufferSize

const TIntKEncryptionBufferSize

Constants used in the class below

KHeaderOffset

const TIntKHeaderOffset

Offset for the lock flag

KIPCMessageSize

const TIntKIPCMessageSize

The maximum size of descriptor data passed with each IPC call

KJavaIdLength

const TIntKJavaIdLength

Length of the 128 bit Java hash in bytes

KJavaVirtualMachineSecureId

const TIntKJavaVirtualMachineSecureId

KKeySize

const TIntKKeySize

Constants used in the class below

KMaxDerivedTypes

const TUintKMaxDerivedTypes

Maximum number of derived types specified in TSBDerivedType

KMaxGenericTypeSize

const TIntKMaxGenericTypeSize

KMaxGenericTypeSize must be a multiple of 4 to ensure that all structures are 4-byte aligned

KMaxHeapSize

const TIntKMaxHeapSize

KMaxPackageNameLength

const TIntKMaxPackageNameLength

Maximum length of package name

KMinHeapSize

const TIntKMinHeapSize

KNullABSid

const TUint32KNullABSid

Constant for defining an unset Secure ID

KSBBufferBlockSize

const TIntKSBBufferBlockSize

This block size for the internal buffer

KSBEASyncMessageSlots

const TIntKSBEASyncMessageSlots

Number of async message slots.

KSBEBuildVersionNumber

const TUintKSBEBuildVersionNumber

The SBE build number

KSBEGSHDefaultSize

const TIntKSBEGSHDefaultSize

KSBEGSHMaxRetries

const TIntKSBEGSHMaxRetries

KSBEGSHReductionFactor

const TIntKSBEGSHReductionFactor

KSBEMajorVersionNumber

const TUintKSBEMajorVersionNumber

The SBE major version number.

KSBEMaxHexStringLength

const TIntKSBEMaxHexStringLength

KSBEMinorVersionNumber

const TUintKSBEMinorVersionNumber

The SBE minor version number.

KSBERetryCount

const TIntKSBERetryCount

Number of times to attempt connection to server.

KSBServerUID3

const TUidKSBServerUID3

The SB Server 3rd UID - Assigned from database.

KSID

const TIntKSID

KSIDLength

const TIntKSIDLength

KShutdownDelay

const TUintKShutdownDelay

Shutdown delay, in microseconds.

KUidBackupRestoreKey

const TUintKUidBackupRestoreKey

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

myABElements

myABElementsIndex

const TUint8myABElementsIndex

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.

myABPolicy

const CPolicyServer::TPolicymyABPolicy

myABRangeCount

const TUintmyABRangeCount

Active Backup range count

The number of different security ranges for active backup request numbers

myABRanges

const TIntmyABRanges

Active Backup security request ranges

This is a breakdown of the active backup requests into ranges for security checking purposes.

mySBEElements

mySBEElementsIndex

const TUint8mySBEElementsIndex

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.

mySBEPolicy

const CPolicyServer::TPolicymySBEPolicy

mySBERangeCount

const TUintmySBERangeCount

Secure Backup Engine range count

The number of different security ranges for SBEs request numbers

mySBERanges

const TIntmySBERanges

Secure Backup Engine security request ranges

This is a breakdown of the SBE requests into ranges for security checking purposes.

Member Enumeration Documentation

Enum TABMessages

AB Client/Server Messages

EnumeratorValueDescription
EABMsgBURModeInfo

Get info about the backup/restore mode

EABMsgDoesPartialAffectMe

Query whether or not this client is being operated on

EABMsgConfirmReadyForBUR

Confirm to the SBEngine that all data has now been prepared

EABMsgPrimeForCallback

This is the first msg that primes server for callbacks

EABMsgPrimeForCallbackAndResponse

Re-prime the server, sending a response from the last call

EABMsgPrimeForCallbackAndResponseDes

As for PrimeForCallbackAndResponse but for sending a descriptor

EABMsgPropagateLeave

Propagate a leave from the callback, back to the engine

EABMsgGetDataSync

Synchronous call to get data from the server

EABMsgSendDataLength

Synchronous call to send the length of data to the server

EABMsgClosingDownCallback

Inform the server that we're closing down the callback interface

EABMsgGetDriveNumForSuppliedSnapshot

Called from within the ReceiveSnapshot callback to return the drive num

Enum TActiveBUROptions

The active backup options

EnumeratorValueDescription
ENoActiveOptions0x00000000

0x00000000: no active backup options selected

EDelayToPrepareData0x00000001

0x00000001: data owner slow to prepare active data

EActiveSupportsInc0x00000002

0x00000002: data owner supports incremental BUR ?

Enum TActiveType

enum representing TActiveType

EnumeratorValueDescription
EActiveOnly0
EActiveAndProxyImpl1
EProxyImpOnly2

Enum TBURPartType

The backup / restore state of a device.

EnumeratorValueDescription
EBURUnset0x00000000

0x00000000: The backup / restore mode has not been set

EBURNormal0x00000001

0x00000001: The device as a whole is not engaged in a backup or restore

EBURBackupFull0x00000002

0x00000002: The device as a whole is engaged in a backup of all components data

EBURBackupPartial0x00000004

0x00000004: The device as a whole is engaged in a backup of selected components data

EBURRestoreFull0x00000008

0x00000008: The device as a whole is engaged in a restore of all components data

EBURRestorePartial0x00000010

0x00000010: The device as a whole is engaged in a restore of all components data

Enum TBackupDataType

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.

EnumeratorValueDescription
EActive0

0x00000000: The backup or restore operation is active rather than passive

EPassive1

0x00000001: The backup or restore operation is passive rather than active

Enum TBackupIncType

The type of a backup.

EnumeratorValueDescription
ENoBackup0x00000000

0x00000000: No backup is in progress

EBackupBase0x00000100

0x00000100: The backup is a base backup, i.e. it includes all files / data

EBackupIncrement0x00000200

0x00000200: The backup is an incremental backup, i.e. it includes only files / data that have changed since a previous backup

Enum TCommonBUROptions

The passive backup options

EnumeratorValueDescription
ENoOptions0x00000000

0x00000000: no common options selected

EActiveBUR0x00000001

0x00000001: Does the data owner do active backup / restore?

EPassiveBUR0x00000002

0x00000002: Does the data owner do passive backup / restore?

EHasSystemFiles0x00000004

0x00000004: Does the data owner want system files backed up?

ESupportsSelective0x00000008

0x00000008: Can the data owner do BUR selectively?

ERequiresReboot0x00000010

0x00000010: Does the data owner require reboot after restore?

Enum TDataOwnerStatus

TDataOwnerStatus encapsulates the status of a data owner.

EnumeratorValueDescription
EUnset0

0x00000000: Unset - allows creation of object without incorrect status

EDataOwnerNotFound1

0x00000001: Data owner not found in registration files

EDataOwnerReady2

0x00000002: Data owner ready for backup / restore

EDataOwnerNotReady3

0x00000003: Data owner not yet ready for backup / restore

EDataOwnerFailed4

0x00000004: Data owner failed to become ready

EDataOwnerNotConnected5

0x00000005: Data owner alive, but not fully ready

EDataOwnerReadyNoImpl6

0x00000006: Data owner ready for backup / restore but does not provide callback implementation

Enum TJavaTransferType

This enum defines the type of Java data that is being transferred and can indicate either a MIDlet suite archive (Jad/Jar etc.) or data for an installed MIDlet suite

EnumeratorValueDescription
EJavaMIDlet0
EJavaMIDletData1

Enum TPackageDataType

TPackageDataType indicates the type of package data being transferred from the Secure Backup Engine to the Secure Backup Server or vice versa.

Deprecated

EnumeratorValueDescription
ESystemData0

0x00000000: The data is system files (typically executables or resource files)

ESystemSnapshotData1

0x00000001: The data is a snapshot for system files

Enum TPassiveBUROptions

The passive backup options

EnumeratorValueDescription
ENoPassiveOptions0x00000000

0x00000000: no passive options selected

EHasPublicFiles0x00000001

0x00000001: data owner has public files to BUR ?

EDeleteBeforeRestore0x00000002

0x00000002: data owner requires a delete before restore ?

EPassiveSupportsInc0x00000004

0x00000004: data owner supports incremental BUR ?

Enum TSBDerivedType

Used to identify the derived type that the base generic type represents

Deprecated

EnumeratorValueDescription
ESIDDerivedType0

0x00000000: SID derived type

EPackageDerivedType1

0x00000001: Package derived type

ESIDTransferDerivedType2

0x00000002: SID data transfer derived type

EPackageTransferDerivedType3

0x00000003: Package data transfer derived type

EJavaDerivedType4

0x00000004: Java ID derived type

EJavaTransferDerivedType5

0x00000005: Java ID derived type

Enum TSBEMessages

SBE Client/Server Messages

EnumeratorValueDescription
ESBEMsgGetGSHHandle

Pass the the Global Anonymous Shared Heap handle to client

ESBEMsgPrepDataOwnerInfo

Prepare the data owner information for a specific SID

ESBEMsgGetDataOwnerInfo

Transfer the data owner information for a specific SID

ESBEMsgPrepPublicFiles

Prepare the data owner information for a specific SID

ESBEMsgGetPublicFiles

Transfer the data owner information for a specific SID

ESBEMsgPrepPublicFilesRaw

Prepare the data owner information for a specific SID

ESBEMsgGetPublicFilesRaw

Transfer the data owner information for a specific SID

ESBEMsgPrepPublicFilesXML

Prepare the data owner information for a specific SID

ESBEMsgGetPublicFilesXML

Transfer the data owner information for a specific SID

ESBEMsgSetBURMode

Set the Backup and Restore mode and associatedial BUR

ESBEMsgPrepSIDStatus

Get the returned descriptor length from a SIDS params

ESBEMsgSetSIDListPartial

Set the list of data owners affected in a parttatus array

ESBEMsgGetSIDStatus

Transfer the array of SID's and statuses

ESBEMsgRequestDataSync

Request that the SBE transfers some data to the client

ESBEMsgSupplyDataSync

Instruct the SBE that data has been supplied ine client

ESBEMsgRequestDataAsync

Request that the SBE transfers some data to th the GSH

ESBEMsgSupplyDataAsync

Instruct the SBE that data has been supplied in the GSH

ESBEMsgAllSnapshotsSupplied

Request that supplied SID's are subject to a Base backup

ESBEMsgGetExpectedDataSize

Ask the SBE for the expected size of backup data

ESBEMsgAllSystemFilesRestored

Instruct the SBE that all system files have now been restored

ESBEMsgGetDataChecksum

For testing - Request the checksum of a SID's backup data

ESBEMsgPrepLargePublicFiles

Instruct the SBE to build the public file list and place in GSH

ESBEMsgGetLargePublicFiles

Retrieve parameters such as the finished flag from SBE

Enum TSelectionType

Enumeration to specify if a selection should be included or excluded

EnumeratorValueDescription
EInclude
EExclude

Is excluded

Enum TState

The current request state

EnumeratorValueDescription
ENone
ERequest
ESupply
EBuffer

Enum TTransferDataType

TTransferDataType indicates the type of data being transferred from the Secure Backup Engine to the Secure Backup Server or vice versa.

EnumeratorValueDescription
ERegistrationData0

0x00000000: deprecated

EPassiveSnapshotData1

0x00000001: The data is a snapshot for passive backup that includes file details

EPassiveBaseData2

0x00000002: The data is passively backup up private data with no previous history

EPassiveIncrementalData3

0x00000003: The data is passively backed up private data as an increment on a previous base backup

EActiveSnapshotData4

0x00000004: The data is a snapshot for active backup that includes file details

EActiveBaseData5

0x00000005: The data is actively backup up private data with no previous history

EActiveIncrementalData6

0x00000006: The data is actively backed up private data as an increment on a previous base backup

ECentralRepositoryData7

0x00000007: deprecated

EPublicFileListing8

0x00000008: An externalised list of public file entries belonging to a single data owner

Enum TTransferDirection

TTransferDirection indicates whether a (just completed) data transfer is from the Secure Backup Server to a data owner or vice versa.

EnumeratorValueDescription
EServerToDataOwner0

0x00000000: The transfer is from the Secure Backup Server to a data owner

EDataOwnerToServer1

0x00000001: The transfer is from a data owner to the Secure Backup Server

Member Function Documentation

CleanupRPointerArray ( TAny * )

voidCleanupRPointerArray(TAny *aPtr)

CleanupResetAndDestroyL ( T & )

voidCleanupResetAndDestroyL(T &aRef)[inline]

CleanupResetAndDestroyPushL ( T & )

voidCleanupResetAndDestroyPushL(T &aRef)[inline]

PackType ( T &, TDesC8 &, TInt )

voidPackType(T &aType,
TDesC8 &aDes,
TIntaOffset
)[inline]

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

ParameterDescription
aTypeThis object is overwritten with the flattened type in aDes
aDesThe buffer that contains the type T pointed to by aPtr
aOffsetThe running index of where the following type begins. Updated by ExtractPointer

Returns: The new offset after packing the data type

PackTypeAdvance ( T &, TDesC8 &, TInt & )

voidPackTypeAdvance(T &aType,
TDesC8 &aDes,
TInt &aOffset
)[inline]

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

ParameterDescription
aTypeThis object is overwritten with the flattened type in aDes
aDesThe buffer that contains the type T pointed to by aPtr
aOffsetThe running index of where the following type begins. Updated by ExtractPointer

Returns: The new offset after packing the data type

ReadFromBufferF ( T &, TUint8 *&, const TUint8 * )

TBool ReadFromBufferF(T &aT,
TUint8 *&appCurrent,
const TUint8 *apEnd
)

Template class to read flat structures from the buffer

ParameterDescription
aTon return the flat structure.
appCurrentThe current point into the buffer.
apEndThe end of the buffer.

Returns: ETrue if read succesfully. EFalse if a retry is needed.

ReadFromBufferF< TFileFixedHeader > ( TFileFixedHeader &, TUint8 *&, const TUint8 * )

template TBoolReadFromBufferF< TFileFixedHeader >(TFileFixedHeader &,
TUint8 *&,
const TUint8 *
)

ReadFromBufferF< TSnapshot > ( TSnapshot &, TUint8 *&, const TUint8 * )

template TBoolReadFromBufferF< TSnapshot >(TSnapshot &,
TUint8 *&,
const TUint8 *
)

ReadFromBufferV ( TPtr8 &, TInt, TUint8 *&, const TUint8 * )

TBool ReadFromBufferV(TPtr8 &aT,
TIntaSize,
TUint8 *&appCurrent,
const TUint8 *apEnd
)

Reads from the buffer.

ParameterDescription
aTon return the data read.
aSizesize of the data to read.
appCurrentPointer to read from.
apEndthe end of the data.

Returns: ETrue on success. EFalse on failure.

ReadL ( T &, TPtr8 & )

voidReadL(T &aT,
TPtr8 &aBuffer
)

ReadL ( T &, TPtr8 &, TInt, TInt )

voidReadL(T &aT,
TPtr8 &aBuffer,
TIntaStartAt = 0,
TIntaToCopy = sizeof(T)
)

Reads data from any given type into aBuffer

ParameterDescription
aTtype to put in buffer
aBufferthe buffer
aStartAtoffset of the data
aToCopythe amount of data to copy

UnpackType ( T &, TDesC8 &, TInt )

voidUnpackType(T &aType,
TDesC8 &aDes,
TIntaOffset
)[inline]

Templated function to copy a simple type from a specified position in aDes defined by aOffset. aOffset is not updated on return.

ParameterDescription
aTypeThis pointer is set with the pointer to the type in aDes
aDesThe buffer that contains the type T pointed to by aPtr
aOffsetThe running index of where the following type begins. Updated by ExtractPointer

UnpackTypeAdvance ( T &, TDesC8 &, TInt & )

voidUnpackTypeAdvance(T &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.

ParameterDescription
aTypeThis pointer is set with the pointer to the type in aDes
aDesThe buffer that contains the type T pointed to by aPtr
aOffsetThe running index of where the following type begins. Updated by ExtractPointer

UnpackTypeAdvance ( TDriveList &, TDesC8 &, TInt & )

voidUnpackTypeAdvance(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.

ParameterDescription
aTypeThis pointer is set with the pointer to the type in aDes
aDesThe buffer that contains the type T pointed to by aPtr
aOffsetThe running index of where the following type begins. Updated by ExtractPointer

WriteL ( T &, TPtr8 & )

voidWriteL(T &aT,
TPtr8 &aBuffer
)

WriteL ( T &, TPtr8 &, TInt, TInt )

voidWriteL(T &aT,
TPtr8 &aBuffer,
TIntaStartAt = 0,
TIntaToCopy = sizeof(T)
)

Writes data from aBuffer into any given type

ParameterDescription
aTtype to read in from buffer
aBufferthe buffer
aStartAtoffset of the data
aToCopythe amount of data to copy

WriteToBufferF ( T &, TPtr8 & )

TBool WriteToBufferF(T &aT,
TPtr8 &aPtr
)

Writes flat structures to the buffer.

NOTE: This should _ONLY_ be used to write T classes to the buffer.

ParameterDescription
aTThe flat structure to write to the buffer.

Returns: ETrue on success. EFalse on failure.

WriteToBufferV ( const TPtr8 &, TInt, TPtr8 & )

TBool WriteToBufferV(const TPtr8 &aPtr,
TIntaSize,
TPtr8 &aBuffer
)

Writes some vairable data to the buffer.

NOTE: This should _ONLY_ be used to write T classes to the buffer.

ParameterDescription
aPtrbuffer to read from.
aSizesize of the data to write.
aBufferthe buffer to write to.

Returns: ETrue on success. EFalse on failure.

_LIT ( KABServerName, "!ABServer" )

_LIT(KABServerName,
"!ABServer"
)

The name of the AB server.

_LIT ( KBackSlash, "\\" )

_LIT(KBackSlash,
"\\"
)

_LIT ( KBackupRegistrationFile, "backup_registration*.xml" )

_LIT(KBackupRegistrationFile,
"backup_registration*.xml"
)

_LIT ( KCentRepProcessName, "centralrepositorysrv.exe" )

_LIT(KCentRepProcessName,
"centralrepositorysrv.exe"
)

Name of Central Repository Server

_LIT ( KColon, ":" )

_LIT(KColon,
":"
)

_LIT ( KConfigFile, "sbeconfig.xml" )

_LIT(KConfigFile,
"sbeconfig.xml"
)

_LIT ( KDrive, "?:" )

_LIT(KDrive,
"?:"
)

_LIT ( KDriveAndSlash, "?:\\" )

_LIT(KDriveAndSlash,
"?:\\"
)

_LIT ( KExclamationAsDrive, "!" )

_LIT(KExclamationAsDrive,
"!"
)

_LIT ( KImport, "*\\import\\*" )

_LIT(KImport,
"*\\import\\*"
)

_LIT ( KImportDir, "\\private\\10202D56\\import\\packages\\" )

_LIT(KImportDir,
"\\private\\10202D56\\import\\packages\\"
)

_LIT ( KMIDletTempRestorePath, "C:\\system\\temp\\MIDletRestore\\" )

_LIT(KMIDletTempRestorePath,
"C:\\system\\temp\\MIDletRestore\\"
)

Temporary path used for restoring midlets

_LIT ( KOther, "*\\..\\*" )

_LIT(KOther,
"*\\..\\*"
)

_LIT ( KPad, "00000000" )

_LIT(KPad,
"00000000"
)

_LIT ( KPrimaryBackupRegistrationFile, "backup_registration.xml" )

_LIT(KPrimaryBackupRegistrationFile,
"backup_registration.xml"
)

_LIT ( KPrivate, "\\private\\" )

_LIT(KPrivate,
"\\private\\"
)

_LIT ( KPrivateMatch, "?:\\private\\*" )

_LIT(KPrivateMatch,
"?:\\private\\*"
)

_LIT ( KPrivateNoBackup, "?:\\private\\????????\\NoBackup\\*" )

_LIT(KPrivateNoBackup,
"?:\\private\\????????\\NoBackup\\*"
)

_LIT ( KPrivateSidMatch, "?:\\private\\" )

_LIT(KPrivateSidMatch,
"?:\\private\\"
)

_LIT ( KQuestionMark, "?" )

_LIT(KQuestionMark,
"?"
)

_LIT ( KResource, "?:\\resource\\*" )

_LIT(KResource,
"?:\\resource\\*"
)

_LIT ( KSBEServerName, "!SBEServer" )

_LIT(KSBEServerName,
"!SBEServer"
)

The name of the SBE server execuatable.

_LIT ( KSBImageName, "sbengine" )

_LIT(KSBImageName,
"sbengine"
)

The Secure Backup image name

_LIT ( KStar, "*" )

_LIT(KStar,
"*"
)

_LIT ( KSys, "?:\\sys\\*" )

_LIT(KSys,
"?:\\sys\\*"
)

_LIT ( KSystem, "?:\\system\\*" )

_LIT(KSystem,
"?:\\system\\*"
)

_LIT ( KTempPath, ":\\system\\temp\\" )

_LIT(KTempPath,
":\\system\\temp\\"
)

_LIT8 ( KActiveAndProxy, "activeandproxy" )

_LIT8(KActiveAndProxy,
"activeandproxy"
)

_LIT8 ( KActiveBackup, "active_backup" )

_LIT8(KActiveBackup,
"active_backup"
)

_LIT8 ( KActiveOnly, "activeonly" )

_LIT8(KActiveOnly,
"activeonly"
)

_LIT8 ( KActiveType, "active_type" )

_LIT8(KActiveType,
"active_type"
)

_LIT8 ( KAppCloseDelay, "app_close_delay" )

_LIT8(KAppCloseDelay,
"app_close_delay"
)

_LIT8 ( KBackupRegistration, "backup_registration" )

_LIT8(KBackupRegistration,
"backup_registration"
)

_LIT8 ( KBaseBackupOnly, "base_backup_only" )

_LIT8(KBaseBackupOnly,
"base_backup_only"
)

_LIT8 ( KCallbackDelayTime, "callback_delay_time" )

_LIT8(KCallbackDelayTime,
"callback_delay_time"
)

_LIT8 ( KCenrepBackup, "cenrep_backup" )

_LIT8(KCenrepBackup,
"cenrep_backup"
)

_LIT8 ( KCentRep, "central_repository" )

_LIT8(KCentRep,
"central_repository"
)

_LIT8 ( KConfig, "sbe_config" )

_LIT8(KConfig,
"sbe_config"
)

_LIT8 ( KDBMSBackup, "dbms_backup" )

_LIT8(KDBMSBackup,
"dbms_backup"
)

_LIT8 ( KDatabase, "database" )

_LIT8(KDatabase,
"database"
)

_LIT8 ( KDelay, "delay" )

_LIT8(KDelay,
"delay"
)

_LIT8 ( KDeleteBeforeRestore, "delete_before_restore" )

_LIT8(KDeleteBeforeRestore,
"delete_before_restore"
)

_LIT8 ( KDrives, "exclude_drives" )

_LIT8(KDrives,
"exclude_drives"
)

_LIT8 ( KExclude, "exclude" )

_LIT8(KExclude,
"exclude"
)

_LIT8 ( KHeap, "heap" )

_LIT8(KHeap,
"heap"
)

_LIT8 ( KHexLeader, "0x" )

_LIT8(KHexLeader,
"0x"
)

_LIT8 ( KIncludeDirectory, "include_directory" )

_LIT8(KIncludeDirectory,
"include_directory"
)

_LIT8 ( KIncludeFile, "include_file" )

_LIT8(KIncludeFile,
"include_file"
)

_LIT8 ( KJavaXMLElementIncludeDirectory, "java_include_directory" )

_LIT8(KJavaXMLElementIncludeDirectory,
"java_include_directory"
)

_LIT8 ( KJavaXMLElementJavaBackupMIDlet, "java_backup_midlet" )

_LIT8(KJavaXMLElementJavaBackupMIDlet,
"java_backup_midlet"
)

_LIT8 ( KJavaXMLElementMIDletSuite, "midlet_suite" )

_LIT8(KJavaXMLElementMIDletSuite,
"midlet_suite"
)

_LIT8 ( KList, "list" )

_LIT8(KList,
"list"
)

_LIT8 ( KMaxRetries, "max_retries" )

_LIT8(KMaxRetries,
"max_retries"
)

_LIT8 ( KMimeType, "text/xml" )

_LIT8(KMimeType,
"text/xml"
)

_LIT8 ( KPassiveBackup, "passive_backup" )

_LIT8(KPassiveBackup,
"passive_backup"
)

_LIT8 ( KPolicy, "policy" )

_LIT8(KPolicy,
"policy"
)

_LIT8 ( KProcessName, "process_name" )

_LIT8(KProcessName,
"process_name"
)

_LIT8 ( KProxyDataManager, "proxy_data_manager" )

_LIT8(KProxyDataManager,
"proxy_data_manager"
)

_LIT8 ( KProxyOnly, "proxyonly" )

_LIT8(KProxyOnly,
"proxyonly"
)

_LIT8 ( KProxySID, "SID" )

_LIT8(KProxySID,
"SID"
)

_LIT8 ( KPublicBackup, "public_backup" )

_LIT8(KPublicBackup,
"public_backup"
)

_LIT8 ( KRedFact, "reduction_factor" )

_LIT8(KRedFact,
"reduction_factor"
)

_LIT8 ( KRequiresDelay, "requires_delay_to_prepare_data" )

_LIT8(KRequiresDelay,
"requires_delay_to_prepare_data"
)

_LIT8 ( KRequiresReboot, "requires_reboot" )

_LIT8(KRequiresReboot,
"requires_reboot"
)

_LIT8 ( KRestore, "restore" )

_LIT8(KRestore,
"restore"
)

_LIT8 ( KSize, "size" )

_LIT8(KSize,
"size"
)

_LIT8 ( KSupportsInc, "supports_incremental" )

_LIT8(KSupportsInc,
"supports_incremental"
)

_LIT8 ( KSupportsSelective, "supports_selective" )

_LIT8(KSupportsSelective,
"supports_selective"
)

_LIT8 ( KSystemBackup, "system_backup" )

_LIT8(KSystemBackup,
"system_backup"
)

_LIT8 ( KUid, "uid" )

_LIT8(KUid,
"uid"
)

_LIT8 ( KVersion, "1.0" )

_LIT8(KVersion,
"1.0"
)

_LIT8 ( KYes, "yes" )

_LIT8(KYes,
"yes"
)

_LIT_SECURE_ID ( KCentRepSID, 0x10202BE9 )

_LIT_SECURE_ID(KCentRepSID,
0x10202BE9
)

_LIT_SECURE_ID ( KDummyId, 0x00000000 )

_LIT_SECURE_ID(KDummyId,
0x00000000
)

_LIT_SECURITY_POLICY_PASS ( KReadPolicy )