class conn::CActiveBackupClient : public CBase |
CActiveBackupClient provides a connection to the Secure Backup Server for a data owning process.
It can be used to obtain information about an active backup or restore operation. It can also be used to signal to the Secure Backup Server when the data owner is ready for backup or restore.
It is also used by data owners that implement active backup or restore to provide a MActiveBackupDataClient implementation.
This class owns a RActiveBackupSessionImpl instance and publishes the public API to the outside world. The reason for this facade class is twofold:
Hiding the implementation details of RActiveBackupSessionImpl
Future binary compatibility
Public Member Functions | |
---|---|
~CActiveBackupClient () | |
IMPORT_C void | BURModeInfoL ( TDriveList &, TBURPartType &, TBackupIncType &) |
IMPORT_C void | ConfirmReadyForBURL ( TInt ) |
IMPORT_C TBool | DoesPartialBURAffectMeL () |
IMPORT_C CActiveBackupClient * | NewL () |
IMPORT_C CActiveBackupClient * | NewL ( MActiveBackupDataClient *) |
Private Member Functions | |
---|---|
CActiveBackupClient () | |
void | ConstructL () |
void | ConstructL ( MActiveBackupDataClient *) |
Private Attributes | |
---|---|
CActiveBackupCallbackHandler * | iABCallbackHandler |
RABClientSession * | iClientSession |
IMPORT_C 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. |
IMPORT_C 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. |
void | ConstructL | ( | MActiveBackupDataClient * | aClient | ) | [private] |
Construct this instance of CActiveBackupClient
MActiveBackupDataClient * aClient | Pointer to a concrete instance of MActiveBackupDataClient |
IMPORT_C 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.
IMPORT_C CActiveBackupClient * | NewL | ( | ) | [static] |
This method creates a CActiveBackupClient , connects to the Secure Backup Server and does not wish to be called back so does not supply an implementation of MActiveBackupDataClient .
If this is called when the Secure Backup Server is not active then it will leave with KErrNotSupported.
IMPORT_C CActiveBackupClient * | NewL | ( | MActiveBackupDataClient * | aClient | ) | [static] |
This method creates a CActiveBackupClient , connects to the Secure Backup Server and supplies a pointer to a MActiveBackupDataClient implementation.
If this is called when the Secure Backup Server is not active then it will leave with KErrNotSupported.
MActiveBackupDataClient * aClient | pointer to an object that implements the MActiveBackupDataClient mixin. If this is NULL then the data owner does not take part in active backup or restore. |
CActiveBackupCallbackHandler * | iABCallbackHandler | [private] |
Pointer to the Active Backup Callback Handler
RABClientSession * | iClientSession | [private] |
Pointer to the client session R class that's wrapped up by this class
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.