QXmpp::Muc::DirectInvitation Class
class QXmpp::Muc::DirectInvitationA direct XEP-0045: Multi-User Chat invitation as defined by XEP-0249: Direct MUC Invitations. More...
| Header: | #include <QXmppMucData.h> |
| Since: | QXmpp 1.16 |
Public Functions
| DirectInvitation() | |
| bool | isContinue() const |
| QString | jid() const |
| QString | password() const |
| QString | reason() const |
| void | setIsContinue(bool isContinue) |
| void | setJid(const QString &jid) |
| void | setPassword(const QString &password) |
| void | setReason(const QString &reason) |
| void | setThread(const QString &thread) |
| QString | thread() const |
Detailed Description
Direct invitations are sent peer-to-peer and are not routed through the MUC room. The continue and thread attributes are used when converting a 1-to-1 chat to a group chat (XEP-0045: Multi-User Chat ยง7.9).
Member Function Documentation
[constexpr noexcept default] DirectInvitation::DirectInvitation()
Default-constructs an instance of DirectInvitation.
bool DirectInvitation::isContinue() const
Returns whether this invitation indicates a continuation of a 1-to-1 chat.
See also setIsContinue().
QString DirectInvitation::jid() const
Returns the JID of the MUC room to join (required).
See also setJid().
QString DirectInvitation::password() const
Returns the optional room password.
See also setPassword().
QString DirectInvitation::reason() const
Returns the optional human-readable reason for the invitation.
See also setReason().
void DirectInvitation::setIsContinue(bool isContinue)
Sets the continue flag to isContinue.
See also isContinue().
void DirectInvitation::setJid(const QString &jid)
Sets the jid of the MUC room.
See also jid().
void DirectInvitation::setPassword(const QString &password)
Sets the optional room password.
See also password().
void DirectInvitation::setReason(const QString &reason)
Sets the optional human-readable reason.
See also reason().
void DirectInvitation::setThread(const QString &thread)
Sets the thread ID.
See also thread().
QString DirectInvitation::thread() const
Returns the thread ID from the original 1-to-1 conversation.
See also setThread().