QXmppMucRoomInfo Class
| Header: | #include <QXmppMucRoomInfo> |
| Since: | QXmpp 1.13 |
| Inherits: | QXmppExtensibleDataFormBase |
Public Functions
| QStringList | avatarHashes() const |
| QStringList | contactJids() const |
| QString | description() const |
| QString | language() const |
| std::optional<quint32> | maxHistoryFetch() const |
(since QXmpp 1.16) std::optional<double> | messageActivity() const |
| std::optional<quint32> | occupants() const |
| void | setAvatarHashes(const QStringList &hashes) |
| void | setContactJids(const QStringList &newContactJids) |
| void | setDescription(const QString &newDescription) |
| void | setLanguage(const QString &newLanguage) |
| void | setMaxHistoryFetch(std::optional<quint32> newMaxHistoryFetch) |
(since QXmpp 1.16) void | setMessageActivity(std::optional<double> messagesPerHour) |
| void | setOccupants(std::optional<quint32> newOccupants) |
| void | setSubject(const QString &newSubject) |
| void | setSubjectChangeable(std::optional<bool> newSubjectChangeable) |
| QString | subject() const |
| std::optional<bool> | subjectChangeable() const |
| bool | operator==(const QXmppMucRoomInfo &other) const |
Static Public Members
| std::optional<QXmppMucRoomInfo> | fromDataForm(const QXmppDataForm &form) |
Detailed Description
`muc#roominfo` form as defined in XEP-0045: Multi-User Chat.
Member Function Documentation
QStringList QXmppMucRoomInfo::avatarHashes() const
Returns hashes of the vCard-temp avatar of this room.
See also setAvatarHashes().
QStringList QXmppMucRoomInfo::contactJids() const
Returns Contact Addresses (normally, room owner or owners)
See also setContactJids().
QString QXmppMucRoomInfo::description() const
Returns Short Description of Room
See also setDescription().
[static] std::optional<QXmppMucRoomInfo> QXmppMucRoomInfo::fromDataForm(const QXmppDataForm &form)
Tries to parse form into QXmppMucRoomInfo.
QString QXmppMucRoomInfo::language() const
Returns Natural Language for Room Discussions
See also setLanguage().
std::optional<quint32> QXmppMucRoomInfo::maxHistoryFetch() const
Returns Maximum Number of History Messages Returned by Room
See also setMaxHistoryFetch().
[since QXmpp 1.16] std::optional<double> QXmppMucRoomInfo::messageActivity() const
Returns an approximate measure of messages per hour in the room, as defined in XEP-0502: MUC Activity Indicator.
This function was introduced in QXmpp 1.16.
See also setMessageActivity().
std::optional<quint32> QXmppMucRoomInfo::occupants() const
Returns Current Number of Occupants in Room
See also setOccupants().
void QXmppMucRoomInfo::setAvatarHashes(const QStringList &hashes)
Sets hashes of the vCard-temp avatar of this room.
See also avatarHashes().
void QXmppMucRoomInfo::setContactJids(const QStringList &newContactJids)
Sets Contact Addresses (normally, room owner or owners)
newContactJids.
See also contactJids().
void QXmppMucRoomInfo::setDescription(const QString &newDescription)
Sets Short Description of Room
newDescription.
See also description().
void QXmppMucRoomInfo::setLanguage(const QString &newLanguage)
Sets Natural Language for Room Discussions
newLanguage.
See also language().
void QXmppMucRoomInfo::setMaxHistoryFetch(std::optional<quint32> newMaxHistoryFetch)
Sets Maximum Number of History Messages Returned by Room
newMaxHistoryFetch.
See also maxHistoryFetch().
[since QXmpp 1.16] void QXmppMucRoomInfo::setMessageActivity(std::optional<double> messagesPerHour)
Sets an approximate measure of messagesPerHour in the room, as defined in XEP-0502: MUC Activity Indicator.
This function was introduced in QXmpp 1.16.
See also messageActivity().
void QXmppMucRoomInfo::setOccupants(std::optional<quint32> newOccupants)
Sets Current Number of Occupants in Room
newOccupants.
See also occupants().
void QXmppMucRoomInfo::setSubject(const QString &newSubject)
Sets Current Discussion Topic
newSubject.
See also subject().
void QXmppMucRoomInfo::setSubjectChangeable(std::optional<bool> newSubjectChangeable)
Sets whether the room subject can be modified by participants
newSubjectChangeable.
See also subjectChangeable().
QString QXmppMucRoomInfo::subject() const
Returns Current Discussion Topic
See also setSubject().
std::optional<bool> QXmppMucRoomInfo::subjectChangeable() const
Returns whether the room subject can be modified by participants
See also setSubjectChangeable().
bool QXmppMucRoomInfo::operator==(const QXmppMucRoomInfo &other) const
Returns whether this is equal to other.