The QXmppMucManager class makes it possible to interact with multi-user chat rooms as defined by XEP-0045: Multi-User Chat. More...
#include <QXmppMucManager.h>
Signals | |
| void | invitationReceived (const QString &roomJid, const QString &inviter, const QString &reason) |
| This signal is emitted when an invitation to a chat room is received. | |
| void | roomAdded (QXmppMucRoom *room) |
| This signal is emitted when a new room is managed. | |
Public Member Functions | |
| QXmppMucManager () | |
| Constructs a new QXmppMucManager. | |
| ~QXmppMucManager () | |
| Destroys a QXmppMucManager. | |
| QXmppMucRoom * | addRoom (const QString &roomJid) |
| QList< QXmppMucRoom * > | rooms () const |
Public Member Functions inherited from QXmppClientExtension | |
| QXmppClientExtension () | |
| virtual | ~QXmppClientExtension () |
| virtual QStringList | discoveryFeatures () const |
| virtual QList < QXmppDiscoveryIq::Identity > | discoveryIdentities () const |
| virtual bool | handleStanza (const QDomElement &stanza)=0 |
| You need to implement this method to process incoming XMPP stanzas. | |
Public Member Functions inherited from QXmppLoggable | |
| QXmppLoggable (QObject *parent=0) | |
Properties | |
| QList< QXmppMucRoom * > | rooms |
| Returns the list of managed rooms. | |
Additional Inherited Members | |
Protected Member Functions inherited from QXmppClientExtension | |
| QXmppClient * | client () |
| virtual void | setClient (QXmppClient *client) |
The QXmppMucManager class makes it possible to interact with multi-user chat rooms as defined by XEP-0045: Multi-User Chat.
To make use of this manager, you need to instantiate it and load it into the QXmppClient instance as follows:
You can then join a room as follows:
| QXmppMucRoom * QXmppMucManager::addRoom | ( | const QString & | roomJid | ) |
Adds the given chat room to the set of managed rooms.
| roomJid |
1.8.1.2