Liblinphone
4.5.0
|
Presence activity type holding information about a presence activity. More...
#include <presence_activity.hh>
Public Types | |
enum | Type { Type::Appointment, Type::Away, Type::Breakfast, Type::Busy, Type::Dinner, Type::Holiday, Type::InTransit, Type::LookingForWork, Type::Lunch, Type::Meal, Type::Meeting, Type::OnThePhone, Type::Other, Type::Performance, Type::PermanentAbsence, Type::Playing, Type::Presentation, Type::Shopping, Type::Sleeping, Type::Spectator, Type::Steering, Type::Travel, Type::TV, Type::Unknown, Type::Vacation, Type::Working, Type::Worship } |
Activities as defined in section 3.2 of RFC 4480. More... | |
Public Member Functions | |
PresenceActivity (void *ptr, bool takeRef=true) | |
LINPHONECXX_PUBLIC _LinphonePresenceActivity * | cPtr () |
LINPHONECXX_PUBLIC std::string | getDescription () const |
Gets the description of a presence activity. More... | |
LINPHONECXX_PUBLIC linphone::Status | setDescription (const std::string &description) |
Sets the description of a presence activity. More... | |
LINPHONECXX_PUBLIC Type | getType () const |
Gets the activity type of a presence activity. More... | |
LINPHONECXX_PUBLIC linphone::Status | setType (Type acttype) |
Sets the type of activity of a presence activity. More... | |
LINPHONECXX_PUBLIC std::string | toString () const |
Gets the string representation of a presence activity. More... | |
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.