CIMCacheUpdater Class Reference

class CIMCacheUpdater : public CBase

write right class declaration

Inherits from

Constructor & Destructor Documentation

CIMCacheUpdater(TInt)

CIMCacheUpdater(TIntaServiceId)[private]

default constructor.

Parameters

TInt aServiceId

~CIMCacheUpdater()

~CIMCacheUpdater()[virtual]

virtual destructor.

Member Functions Documentation

AppendMessageL(const TDesC &, const TDesC &)

voidAppendMessageL(const TDesC &aBuddyId,
const TDesC &aText
)[private]

append the normal information message

Parameters

const TDesC & aBuddyIdbuddy id.
const TDesC & aTexta text to append

AppendReceiveMessageL(const TDesC &, const TDesC &)

voidAppendReceiveMessageL(const TDesC &aBuddyId,
const TDesC &aText
)[private]

append the new recieve message

Parameters

const TDesC & aBuddyId
const TDesC & aTexta text to append

AppendSendMessageL(const TDesC &)

voidAppendSendMessageL(const TDesC &aText)[private]

append the new send message

Parameters

const TDesC & aTexta text to append

CloseAllConversationL()

voidCloseAllConversationL()[private]

CloseConversationL(const TDesC &)

voidCloseConversationL(const TDesC &aBuddyId)[private]

closes conversation and commit operation

Parameters

const TDesC & aBuddyIdbuddy id.

ConstructL(const TDesC &, TBool)

voidConstructL(const TDesC &aUserId,
TBoolaRegistrationNeeded
)[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 TIntaServiceId)[private]

get the chat list corresponding to service

Parameters

const TInt aServiceIdservice id

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

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

default constructor.

Parameters

RArray< SIMCacheChatItem > & aChatArray
TPtr8 aChatListBuffer
TBool & aMore

NewL(TInt, const TDesC &, TBool)

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

Two-phased constructor.

Parameters

TInt aServiceId
const TDesC & aUserId
TBool aRegistrationNeeded

RegisterObserverL(MIMCacheEventHandler &)

voidRegisterObserverL(MIMCacheEventHandler &aObserver)[private]

Register to observer instantmessagingcache data updates

Parameters

MIMCacheEventHandler & aObserverthe observer interface

ServiceId()

TInt ServiceId()const

return the serviceid

StartNewConversationL(const TDesC &)

voidStartNewConversationL(const TDesC &aBuddyId)[private]

start a new conversation

Parameters

const TDesC & aBuddyIda recipient user id

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]