QXmppMucParticipant Class

Lightweight handle to a participant in a XEP-0045: Multi-User Chat room. More...

Header: #include <QXmppMucManagerV2.h>
Since: QXmpp 1.16

Public Functions

QXmppMucParticipant()
QXmppMucParticipant(const QXmppMucParticipant &)
QXmppMucParticipant(QXmppMucParticipant &&)
QBindable<QXmpp::Muc::Affiliation> affiliation() const
QBindable<QString> jid() const
QBindable<QString> nickname() const
QString occupantId() const
QBindable<QXmpp::Muc::Role> role() const
QXmppMucParticipant &operator=(QXmppMucParticipant &&)
QXmppMucParticipant &operator=(const QXmppMucParticipant &)

Detailed Description

Each participant handle owns a strong reference to its participant data, so it is safe to hold across participants coming and going.

Note: QXmppMucManagerV2 must remain alive while participant handles are in use — the handles own the data but the manager owns the signal infrastructure. Accessing a handle after the manager is destroyed is undefined behavior.

Warning: THIS API IS NOT FINALIZED YET and may still change in incompatible ways before it is released.

Member Function Documentation

[delete] QXmppMucParticipant::QXmppMucParticipant()

Default-constructs an instance of QXmppMucParticipant. This function is deleted.

[noexcept default] QXmppMucParticipant::QXmppMucParticipant(const QXmppMucParticipant &)

Copy-constructs an instance of QXmppMucParticipant.

[noexcept default] QXmppMucParticipant::QXmppMucParticipant(QXmppMucParticipant &&)

Move-constructs an instance of QXmppMucParticipant.

QBindable<QXmpp::Muc::Affiliation> QXmppMucParticipant::affiliation() const

Returns the participant's affiliation with the room.

QBindable<QString> QXmppMucParticipant::jid() const

Returns the participant's real JID if known.

QBindable<QString> QXmppMucParticipant::nickname() const

Returns the participant's nickname in the room.

QString QXmppMucParticipant::occupantId() const

Returns the participant's XEP-0421: Occupant Id if the room supports it.

QBindable<QXmpp::Muc::Role> QXmppMucParticipant::role() const

Returns the participant's role in the room.

[noexcept default] QXmppMucParticipant &QXmppMucParticipant::operator=(QXmppMucParticipant &&)

Move-assigns other to this QXmppMucParticipant instance.

[noexcept default] QXmppMucParticipant &QXmppMucParticipant::operator=(const QXmppMucParticipant &)

Copy-assigns other to this QXmppMucParticipant instance.