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 () | |
Constructs a new roster entry. | |
QString | bareJid () const |
QSet< QString > | groups () const |
QString | name () const |
QString | subscriptionStatus () const |
SubscriptionType | subscriptionType () const |
void | setBareJid (const QString &) |
void | setGroups (const QSet< QString > &) |
void | setName (const QString &) |
void | setSubscriptionStatus (const QString &) |
void | setSubscriptionType (SubscriptionType) |
The QXmppRosterIq::Item class represents a roster entry.
An enumeration for type of subscription with the bareJid in the roster.
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.
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::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.
Returns the subscription type of the roster entry.