CIMCacheAccessor Class Reference

class CIMCacheAccessor : public CBase

write right class declaration

Inherits from

Constructor & Destructor Documentation

CIMCacheAccessor(TInt)

CIMCacheAccessor ( TInt aServiceId ) [private]

default constructor.

Parameters

TInt aServiceId

~CIMCacheAccessor()

~CIMCacheAccessor ( ) [virtual]

virtual destructor.

Member Functions Documentation

CloseConversationL(const TDesC &)

void CloseConversationL ( const TDesC & aBuddyId ) [private]

closes conversation and commit operation

Parameters

const TDesC & aBuddyId

ConstructL(const TDesC &)

void ConstructL ( 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 TInt aServiceId ) [private]

get the chat list corresponding to service

Parameters

const TInt aServiceId service 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 &)

void InternalizeChatListL ( RArray < SIMCacheChatItem > & aChatArray,
TPtr8 aChatListBuffer,
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 ( TInt aServiceId,
const TDesC & aUserId
) [static]

Two-phased constructor.

Parameters

TInt aServiceId
const TDesC & aUserId

RegisterObserverL(MIMCacheEventHandler &)

void RegisterObserverL ( MIMCacheEventHandler & aObserver ) [private]

Register to observer instantmessagingcache data updates

Parameters

MIMCacheEventHandler & aObserver the observer interface

ServiceId()

TInt ServiceId ( ) const

return the serviceid

UnRegisterObserver(MIMCacheEventHandler &)

void UnRegisterObserver ( MIMCacheEventHandler & aObserver ) [private]

Unregister a instantmessagingcache data update observer

Parameters

MIMCacheEventHandler & aObserver the observer interface

Member Data Documentation

CIMCacheClient iClient

CIMCacheClient iClient [private]

TInt iServiceId

TInt iServiceId [private]

HBufC * iUserId

HBufC * iUserId [private]