The Channel::GroupMemberChangeDetails class represents the details of a group membership change.
More...
#include <TelepathyQt/Channel>
The Channel::GroupMemberChangeDetails class represents the details of a group membership change.
Extended information is not always available; this will be reflected by the return value of isValid().
◆ GroupMemberChangeDetails() [1/2]
Tp::Channel::GroupMemberChangeDetails::GroupMemberChangeDetails |
( |
| ) |
|
◆ GroupMemberChangeDetails() [2/2]
◆ ~GroupMemberChangeDetails()
Tp::Channel::GroupMemberChangeDetails::~GroupMemberChangeDetails |
( |
| ) |
|
◆ operator=()
Assigns all information (validity, details) from other to this.
◆ isValid()
bool Tp::Channel::GroupMemberChangeDetails::isValid |
( |
| ) |
const |
|
inline |
Return whether the details are valid (have actually been received from the service).
- Returns
true
if valid, false
otherwise.
◆ hasActor()
bool Tp::Channel::GroupMemberChangeDetails::hasActor |
( |
| ) |
const |
Return whether the details specify an actor.
If present, actor() will return the contact object representing the person who made the change.
- Returns
true
if the actor is known, false
otherwise.
- See also
- actor()
◆ actor()
ContactPtr Tp::Channel::GroupMemberChangeDetails::actor |
( |
| ) |
const |
Return the contact object representing the person who made the change (actor), if known.
- Returns
- A pointer to the Contact object, or a null ContactPtr if the actor is unknown.
- See also
- hasActor()
◆ hasReason()
bool Tp::Channel::GroupMemberChangeDetails::hasReason |
( |
| ) |
const |
|
inline |
Return whether the details specify the reason for the change.
- Returns
true
if the reason is known, false
otherwise.
- See also
- reason()
◆ reason()
◆ hasMessage()
bool Tp::Channel::GroupMemberChangeDetails::hasMessage |
( |
| ) |
const |
|
inline |
Return whether the details specify a human-readable message from the contact represented by actor() pertaining to the change.
- Returns
true
if the message is known, false
otherwise.
- See also
- message()
◆ message()
QString Tp::Channel::GroupMemberChangeDetails::message |
( |
| ) |
const |
|
inline |
Return a human-readable message from the contact represented by actor() pertaining to the change, if known.
- Returns
- The message, or an empty string if the message is unknown.
- See also
- hasMessage()
◆ hasError()
bool Tp::Channel::GroupMemberChangeDetails::hasError |
( |
| ) |
const |
|
inline |
Return whether the details specify a D-Bus error describing the change.
- Returns
true
if the error is known, false
otherwise.
- See also
- error()
◆ error()
QString Tp::Channel::GroupMemberChangeDetails::error |
( |
| ) |
const |
|
inline |
Return the D-Bus error describing the change, if known.
The D-Bus error provides more specific information than the reason() and should be used if applicable.
- Returns
- A D-Bus error describing the change, or an empty string if the error is unknown.
- See also
- hasError()
◆ hasDebugMessage()
bool Tp::Channel::GroupMemberChangeDetails::hasDebugMessage |
( |
| ) |
const |
|
inline |
Return whether the details specify a debug message.
- Returns
true
if debug message is present, false
otherwise.
- See also
- debugMessage()
◆ debugMessage()
QString Tp::Channel::GroupMemberChangeDetails::debugMessage |
( |
| ) |
const |
|
inline |
Return the debug message specified by the details, if any.
The debug message is purely informational, offered for display for bug reporting purposes, and should not be attempted to be parsed.
- Returns
- The debug message, or an empty string if there is none.
- See also
- hasDebugMessage()
◆ allDetails()
QVariantMap Tp::Channel::GroupMemberChangeDetails::allDetails |
( |
| ) |
const |
Return a map containing all details of the group members change.
This is useful for accessing domain-specific additional details.
- Returns
- The details of the group members change as QVariantMap.