XEP-0045: Multi-User Chat Manager with support for XEP-0402: PEP Native Bookmarks.
More...
|
|
class | QXmppMucManagerV2Private |
| |
|
class | tst_QXmppMuc |
| |
XEP-0045: Multi-User Chat Manager with support for XEP-0402: PEP Native Bookmarks.
The manager automatically fetches bookmarks on session establishment and afterwards emits bookmarksReset(), bookmarksAdded(), bookmarksRemoved() and bookmarksChanged().
The QXmppPubSubManager must be registered with the client.
- Note
- This manager is work-in-progress and joining MUCs is not yet implemented.
- Since
- QXmpp 1.13
◆ bookmarksAdded()
| QXmppMucManagerV2::bookmarksAdded |
( |
const QList< QXmppMucBookmark > & |
newBookmarks | ) |
|
Emitted when bookmarks have been added. This is triggered by PubSub event notifications.
◆ bookmarksChanged()
| QXmppMucManagerV2::bookmarksChanged |
( |
const QList< QXmppMucManagerV2::BookmarkChange > & |
bookmarkUpdates | ) |
|
Emitted when bookmarks have been changed.
◆ bookmarksRemoved()
| QXmppMucManagerV2::bookmarksRemoved |
( |
const QList< QString > & |
removedBookmarkJids | ) |
|
Emitted when bookmarks are retracted.
◆ bookmarksReset()
| QXmppMucManagerV2::bookmarksReset |
( |
| ) |
|
Emitted when the total set of bookmarks is reset, e.g. when receiving the initial bookmarks items query.
◆ discoveryFeatures()
| QStringList QXmppMucManagerV2::discoveryFeatures |
( |
| ) |
const |
|
overridevirtual |
◆ fetchRoomAvatar()
| QXmppTask< Result< std::optional< QXmppMucManagerV2::Avatar > > > QXmppMucManagerV2::fetchRoomAvatar |
( |
const QString & |
jid | ) |
|
Fetches the Avatar of a MUC room
First fetches the avatar hashes via the muc#roominfo form from service discovery information and then fetches the avatar itself via vcard-temp.
- Note
- This currently does not do any caching and does not listen for avatar changes.
- Parameters
-
- Returns
- nullopt if VCards are not supported in this MUC or no avatar has been published, otherwise the published avatar
◆ handlePubSubEvent()
| bool QXmppMucManagerV2::handlePubSubEvent |
( |
const QDomElement & |
element, |
|
|
const QString & |
pubSubService, |
|
|
const QString & |
nodeName |
|
) |
| |
|
overridevirtual |
◆ onRegistered()
| void QXmppMucManagerV2::onRegistered |
( |
QXmppClient * |
client | ) |
|
|
overrideprotectedvirtual |
◆ onUnregistered()
| void QXmppMucManagerV2::onUnregistered |
( |
QXmppClient * |
client | ) |
|
|
overrideprotectedvirtual |
◆ removeRoomAvatar()
Removes the avatar of a MUC room.
Requires the MUC service to support "vcard-temp" and to be "an owner or some other priviledged
entity" of the MUC.
- Parameters
-
◆ setRoomAvatar()
Sets the avatar of a MUC room.
Requires the MUC service to support "vcard-temp" and to be "an owner or some other priviledged
entity" of the MUC.
- Parameters
-
| jid | JID of the MUC room |
| avatar | Avatar to be set |
The documentation for this class was generated from the following files: