class CCbsMessageClient : public CBase |
CBS Message API e.g for Cover UI's needs. This API is a smaller snapshot of CBS Client API.
Public Member Functions | |
---|---|
IMPORT_C TInt | FindMessageByHandle (const TCbsMessageHandle &, TCbsMessage &) |
IMPORT_C TInt | FindTopicByNumber (const TCbsTopicNumber , TCbsTopic &) |
IMPORT_C TInt | GetMessage (const TCbsTopicNumber , const TInt , TCbsMessage &) |
IMPORT_C TInt | GetMessageContents (const TCbsMessageHandle &, TDes &) |
IMPORT_C TInt | GetMessageCount (const TCbsTopicNumber , TInt &) |
IMPORT_C TInt | GetTopic (const TInt , TCbsTopic &) |
IMPORT_C CCbsMessageClient * | NewL () |
IMPORT_C TInt | SetMessageAsRead (const TCbsMessageHandle &) |
IMPORT_C TInt | TopicCount () |
IMPORT_C TInt | UnreadMessageCount () |
Protected Member Functions | |
---|---|
CCbsMessageClient () |
IMPORT_C TInt | FindMessageByHandle | ( | const TCbsMessageHandle & | aHandle, |
TCbsMessage & | aMessage | |||
) | [pure virtual] |
Finds a message by given handle.
const TCbsMessageHandle & aHandle | Handle to the message. |
TCbsMessage & aMessage | Return: contains the message information. |
IMPORT_C TInt | FindTopicByNumber | ( | const TCbsTopicNumber | aNumber, |
TCbsTopic & | aTopic | |||
) | [pure virtual] |
Finds the topic by the given number.
Return values:
const TCbsTopicNumber aNumber | Number of the topic |
TCbsTopic & aTopic | Return: contains the topic information |
IMPORT_C TInt | GetMessage | ( | const TCbsTopicNumber | aNumber, |
const TInt | aIndex, | |||
TCbsMessage & | aMessage | |||
) | [pure virtual] |
Returns message information.
const TCbsTopicNumber aNumber | Number of the topic |
const TInt aIndex | Index to the message in topic. |
TCbsMessage & aMessage | Returns: the message information |
IMPORT_C TInt | GetMessageContents | ( | const TCbsMessageHandle & | aHandle, |
TDes & | aBuffer | |||
) | [pure virtual] |
Returns the message contents.
const TCbsMessageHandle & aHandle | Handle to the message. |
TDes & aBuffer | It will contain the contents (as much as it fits). |
IMPORT_C TInt | GetMessageCount | ( | const TCbsTopicNumber | aNumber, |
TInt & | aCount | |||
) | [pure virtual] |
Returns the total amount of messages the topic contains.
Return codes:
const TCbsTopicNumber aNumber | Number of the topic. |
TInt & aCount | Number of messages in given topic. |
IMPORT_C TInt | GetTopic | ( | const TInt | aIndex, |
TCbsTopic & | aTopic | |||
) | [pure virtual] |
Returns information about a topic from the topic list.
IMPORT_C CCbsMessageClient * | NewL | ( | ) | [static] |
Instantiates new CCbsMessageClient object. During instantaion connection to CBS Server is created.
IMPORT_C TInt | SetMessageAsRead | ( | const TCbsMessageHandle & | aHandle | ) | [pure virtual] |
Sets the message as read.
const TCbsMessageHandle & aHandle | Handle to the message to be set read. |
IMPORT_C TInt | TopicCount | ( | ) | [pure virtual] |
Returns the total amount of topics the topic list contains.
IMPORT_C TInt | UnreadMessageCount | ( | ) | [pure virtual] |
Returns the total amount of unread messages.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.