QXmpp Version: 1.5.6
|
The QXmppRosterIq::Item class represents a roster entry. More...
#include <QXmppRosterIq.h>
Public Types | |
enum | SubscriptionType { None = 0 , From = 1 , To = 2 , Both = 3 , Remove = 4 , NotSet = 8 } |
An enumeration for type of subscription with the bareJid in the roster. More... | |
Public Member Functions | |
Item () | |
Item (const Item &other) | |
Default copy-constructor. | |
Item (Item &&) | |
Default move-constructor. | |
Item & | operator= (const Item &other) |
Default assignment operator. | |
Item & | operator= (Item &&) |
Default assignment operator. | |
QString | bareJid () const |
QSet< QString > | groups () const |
QString | name () const |
QString | subscriptionStatus () const |
SubscriptionType | subscriptionType () const |
bool | isApproved () const |
void | setBareJid (const QString &) |
void | setGroups (const QSet< QString > &) |
void | setName (const QString &) |
void | setSubscriptionStatus (const QString &) |
void | setSubscriptionType (SubscriptionType) |
void | setIsApproved (bool) |
bool | isMixChannel () const |
void | setIsMixChannel (bool) |
QString | mixParticipantId () const |
void | setMixParticipantId (const QString &) |
The QXmppRosterIq::Item class represents a roster entry.
An enumeration for type of subscription with the bareJid in the roster.
QXmppRosterIq::Item::Item | ( | ) |
Constructs a new roster entry.
QString QXmppRosterIq::Item::bareJid | ( | ) | const |
Returns the bareJid of the roster entry.
QSet< QString > QXmppRosterIq::Item::groups | ( | ) | const |
Returns the groups of the roster entry.
bool QXmppRosterIq::Item::isApproved | ( | ) | const |
Returns whether the item has a pre-approved presence subscription.
bool QXmppRosterIq::Item::isMixChannel | ( | ) | const |
Returns whether this is a MIX channel.
QString QXmppRosterIq::Item::mixParticipantId | ( | ) | const |
Returns the participant id for this MIX channel.
QString QXmppRosterIq::Item::name | ( | ) | const |
Returns the name of the roster entry.
void QXmppRosterIq::Item::setBareJid | ( | const QString & | bareJid | ) |
Sets the bareJid of the roster entry.
bareJid | as a QString |
void QXmppRosterIq::Item::setGroups | ( | const QSet< QString > & | groups | ) |
Sets the groups of the roster entry.
groups | list of all the groups as a QSet<QString> |
void QXmppRosterIq::Item::setIsApproved | ( | bool | approved | ) |
Sets whether the item has a pre-approved presence subscription.
This cannot be used to initiate a pre-approved subscription. For this purpose the client must send a <presence/> stanza of type subscribed
to the user.
void QXmppRosterIq::Item::setIsMixChannel | ( | bool | isMixChannel | ) |
Sets whether this is a MIX channel.
void QXmppRosterIq::Item::setMixParticipantId | ( | const QString & | participantId | ) |
Sets the participant id for this MIX channel.
void QXmppRosterIq::Item::setName | ( | const QString & | name | ) |
Sets the name of the roster entry.
name | as a QString |
void QXmppRosterIq::Item::setSubscriptionStatus | ( | const QString & | status | ) |
Sets the subscription status of the roster entry. It is the "ask" attribute in the Roster IQ stanza. Its value can be "subscribe" or "unsubscribe" or empty.
status | as a QString |
void QXmppRosterIq::Item::setSubscriptionType | ( | SubscriptionType | type | ) |
Sets the subscription type of the roster entry.
type |
QString QXmppRosterIq::Item::subscriptionStatus | ( | ) | const |
Returns the subscription status of the roster entry. It is the "ask" attribute in the Roster IQ stanza. Its value can be "subscribe" or "unsubscribe" or empty.
QXmppRosterIq::Item::SubscriptionType QXmppRosterIq::Item::subscriptionType | ( | ) | const |
Returns the subscription type of the roster entry.