QXmpp::Muc::UserQuery Class
class QXmpp::Muc::UserQueryThe x element with namespace muc#user as defined by XEP-0045: Multi-User Chat. More...
| Header: | #include <QXmppMucData.h> |
| Since: | QXmpp 1.16 |
Public Functions
| std::optional<QXmpp::Muc::Decline> | decline() const |
| std::optional<QXmpp::Muc::Invite> | invite() const |
| QString | password() const |
| void | setDecline(std::optional<QXmpp::Muc::Decline> decline) |
| void | setInvite(std::optional<QXmpp::Muc::Invite> invite) |
| void | setPassword(const QString &password) |
| void | setStatusCodes(QList<uint32_t> codes) |
| QList<uint32_t> | statusCodes() const |
Detailed Description
Used in messages to carry mediated invitations, invitation declines, and status codes.
Member Function Documentation
std::optional<QXmpp::Muc::Decline> UserQuery::decline() const
Returns the invitation decline, if present.
See also setDecline().
std::optional<QXmpp::Muc::Invite> UserQuery::invite() const
Returns the mediated invitation, if present.
See also setInvite().
QString UserQuery::password() const
Returns the room password for password-protected rooms (empty if none).
See also setPassword().
void UserQuery::setDecline(std::optional<QXmpp::Muc::Decline> decline)
Sets the invitation decline.
See also decline().
void UserQuery::setInvite(std::optional<QXmpp::Muc::Invite> invite)
Sets the mediated invite.
See also invite().
void UserQuery::setPassword(const QString &password)
Sets the room password.
See also password().
void UserQuery::setStatusCodes(QList<uint32_t> codes)
Sets the MUC status codes.
See also statusCodes().
QList<uint32_t> UserQuery::statusCodes() const
Returns the MUC status codes carried in this element.
See also setStatusCodes().