Liblinphone 5.2.0
|
Presence activity type holding information about a presence activity. More...
#include <presence_activity.hh>
Public Types | |
enum class | Type { Appointment = 0 , Away = 1 , Breakfast = 2 , Busy = 3 , Dinner = 4 , Holiday = 5 , InTransit = 6 , LookingForWork = 7 , Lunch = 8 , Meal = 9 , Meeting = 10 , OnThePhone = 11 , Other = 12 , Performance = 13 , PermanentAbsence = 14 , Playing = 15 , Presentation = 16 , Shopping = 17 , Sleeping = 18 , Spectator = 19 , Steering = 20 , Travel = 21 , TV = 22 , Unknown = 23 , Vacation = 24 , Working = 25 , Worship = 26 } |
Activities as defined in section 3.2 of RFC 4480. More... | |
Public Member Functions | |
LINPHONECXX_PUBLIC | PresenceActivity (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphonePresenceActivity * | cPtr () |
LINPHONECXX_PUBLIC std::string | getDescription () const |
Gets the description of a presence activity. | |
LINPHONECXX_PUBLIC linphone::Status | setDescription (const std::string &description) |
Sets the description of a presence activity. | |
LINPHONECXX_PUBLIC Type | getType () const |
Gets the activity type of a presence activity. | |
LINPHONECXX_PUBLIC linphone::Status | setType (Type acttype) |
Sets the type of activity of a presence activity. | |
LINPHONECXX_PUBLIC std::string | toString () const |
Gets the string representation of a presence activity. | |
Presence activity type holding information about a presence activity.
|
strong |
Activities as defined in section 3.2 of RFC 4480.
LINPHONECXX_PUBLIC std::string linphone::PresenceActivity::getDescription | ( | ) | const |
Gets the description of a presence activity.
LINPHONECXX_PUBLIC Type linphone::PresenceActivity::getType | ( | ) | const |
Gets the activity type of a presence activity.
LINPHONECXX_PUBLIC linphone::Status linphone::PresenceActivity::setDescription | ( | const std::string & | description | ) |
Sets the description of a presence activity.
description | An additional description of the activity. Can be nullptr if no additional description is to be added. |
LINPHONECXX_PUBLIC linphone::Status linphone::PresenceActivity::setType | ( | Type | acttype | ) |
Sets the type of activity of a presence activity.
acttype | The Type to set for the activity. |
LINPHONECXX_PUBLIC std::string linphone::PresenceActivity::toString | ( | ) | const |
Gets the string representation of a presence activity.