CIMCacheClient Class Reference

class CIMCacheClient : public CBase

CIMCacheClient ClientServer

Inherits from

Constructor & Destructor Documentation

CIMCacheClient()

CIMCacheClient()

~CIMCacheClient()

~CIMCacheClient()

Member Functions Documentation

CancelRequestL(TRequestStatus &, EIMCacheOperations)

voidCancelRequestL(TRequestStatus &aStatus,
EIMCacheOperationsaRight
)

cancels any outstanding requests pending from the server

Parameters

TRequestStatus & aStatusstatus message to regisetr
EIMCacheOperations aRight

Connect()

TInt Connect()

Connect

CreateArgumentsL(TInt, const TDesC &, const TDesC &)

TIpcArgs CreateArgumentsL(TIntaServiceId,
const TDesC &aText1,
const TDesC &aText2
)[private]

CreateArgumentsL pack the given parameters

Parameters

TInt aServiceIdservice id to use
const TDesC & aText1
const TDesC & aText2

CreateArgumentsL(TInt, const TDesC &)

TIpcArgs CreateArgumentsL(TIntaServiceId,
const TDesC &aText
)[private]

CreateArgumentsL pack the given parameters

Parameters

TInt aServiceIdservice id to use
const TDesC & aText

GetBufferedDataL(EIMCacheOperations)

TPtr8 GetBufferedDataL(EIMCacheOperationsaOperationType)

Gets called when data update is available. Client can then decide wether to use the old one

Parameters

EIMCacheOperations aOperationType

GetChatListL(const TInt &)

TPtr8 GetChatListL(const TInt &aServiceId = -1)

to get the list of availabe chats from server

Parameters

const TInt & aServiceId = -1

GetInformationL(EIMCacheOperations, TInt, const TDesC &)

TInt GetInformationL(EIMCacheOperationsaOperationType,
TIntaServiceId,
const TDesC &aBuddyId
)

to get the all unread message count from server

Parameters

EIMCacheOperations aOperationType
TInt aServiceId
const TDesC & aBuddyId

GetInformationL(EIMCacheOperations, TInt)

TInt GetInformationL(EIMCacheOperationsaOperationType,
TIntaServiceId
)

to get the count from server

Parameters

EIMCacheOperations aOperationTypeoperation to perform
TInt aServiceId

RegisterAccessObserverL(MIMCacheEventHandler &)

voidRegisterAccessObserverL(MIMCacheEventHandler &aObserver)

Register to observer converstaionitems data access

Parameters

MIMCacheEventHandler & aObserverthe observer interface

RegisterObserverToServerL(TRequestStatus &, EIMCacheOperations)

voidRegisterObserverToServerL(TRequestStatus &aStatus,
EIMCacheOperationsaRight
)

Registeres the cache update observer to server

Parameters

TRequestStatus & aStatusstatus message to regisetr
EIMCacheOperations aRight

RegisterUpdateObserverL(MIMCacheEventHandler &)

voidRegisterUpdateObserverL(MIMCacheEventHandler &aObserver)

Register to observer converstaionitems data updates

Parameters

MIMCacheEventHandler & aObserverthe observer interface

StartTransactionL(EIMCacheOperations)

TInt StartTransactionL(EIMCacheOperationsaOperationType)

start the transaction and perform the operation

Parameters

EIMCacheOperations aOperationType

StartTransactionL(EIMCacheOperations, const TDesC &)

voidStartTransactionL(EIMCacheOperationsaOperationType,
const TDesC &aText
)

start the transaction and perform the operation

Parameters

EIMCacheOperations aOperationTypeoperation to perform
const TDesC & aText

StartTransactionL(EIMCacheOperations, TInt, const TDesC &)

voidStartTransactionL(EIMCacheOperationsaOperationType,
TIntaServiceId,
const TDesC &aText
)

start the transaction and perform the operation

Parameters

EIMCacheOperations aOperationTypeoperation to perform
TInt aServiceIdservice id to use
const TDesC & aText

StartTransactionL(EIMCacheOperations, TInt, const TDesC &, const TDesC &)

voidStartTransactionL(EIMCacheOperationsaOperationType,
TIntaServiceId,
const TDesC &aText1,
const TDesC &aText2
)

start the transaction and perform the operation

Parameters

EIMCacheOperations aOperationTypeoperation to perform
TInt aServiceIdservice id to use
const TDesC & aText1
const TDesC & aText2

UnRegisterAccessObserver(MIMCacheEventHandler &)

voidUnRegisterAccessObserver(MIMCacheEventHandler &aObserver)

Unregister a converstaionitems data access observer

Parameters

MIMCacheEventHandler & aObserverthe observer interface

UnRegisterObserverToServerL(TRequestStatus &, EIMCacheOperations)

voidUnRegisterObserverToServerL(TRequestStatus &aStatus,
EIMCacheOperationsaRight
)

unRegisteres the cache update observer to server

Parameters

TRequestStatus & aStatusstatus message to regisetr
EIMCacheOperations aRight

UnRegisterUpdateObserver(MIMCacheEventHandler &)

voidUnRegisterUpdateObserver(MIMCacheEventHandler &aObserver)

Unregister a converstaionitems data update observer

Parameters

MIMCacheEventHandler & aObserverthe observer interface

Member Data Documentation

CIMCacheAccessEventHandler * iAccessObserver

CIMCacheAccessEventHandler *iAccessObserver[private]

HBufC8 * iChatBuffer

HBufC8 *iChatBuffer[private]

CIMCacheEventHandler * iUpdateObserver

CIMCacheEventHandler *iUpdateObserver[private]