RBSClient Class Reference

class RBSClient : public RSessionBase

Simple ClientServer for testing and example purposes.

Inherits from

Public Member Functions
RBSClient ()
~RBSClient ()
void AppendL ( MBSElement *)
void CancelTransactionL (const TDesC8 &, const TDesC8 &, TLanguage , TInt )
void Close ()
TInt Connect ()
void GetBufferL (const TDesC8 &, HBufC8 *&)
void GetFileL (const TDesC8 &, RFile &)
void GetIntL (const TDesC8 &, TInt &)
MBSElement * GetSeveralL ( MDesC8Array &)
MBSElement * GetStructureL (const TDesC8 &)
void GetTextL (const TDesC8 &, HBufC *&)
void InsertL ( MBSElement *)
void RegisterObserverL ( MBSBrandChangeObserver *, MBSBackupRestoreStateObserver *)
void RemoveBrandL (const TDesC8 &, const TDesC8 &)
void RemoveBrandsL (const TDesC8 &)
void ReplaceL ( MBSElement *)
void StartTransactionL (const TDesC8 &, const TDesC8 &, const TDesC8 &, TLanguage , TTransactionType , TInt )
TInt StopTransactionL (const TDesC8 &, const TDesC8 &, TLanguage , TInt )
void UnRegisterObserverL ( MBSBrandChangeObserver *, MBSBackupRestoreStateObserver *)
void isBrandUpdateRequiredL ( TInt &)
Private Member Functions
TIpcArgs CreateArgumentsL (const TDesC8 &, const TDesC8 &, TLanguage , TInt )
void ExternalizeIdArrayL ( RWriteStream &, MDesC8Array &)
TInt GetBackupRestoreL ()
TInt GetBackupStateL ()
TInt GetNewVersionL ()
TInt GetValueL ( TInt )
void InitClientL (const TDesC8 &, const TDesC8 &, const TDesC8 &, TLanguage , TTransactionType , TInt )
MBSElement * InternalizeElementL ( RReadStream &)
void RegisterObserverToServerL ( TRequestStatus &)
void SendUpdateL ( MBSElement *, TBSMessages )
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
CBSBrandObserver * iObserver
TTransactionType iType
TInt isUpdateRequired
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RBSClient()

RBSClient ( )

~RBSClient()

~RBSClient ( )

Member Functions Documentation

AppendL(MBSElement *)

void AppendL ( MBSElement * aElement )

Parameters

MBSElement * aElement

CancelTransactionL(const TDesC8 &, const TDesC8 &, TLanguage, TInt)

void CancelTransactionL ( const TDesC8 & aApplicationId,
const TDesC8 & aBrandId,
TLanguage aLanguage,
TInt aReserved = 0
)

Parameters

const TDesC8 & aApplicationId
const TDesC8 & aBrandId
TLanguage aLanguage
TInt aReserved = 0

Close()

void Close ( )

Connect()

TInt Connect ( )

CreateArgumentsL(const TDesC8 &, const TDesC8 &, TLanguage, TInt)

TIpcArgs CreateArgumentsL ( const TDesC8 & aApplicationId,
const TDesC8 & aBrandId,
TLanguage aLanguage,
TInt aReserved
) [private]

Parameters

const TDesC8 & aApplicationId
const TDesC8 & aBrandId
TLanguage aLanguage
TInt aReserved

ExternalizeIdArrayL(RWriteStream &, MDesC8Array &)

void ExternalizeIdArrayL ( RWriteStream & aStream,
MDesC8Array & aArray
) [private]

Parameters

RWriteStream & aStream
MDesC8Array & aArray

GetBackupRestoreL()

TInt GetBackupRestoreL ( ) [private]

GetBackupStateL()

TInt GetBackupStateL ( ) [private]

GetBufferL(const TDesC8 &, HBufC8 *&)

void GetBufferL ( const TDesC8 & aId,
HBufC8 *& aValue
)

Parameters

const TDesC8 & aId
HBufC8 *& aValue

GetFileL(const TDesC8 &, RFile &)

void GetFileL ( const TDesC8 & aId,
RFile & aFile
)

Parameters

const TDesC8 & aId
RFile & aFile

GetIntL(const TDesC8 &, TInt &)

void GetIntL ( const TDesC8 & aId,
TInt & aValue
)

Parameters

const TDesC8 & aId
TInt & aValue

GetNewVersionL()

TInt GetNewVersionL ( ) [private]

GetSeveralL(MDesC8Array &)

MBSElement * GetSeveralL ( MDesC8Array & aIds )

Parameters

MDesC8Array & aIds

GetStructureL(const TDesC8 &)

MBSElement * GetStructureL ( const TDesC8 & aId )

Parameters

const TDesC8 & aId

GetTextL(const TDesC8 &, HBufC *&)

void GetTextL ( const TDesC8 & aId,
HBufC *& aValue
)

Parameters

const TDesC8 & aId
HBufC *& aValue

GetValueL(TInt)

TInt GetValueL ( TInt msg ) [private]

Parameters

TInt msg

InitClientL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TLanguage, TTransactionType, TInt)

void InitClientL ( const TDesC8 & aApplicationId,
const TDesC8 & aBrandId,
const TDesC8 & aDefaultBrandId,
TLanguage aLanguage,
TTransactionType aType,
TInt aReserved
) [private]

Parameters

const TDesC8 & aApplicationId
const TDesC8 & aBrandId
const TDesC8 & aDefaultBrandId
TLanguage aLanguage
TTransactionType aType
TInt aReserved

InsertL(MBSElement *)

void InsertL ( MBSElement * aElement )

Parameters

MBSElement * aElement

InternalizeElementL(RReadStream &)

MBSElement * InternalizeElementL ( RReadStream & aStream ) [private]

Parameters

RReadStream & aStream

RegisterObserverL(MBSBrandChangeObserver *, MBSBackupRestoreStateObserver *)

void RegisterObserverL ( MBSBrandChangeObserver * aObserver,
MBSBackupRestoreStateObserver * aBackupStateObserver
)

Parameters

MBSBrandChangeObserver * aObserver
MBSBackupRestoreStateObserver * aBackupStateObserver

RegisterObserverToServerL(TRequestStatus &)

void RegisterObserverToServerL ( TRequestStatus & aStatus ) [private]

Parameters

TRequestStatus & aStatus

RemoveBrandL(const TDesC8 &, const TDesC8 &)

void RemoveBrandL ( const TDesC8 & aApplicationId,
const TDesC8 & aBrandId
)

Parameters

const TDesC8 & aApplicationId
const TDesC8 & aBrandId

RemoveBrandsL(const TDesC8 &)

void RemoveBrandsL ( const TDesC8 & aApplicationId )

Parameters

const TDesC8 & aApplicationId

ReplaceL(MBSElement *)

void ReplaceL ( MBSElement * aElement )

Parameters

MBSElement * aElement

SendUpdateL(MBSElement *, TBSMessages)

void SendUpdateL ( MBSElement * aElement,
TBSMessages aMessage
) [private]

Parameters

MBSElement * aElement
TBSMessages aMessage

StartTransactionL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TLanguage, TTransactionType, TInt)

void StartTransactionL ( const TDesC8 & aApplicationId,
const TDesC8 & aBrandId,
const TDesC8 & aDefaultBrandId,
TLanguage aLanguage,
TTransactionType aType,
TInt aReserved = 0
)

Parameters

const TDesC8 & aApplicationId
const TDesC8 & aBrandId
const TDesC8 & aDefaultBrandId
TLanguage aLanguage
TTransactionType aType
TInt aReserved = 0

StopTransactionL(const TDesC8 &, const TDesC8 &, TLanguage, TInt)

TInt StopTransactionL ( const TDesC8 & aApplicationId,
const TDesC8 & aBrandId,
TLanguage aLanguage,
TInt aReserved = 0
)

Parameters

const TDesC8 & aApplicationId
const TDesC8 & aBrandId
TLanguage aLanguage
TInt aReserved = 0

UnRegisterObserverL(MBSBrandChangeObserver *, MBSBackupRestoreStateObserver *)

void UnRegisterObserverL ( MBSBrandChangeObserver * aObserver,
MBSBackupRestoreStateObserver * aBackupStateObserver
)

Parameters

MBSBrandChangeObserver * aObserver
MBSBackupRestoreStateObserver * aBackupStateObserver

isBrandUpdateRequiredL(TInt &)

void isBrandUpdateRequiredL ( TInt & aUpdateRequired )

Parameters

TInt & aUpdateRequired

Member Data Documentation

CBSBrandObserver * iObserver

CBSBrandObserver * iObserver [private]

TTransactionType iType

TTransactionType iType [private]

TInt isUpdateRequired

TInt isUpdateRequired [private]