QXmpp: QXmppMucItem Class Reference

QXmpp Version: 1.14.2

Loading...
Searching...
No Matches
QXmppMucItem Class Reference
Stanzas

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)
| Sets the user's affiliation, i.e. long-lived permissions.
QString | jid () const
| Returns the user's real JID.
void | setJid (const QString &jid)
| Sets the user's real JID.
QString | nick () const
| Returns the user's nickname.
void | setNick (const QString &nick)
| Sets the user's nickname.
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)
| Sets the user's role, i.e. short-lived permissions.

## Detailed Description

The QXmppMucItem class represents a chat room "item".

It is used to convey information such as permissions.

## Member Function Documentation

## ◆ actor()

QString QXmppMucItem::actor | ( |  | ) | const

Returns the actor for this item, for instance the admin who kicked a user out of a room.

## ◆ reason()

QString QXmppMucItem::reason | ( |  | ) | const

Returns the reason for this item, for example the reason for kicking a user out of a room.

## ◆ setActor()

void QXmppMucItem::setActor | ( | const QString & | actor | ) |

Sets the actor for this item, for instance the admin who kicked a user out of a room.

## ◆ setReason()

void QXmppMucItem::setReason | ( | const QString & | reason | ) |

Sets the reason for this item, for example the reason for kicking a user out of a room.

The documentation for this class was generated from the following files:

- QXmppMucIq.h
- QXmppMucIq.cpp