CIMCacheUpdater Class Reference

class CIMCacheUpdater : public CBase

write right class declaration

Inherits from

Constructor & Destructor Documentation

CIMCacheUpdater(TInt)

CIMCacheUpdater ( TInt aServiceId ) [private]

default constructor.

Parameters

TInt aServiceId

~CIMCacheUpdater()

~CIMCacheUpdater ( ) [virtual]

virtual destructor.

Member Functions Documentation

AppendMessageL(const TDesC &, const TDesC &)

void AppendMessageL ( const TDesC & aBuddyId,
const TDesC & aText
) [private]

append the normal information message

Parameters

const TDesC & aBuddyId buddy id.
const TDesC & aText a text to append

AppendReceiveMessageL(const TDesC &, const TDesC &)

void AppendReceiveMessageL ( const TDesC & aBuddyId,
const TDesC & aText
) [private]

append the new recieve message

Parameters

const TDesC & aBuddyId
const TDesC & aText a text to append

AppendSendMessageL(const TDesC &)

void AppendSendMessageL ( const TDesC & aText ) [private]

append the new send message

Parameters

const TDesC & aText a text to append

CloseAllConversationL()

void CloseAllConversationL ( ) [private]

CloseConversationL(const TDesC &)

void CloseConversationL ( const TDesC & aBuddyId ) [private]

closes conversation and commit operation

Parameters

const TDesC & aBuddyId buddy id.

ConstructL(const TDesC &, TBool)

void ConstructL ( const TDesC & aUserId,
TBool aRegistrationNeeded
) [private]

ConstructL.

Parameters

const TDesC & aUserId
TBool aRegistrationNeeded

DeactivateConversationL()

TInt DeactivateConversationL ( ) [private]

Deactivate all open conversations and commit operation

GetChatListL(const TInt)

RArray < SIMCacheChatItem > GetChatListL ( const TInt aServiceId ) [private]

get the chat list corresponding to service

Parameters

const TInt aServiceId service id

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

NewL(TInt, const TDesC &, TBool)

CIMCacheUpdater * NewL ( TInt aServiceId,
const TDesC & aUserId,
TBool aRegistrationNeeded
) [static]

Two-phased constructor.

Parameters

TInt aServiceId
const TDesC & aUserId
TBool aRegistrationNeeded

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

StartNewConversationL(const TDesC &)

void StartNewConversationL ( const TDesC & aBuddyId ) [private]

start a new conversation

Parameters

const TDesC & aBuddyId a recipient user id

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]