RBSClient Class Reference

class RBSClient : public RSessionBase

Simple ClientServer for testing and example purposes.

Inherits from

Public Member Functions
RBSClient()
~RBSClient()
voidAppendL(MBSElement *)
voidCancelTransactionL(const TDesC8 &, const TDesC8 &, TLanguage, TInt)
voidClose()
TInt Connect()
voidGetBufferL(const TDesC8 &, HBufC8 *&)
voidGetFileL(const TDesC8 &, RFile &)
voidGetIntL(const TDesC8 &, TInt &)
MBSElement *GetSeveralL(MDesC8Array &)
MBSElement *GetStructureL(const TDesC8 &)
voidGetTextL(const TDesC8 &, HBufC *&)
voidInsertL(MBSElement *)
voidRegisterObserverL(MBSBrandChangeObserver *, MBSBackupRestoreStateObserver *)
voidRemoveBrandL(const TDesC8 &, const TDesC8 &)
voidRemoveBrandsL(const TDesC8 &)
voidReplaceL(MBSElement *)
voidStartTransactionL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TLanguage, TTransactionType, TInt)
TInt StopTransactionL(const TDesC8 &, const TDesC8 &, TLanguage, TInt)
voidUnRegisterObserverL(MBSBrandChangeObserver *, MBSBackupRestoreStateObserver *)
voidisBrandUpdateRequiredL(TInt &)
Private Member Functions
TIpcArgs CreateArgumentsL(const TDesC8 &, const TDesC8 &, TLanguage, TInt)
voidExternalizeIdArrayL(RWriteStream &, MDesC8Array &)
TInt GetBackupRestoreL()
TInt GetBackupStateL()
TInt GetNewVersionL()
TInt GetValueL(TInt)
voidInitClientL(const TDesC8 &, const TDesC8 &, const TDesC8 &, TLanguage, TTransactionType, TInt)
MBSElement *InternalizeElementL(RReadStream &)
voidRegisterObserverToServerL(TRequestStatus &)
voidSendUpdateL(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 *)

voidAppendL(MBSElement *aElement)

Parameters

MBSElement * aElement

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

voidCancelTransactionL(const TDesC8 &aApplicationId,
const TDesC8 &aBrandId,
TLanguageaLanguage,
TIntaReserved = 0
)

Parameters

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

Close()

voidClose()

Connect()

TInt Connect()

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

TIpcArgs CreateArgumentsL(const TDesC8 &aApplicationId,
const TDesC8 &aBrandId,
TLanguageaLanguage,
TIntaReserved
)[private]

Parameters

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

ExternalizeIdArrayL(RWriteStream &, MDesC8Array &)

voidExternalizeIdArrayL(RWriteStream &aStream,
MDesC8Array &aArray
)[private]

Parameters

RWriteStream & aStream
MDesC8Array & aArray

GetBackupRestoreL()

TInt GetBackupRestoreL()[private]

GetBackupStateL()

TInt GetBackupStateL()[private]

GetBufferL(const TDesC8 &, HBufC8 *&)

voidGetBufferL(const TDesC8 &aId,
HBufC8 *&aValue
)

Parameters

const TDesC8 & aId
HBufC8 *& aValue

GetFileL(const TDesC8 &, RFile &)

voidGetFileL(const TDesC8 &aId,
RFile &aFile
)

Parameters

const TDesC8 & aId
RFile & aFile

GetIntL(const TDesC8 &, TInt &)

voidGetIntL(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 *&)

voidGetTextL(const TDesC8 &aId,
HBufC *&aValue
)

Parameters

const TDesC8 & aId
HBufC *& aValue

GetValueL(TInt)

TInt GetValueL(TIntmsg)[private]

Parameters

TInt msg

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

voidInitClientL(const TDesC8 &aApplicationId,
const TDesC8 &aBrandId,
const TDesC8 &aDefaultBrandId,
TLanguageaLanguage,
TTransactionTypeaType,
TIntaReserved
)[private]

Parameters

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

InsertL(MBSElement *)

voidInsertL(MBSElement *aElement)

Parameters

MBSElement * aElement

InternalizeElementL(RReadStream &)

MBSElement *InternalizeElementL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

RegisterObserverL(MBSBrandChangeObserver *, MBSBackupRestoreStateObserver *)

voidRegisterObserverL(MBSBrandChangeObserver *aObserver,
MBSBackupRestoreStateObserver *aBackupStateObserver
)

Parameters

MBSBrandChangeObserver * aObserver
MBSBackupRestoreStateObserver * aBackupStateObserver

RegisterObserverToServerL(TRequestStatus &)

voidRegisterObserverToServerL(TRequestStatus &aStatus)[private]

Parameters

TRequestStatus & aStatus

RemoveBrandL(const TDesC8 &, const TDesC8 &)

voidRemoveBrandL(const TDesC8 &aApplicationId,
const TDesC8 &aBrandId
)

Parameters

const TDesC8 & aApplicationId
const TDesC8 & aBrandId

RemoveBrandsL(const TDesC8 &)

voidRemoveBrandsL(const TDesC8 &aApplicationId)

Parameters

const TDesC8 & aApplicationId

ReplaceL(MBSElement *)

voidReplaceL(MBSElement *aElement)

Parameters

MBSElement * aElement

SendUpdateL(MBSElement *, TBSMessages)

voidSendUpdateL(MBSElement *aElement,
TBSMessagesaMessage
)[private]

Parameters

MBSElement * aElement
TBSMessages aMessage

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

voidStartTransactionL(const TDesC8 &aApplicationId,
const TDesC8 &aBrandId,
const TDesC8 &aDefaultBrandId,
TLanguageaLanguage,
TTransactionTypeaType,
TIntaReserved = 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,
TLanguageaLanguage,
TIntaReserved = 0
)

Parameters

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

UnRegisterObserverL(MBSBrandChangeObserver *, MBSBackupRestoreStateObserver *)

voidUnRegisterObserverL(MBSBrandChangeObserver *aObserver,
MBSBackupRestoreStateObserver *aBackupStateObserver
)

Parameters

MBSBrandChangeObserver * aObserver
MBSBackupRestoreStateObserver * aBackupStateObserver

isBrandUpdateRequiredL(TInt &)

voidisBrandUpdateRequiredL(TInt &aUpdateRequired)

Parameters

TInt & aUpdateRequired

Member Data Documentation

CBSBrandObserver * iObserver

CBSBrandObserver *iObserver[private]

TTransactionType iType

TTransactionType iType[private]

TInt isUpdateRequired

TInt isUpdateRequired[private]