class RCbsTopicList : public RSubSessionBase |
This class represents the client-side subsession to handle topic lists.
Public Member Functions | |
---|---|
RCbsTopicList () | |
TInt | AddTopic ( TCbsTopic &) |
TInt | ChangeTopicHotmarkStatus ( TCbsTopicNumber , TBool ) |
TInt | ChangeTopicNameAndNumber ( TCbsTopicNumber , TCbsTopicNumber , const TCbsTopicName &) |
TInt | ChangeTopicSubscriptionStatus ( TCbsTopicNumber , TBool ) |
TInt | Close () |
TInt | DeleteAllTopics () |
TInt | DeleteTopic ( TCbsTopicNumber ) |
TInt | FindTopicByNumber ( TCbsTopicNumber , TCbsTopic &) |
void | GetHotmarkedMessageHandle ( TCbsMessageHandle &) |
TInt | GetLatestTopicNumber ( TCbsTopicNumber &) |
TInt | GetNewTopicsCount ( TInt &) |
TInt | GetNextAndPrevTopicNumber (const TCbsTopicNumber &, TCbsTopicNumber &, TCbsTopicNumber &, TInt &) |
TInt | GetTopic (const TInt , TCbsTopic &) |
void | GetTopicCount ( TInt &) |
void | GetUnreadMessageCount ( TInt &) |
void | NotifyOnEvent ( TRequestStatus &, const TInt , TCbsTopicListEvent &, TCbsTopicNumber &) |
void | NotifyOnEventCancel () |
TInt | NumberOfUnreadHotmarkedMessages () |
TInt | Open ( RCbs &) |
Private Member Functions | |
---|---|
RCbsTopicList (const RCbsTopicList &) | |
RCbsTopicList & | operator= (const RCbsTopicList &) |
Private Attributes | |
---|---|
TPtr8 | iNotifyEventPtr |
TPtr8 | iNotifyHandlePtr |
RCbsTopicList | ( | const RCbsTopicList & | ) | [private] |
const RCbsTopicList & |
TInt | AddTopic | ( | TCbsTopic & | aTopic | ) |
Adds a new topic.
Note that the number of the new topic must be unused.
TCbsTopic & aTopic | It contains the information of the new topic. |
TInt | ChangeTopicHotmarkStatus | ( | TCbsTopicNumber | aNumber, |
TBool | aNewStatus | |||
) |
Changes topic hotmark status.
TCbsTopicNumber aNumber | Number of the topic |
TBool aNewStatus | It is the new hotmark status. |
TInt | ChangeTopicNameAndNumber | ( | TCbsTopicNumber | aOldNumber, |
TCbsTopicNumber | aNewNumber, | |||
const TCbsTopicName & | aName | |||
) |
Changes the name and number of the existing topic.
Note that the changing fails in case there is another topic with the new topic number. It also fails if the topic is protected.
TCbsTopicNumber aOldNumber | Old topic number |
TCbsTopicNumber aNewNumber | New topic number |
const TCbsTopicName & aName | It is the new name of the topic. |
TInt | ChangeTopicSubscriptionStatus | ( | TCbsTopicNumber | aNumber, |
TBool | aNewStatus | |||
) |
Changes topic subscription status.
TCbsTopicNumber aNumber | Number of the topic |
TBool aNewStatus | It is the new subscription status. |
TInt | DeleteTopic | ( | TCbsTopicNumber | aNumber | ) |
Deletes an existing topic.
Note that the topic must exists.
TCbsTopicNumber aNumber | It is the handle to the topic to be deleted. |
TInt | FindTopicByNumber | ( | TCbsTopicNumber | aNumber, |
TCbsTopic & | aTopic | |||
) |
Finds the topic by given number.
TCbsTopicNumber aNumber | It is the number of the topic. |
TCbsTopic & aTopic | It will contain the topic information. |
void | GetHotmarkedMessageHandle | ( | TCbsMessageHandle & | aMessage | ) |
Returns the handle to the latest hotmarked message that has been received after the system has started up.
TCbsMessageHandle & aMessage | It is handle to the message. |
TInt | GetLatestTopicNumber | ( | TCbsTopicNumber & | aNumber | ) |
Returns the latest topic's number.
TCbsTopicNumber & aNumber | Number of the topic |
TInt | GetNewTopicsCount | ( | TInt & | aCount | ) |
Returns the number of session-specific new topics and resets the counter. New topics are added by the topic detection feature in absence of CBS UI Application.
TInt & aCount | On return contains the amount of new topics. |
TInt | GetNextAndPrevTopicNumber | ( | const TCbsTopicNumber & | aCurrentTopicNumber, |
TCbsTopicNumber & | aPrevTopicNumber, | |||
TCbsTopicNumber & | aNextTopicNumber, | |||
TInt & | aPosition | |||
) |
Returns the numbers of topics that precede and succeed the given topic in server-side topic list.
If the given topic is the first topic in list, aPosition has ECbsHead bit up. If the given topic is the last topic in list, aPosition has ECbsTail bit up.
Return code values: KErrNone aPrevTopicNumber, aNextTopicNumber and aPosition contain valid values. KErrNotFound aCurrentTopicNumber specified a topic that was not on topic list.
const TCbsTopicNumber & aCurrentTopicNumber | Number that specifies the topic whose surroundings are returned |
TCbsTopicNumber & aPrevTopicNumber | Returns: number of topic preceding the given topic |
TCbsTopicNumber & aNextTopicNumber | Returns: number of topic succeeding the given topic |
TInt & aPosition | Returns: position of current topic in list. |
TInt | GetTopic | ( | const TInt | aIndex, |
TCbsTopic & | aTopic | |||
) |
Returns information about a topic from the topic list.
void | GetTopicCount | ( | TInt & | aCount | ) |
Returns the total amount of topics the topic list contains.
TInt & aCount | It will contain the total amount of topics. |
void | GetUnreadMessageCount | ( | TInt & | aCount | ) |
Returns the total amount of unread messages.
TInt & aCount | It will contain the amount of unread messages. |
void | NotifyOnEvent | ( | TRequestStatus & | aStatus, |
const TInt | aRequested, | |||
TCbsTopicListEvent & | aEvent, | |||
TCbsTopicNumber & | aNumber | |||
) |
Requests the server to notify the client whenever an event occurs that changes the information of the topics.
Note that the client may select what kind of events it is interested in. Note also that there can be at most one pending request per instance of the class.
TRequestStatus & aStatus | It is the variable that the server will modify whenever an event occurs. |
const TInt aRequested | It contains the events the client is listening to. |
TCbsTopicListEvent & aEvent | It will contain the event that occurred. |
TCbsTopicNumber & aNumber | Number of topic |
TInt | NumberOfUnreadHotmarkedMessages | ( | ) |
Returns the number of unread messages in hotmarked topics.
This function is to used by the client when deciding whether the message or topic list view should be opened to display a hotmarked message(s).
TInt | Open | ( | RCbs & | aServer | ) |
Creates a subsession to the server. Before using any other method it must be called.
RCbs & aServer | It is the cbs server. |
RCbsTopicList & | operator= | ( | const RCbsTopicList & | ) | [private] |
const RCbsTopicList & |
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.