CCbsMessageClient Class Reference

class CCbsMessageClient : public CBase

CBS Message API e.g for Cover UI's needs. This API is a smaller snapshot of CBS Client API.

CbsClient.lib
Since
3.2

Inherits from

Constructor & Destructor Documentation

CCbsMessageClient()

CCbsMessageClient()[protected]

Default constructor.

Member Functions Documentation

FindMessageByHandle(const TCbsMessageHandle &, TCbsMessage &)

IMPORT_C TIntFindMessageByHandle(const TCbsMessageHandle &aHandle,
TCbsMessage &aMessage
)[pure virtual]

Finds a message by given handle.

Parameters

const TCbsMessageHandle & aHandleHandle to the message.
TCbsMessage & aMessageReturn: contains the message information.

FindTopicByNumber(const TCbsTopicNumber, TCbsTopic &)

IMPORT_C TIntFindTopicByNumber(const TCbsTopicNumberaNumber,
TCbsTopic &aTopic
)[pure virtual]

Finds the topic by the given number.

Return values:

Parameters

const TCbsTopicNumber aNumberNumber of the topic
TCbsTopic & aTopicReturn: contains the topic information

GetMessage(const TCbsTopicNumber, const TInt, TCbsMessage &)

IMPORT_C TIntGetMessage(const TCbsTopicNumberaNumber,
const TIntaIndex,
TCbsMessage &aMessage
)[pure virtual]

Returns message information.

Parameters

const TCbsTopicNumber aNumberNumber of the topic
const TInt aIndexIndex to the message in topic.
TCbsMessage & aMessageReturns: the message information

GetMessageContents(const TCbsMessageHandle &, TDes &)

IMPORT_C TIntGetMessageContents(const TCbsMessageHandle &aHandle,
TDes &aBuffer
)[pure virtual]

Returns the message contents.

Parameters

const TCbsMessageHandle & aHandleHandle to the message.
TDes & aBufferIt will contain the contents (as much as it fits).

GetMessageCount(const TCbsTopicNumber, TInt &)

IMPORT_C TIntGetMessageCount(const TCbsTopicNumberaNumber,
TInt &aCount
)[pure virtual]

Returns the total amount of messages the topic contains.

Return codes:

Parameters

const TCbsTopicNumber aNumberNumber of the topic.
TInt & aCountNumber of messages in given topic.

GetTopic(const TInt, TCbsTopic &)

IMPORT_C TIntGetTopic(const TIntaIndex,
TCbsTopic &aTopic
)[pure virtual]

Returns information about a topic from the topic list.

Parameters

const TInt aIndexIndex to the topic.
TCbsTopic & aTopicIt will contain the topic information.

NewL()

IMPORT_C CCbsMessageClient *NewL()[static]

Instantiates new CCbsMessageClient object. During instantaion connection to CBS Server is created.

SetMessageAsRead(const TCbsMessageHandle &)

IMPORT_C TIntSetMessageAsRead(const TCbsMessageHandle &aHandle)[pure virtual]

Sets the message as read.

Parameters

const TCbsMessageHandle & aHandleHandle to the message to be set read.

TopicCount()

IMPORT_C TIntTopicCount()[pure virtual]

Returns the total amount of topics the topic list contains.

UnreadMessageCount()

IMPORT_C TIntUnreadMessageCount()[pure virtual]

Returns the total amount of unread messages.