CIMCacheAccessor Class Reference

class CIMCacheAccessor : public CBase

write right class declaration

Inherits from

Constructor & Destructor Documentation

CIMCacheAccessor(TInt)

CIMCacheAccessor(TIntaServiceId)[private]

default constructor.

Parameters

TInt aServiceId

~CIMCacheAccessor()

~CIMCacheAccessor()[virtual]

virtual destructor.

Member Functions Documentation

CloseConversationL(const TDesC &)

voidCloseConversationL(const TDesC &aBuddyId)[private]

closes conversation and commit operation

Parameters

const TDesC & aBuddyId

ConstructL(const TDesC &)

voidConstructL(const TDesC &aUserId)[private]

ConstructL.

Parameters

const TDesC & aUserId

GetAllUnreadMessageCountL()

TInt GetAllUnreadMessageCountL()[private]

to get the all unread message count from server

GetChatListL(const TInt)

RArray< SIMCacheChatItem >GetChatListL(const TIntaServiceId)[private]

get the chat list corresponding to service

Parameters

const TInt aServiceIdservice id

GetUnreadMessageCountL(const TDesC &)

TInt GetUnreadMessageCountL(const TDesC &aBuddyId)[private]

to get the unread message count from server

Parameters

const TDesC & aBuddyId

InternalizeChatListL(RArray< SIMCacheChatItem > &, TPtr8, TBool &)

voidInternalizeChatListL(RArray< SIMCacheChatItem > &aChatArray,
TPtr8aChatListBuffer,
TBool &aMore
)[private]

default constructor.

Parameters

RArray< SIMCacheChatItem > & aChatArray
TPtr8 aChatListBuffer
TBool & aMore

IsConversationExistL(const TDesC &)

TBool IsConversationExistL(const TDesC &aBuddyId)[private]

check if already conversation opened

Parameters

const TDesC & aBuddyId

NewL(TInt, const TDesC &)

CIMCacheAccessor *NewL(TIntaServiceId,
const TDesC &aUserId
)[static]

Two-phased constructor.

Parameters

TInt aServiceId
const TDesC & aUserId

RegisterObserverL(MIMCacheEventHandler &)

voidRegisterObserverL(MIMCacheEventHandler &aObserver)[private]

Register to observer instantmessagingcache data updates

Parameters

MIMCacheEventHandler & aObserverthe observer interface

ServiceId()

TInt ServiceId()const

return the serviceid

UnRegisterObserver(MIMCacheEventHandler &)

voidUnRegisterObserver(MIMCacheEventHandler &aObserver)[private]

Unregister a instantmessagingcache data update observer

Parameters

MIMCacheEventHandler & aObserverthe observer interface

Member Data Documentation

CIMCacheClient iClient

CIMCacheClient iClient[private]

TInt iServiceId

TInt iServiceId[private]

HBufC * iUserId

HBufC *iUserId[private]