class conn::RABClientSession : public RSessionBase |
The active backup client to the Secure Backup Engine.
Public Member Functions | |
---|---|
RABClientSession () | |
void | BURModeInfoL ( TDriveList &, TBURPartType &, TBackupIncType &) |
void | CancelServerCallbackL () |
void | Close () |
void | ConfirmReadyForBURL ( TInt ) |
TInt | Connect () |
TBool | DoesPartialBURAffectMeL () |
HBufC8 * | GetDataFromServerLC (const TInt , TABCallbackCommands ) |
HBufC8 * | GetDataFromServerLC (const TInt , TABCallbackCommands , TDriveNumber &) |
void | PrimeServerForCallbackL ( TPckgBuf < TABCallbackCommands > &, TPckgBuf < TInt > &, TPckgBuf < TInt > &, TRequestStatus &) |
void | PrimeServerForCallbackWithResponseL ( TPckgBuf < TABCallbackCommands > &, TPckgBuf < TInt > &, TPckgBuf < TInt > &, TInt , TRequestStatus &) |
void | PrimeServerForCallbackWithResponseL ( TPckgBuf < TABCallbackCommands > &, TPckgBuf < TInt > &, TPckgBuf < TInt > &, TDesC8 &, TRequestStatus &) |
void | PropagateLeave ( TInt ) |
void | SendDataLengthToServerL ( TDesC8 &, TBool , TABCallbackCommands ) |
TVersion | Version () |
Private Member Functions | |
---|---|
TInt | StartServer () |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
void | BURModeInfoL | ( | TDriveList & | aDriveList, |
TBURPartType & | aBackupType, | |||
TBackupIncType & | aIncBackupType | |||
) |
This method returns the type(s) of backup / restore operation currently active
TDriveList & aDriveList | list of drives involved in backup and restore |
TBURPartType & aBackupType | enumerated type indicating whether a backup or restore is in progress and whether full or partial. |
TBackupIncType & aIncBackupType | enumerated type indicating whetherr a backup is base or incremental. |
void | CancelServerCallbackL | ( | ) |
Inform the server that it can no longer call callbacks on the client
void | ConfirmReadyForBURL | ( | TInt | aErrorCode | ) |
This method is called to indicate to the Secure Backup Server that the data owner is ready to participate in backup or restore. The data owner must call this method to indicate readiness or the Secure Backup Server will not request or supply backup data.
N.B. The Secure Backup Server will supply snapshot data (if relevant) before a data owner indicates readiness as it assumes that the data owner requires snapshot data in order to prepare for a backp or restore.
TInt aErrorCode | this should be set to KErrNone when the client is ready for backup or restore. If it is set to any other value then it indicates that the client cannot continue with the backup or restore and the error code will be supplied to the remote backup client. |
TBool | DoesPartialBURAffectMeL | ( | ) |
This method can be called when a partial backup or restore is active and will indicate whether the calling process is expected to take part. If a full backup or restore is active then this method will return ETrue for all data owners. If no backup or restore is active then this method will return EFalse for all data owners.
HBufC8 * | GetDataFromServerLC | ( | const TInt | aDataLength, |
TABCallbackCommands | aCallbackRequestingData | |||
) |
Following a callback call to the Active Backup Callback Handler, this method requests the data from the server. aDataLength will have been supplied by the original callback call from the server and all that remains is to make a synchronous call to get it copied over
const TInt aDataLength | The length of the data that will be received |
TABCallbackCommands aCallbackRequestingData | The callback enum identifying the callback requesting this data |
HBufC8 * | GetDataFromServerLC | ( | const TInt | aDataLength, |
TABCallbackCommands | aCallbackRequestingData, | |||
TDriveNumber & | aDriveNum | |||
) |
Following a callback call to the Active Backup Callback Handler, this method requests the data from the server. aDataLength will have been supplied by the original callback call from the server and all that remains is to make a synchronous call to get it copied over. This should only be called from a ReceiveSnapshot callback
const TInt aDataLength | The length of the data that will be received |
TABCallbackCommands aCallbackRequestingData | The callback enum identifying the callback requesting this data |
TDriveNumber & aDriveNum | The drive number |
void | PrimeServerForCallbackL | ( | TPckgBuf < TABCallbackCommands > & | aCallback, |
TPckgBuf < TInt > & | aArg1, | |||
TPckgBuf < TInt > & | aArg2, | |||
TRequestStatus & | aStatus | |||
) |
Send an async message to the server so that it can call us back when it's ready to make callback's
TPckgBuf < TABCallbackCommands > & aCallback | This modifiable package buf is set by the server to indicate which callback to call |
TPckgBuf < TInt > & aArg1 | This is the first argument for the callback, set by the server |
TPckgBuf < TInt > & aArg2 | This is the second argument for the callback, set by the server |
TRequestStatus & aStatus | The status |
void | PrimeServerForCallbackWithResponseL | ( | TPckgBuf < TABCallbackCommands > & | aCallback, |
TPckgBuf < TInt > & | aArg1, | |||
TPckgBuf < TInt > & | aArg2, | |||
TInt | aResult, | |||
TRequestStatus & | aStatus | |||
) |
Send an async message to the server so that it can call us back when it's ready to make callback's. This call also returns a result from the previous callback for the server to respond to/return to the PC etc.
TPckgBuf < TABCallbackCommands > & aCallback | This modifiable package buf is set by the server to indicate which callback to call |
TPckgBuf < TInt > & aArg1 | This is the first argument for the callback, set by the server |
TPckgBuf < TInt > & aArg2 | This is the second argument for the callback, set by the server |
TInt aResult | The return value of the previous callback to pass back to the server |
TRequestStatus & aStatus | The status |
void | PrimeServerForCallbackWithResponseL | ( | TPckgBuf < TABCallbackCommands > & | aCallback, |
TPckgBuf < TInt > & | aArg1, | |||
TPckgBuf < TInt > & | aArg2, | |||
TDesC8 & | aResult, | |||
TRequestStatus & | aStatus | |||
) |
Send an async message to the server so that it can call us back when it's ready to make callback's. This call also returns a result from the previous callback for the server to respond to/return to the PC etc.
TPckgBuf < TABCallbackCommands > & aCallback | This modifiable package buf is set by the server to indicate which callback to call |
TPckgBuf < TInt > & aArg1 | This is the first argument for the callback, set by the server |
TPckgBuf < TInt > & aArg2 | This is the second argument for the callback, set by the server |
TDesC8 & aResult | Data to send back to the server |
TRequestStatus & aStatus | The status |
void | PropagateLeave | ( | TInt | aLeaveCode | ) |
Send a synchronous IPC message to the server indicating that a leave has ocurred whilst executing a callback
TInt aLeaveCode | The code to leave back to the server with |
void | SendDataLengthToServerL | ( | TDesC8 & | aData, |
TBool | aFinished, | |||
TABCallbackCommands | aCallbackSendingData | |||
) |
Send the length and finished flag back to the server. Limitations of IPC mean that we can only send fixed size data to the server, hence the length and finished flag are sent first so that the server may allocate the appropriate amount of space prior to the response containing the data
TDesC8 & aData | Descriptor containing the data to send back to the server. Only the length of this is sent in this message |
TBool aFinished | Flag indicating that this is the last transfer from the client to server. If EFalse, the server must call the callback again |
TABCallbackCommands aCallbackSendingData | This |
TInt | StartServer | ( | ) | [private, static] |
Start the server as a thread on WINS or a process on ARM.
Called by Connect when the kernel is unable to create a session with the AB server (if the process hosting it is not running).
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.