The QXmppMucItem class represents a chat room "item". More...
#include <QXmppMucIq.h>
Public Types | |
| enum | Affiliation { UnspecifiedAffiliation, OutcastAffiliation, NoAffiliation, MemberAffiliation, AdminAffiliation, OwnerAffiliation } |
| This enum is used to represent long-lived permissions in a room (affiliations). | |
| enum | Role { UnspecifiedRole, NoRole, VisitorRole, ParticipantRole, ModeratorRole } |
| This enum is used to represent short-lived permissions in a room (roles). | |
Public Member Functions | |
| bool | isNull () const |
| Returns true if the current item is null. | |
| QString | actor () const |
| void | setActor (const QString &actor) |
| Affiliation | affiliation () const |
| Returns the user's affiliation, i.e. long-lived permissions. | |
| void | setAffiliation (Affiliation affiliation) |
| QString | jid () const |
| Returns the user's real JID. | |
| void | setJid (const QString &jid) |
| QString | nick () const |
| Returns the user's nickname. | |
| void | setNick (const QString &nick) |
| QString | reason () const |
| void | setReason (const QString &reason) |
| Role | role () const |
| Returns the user's role, i.e. short-lived permissions. | |
| void | setRole (Role role) |
The QXmppMucItem class represents a chat room "item".
It is used to convey information such as permissions.
| QString QXmppMucItem::actor | ( | ) | const |
Returns the actor for this item, for instance the admin who kicked a user out of a room.
| QString QXmppMucItem::reason | ( | ) | const |
Returns the reason for this item, for example the reason for kicking a user out of a room.
| void QXmppMucItem::setActor | ( | const QString & | actor | ) |
Sets the actor for this item, for instance the admin who kicked a user out of a room.
| void QXmppMucItem::setAffiliation | ( | Affiliation | affiliation | ) |
Sets the user's affiliation, i.e. long-lived permissions.
| affiliation |
| void QXmppMucItem::setJid | ( | const QString & | jid | ) |
Sets the user's real JID.
| jid |
| void QXmppMucItem::setNick | ( | const QString & | nick | ) |
Sets the user's nickname.
| nick |
| void QXmppMucItem::setReason | ( | const QString & | reason | ) |
Sets the reason for this item, for example the reason for kicking a user out of a room.
| void QXmppMucItem::setRole | ( | Role | role | ) |
Sets the user's role, i.e. short-lived permissions.
| role |
1.8.1