|
QXmpp
Version:0.4.0
|
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) |
| 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 |
Properties | |
| QList< QXmppMucRoom * > | rooms |
| Returns the list of managed rooms. | |
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:
QXmppMucManager *manager = new QXmppMucManager; client->addExtension(manager);
You can then join a room as follows:
QXmppMucRoom *room = manager->addRoom("room@conference.example.com"); room->setNickName("mynick"); room->join();
| QXmppMucRoom * QXmppMucManager::addRoom | ( | const QString & | roomJid | ) |
Adds the given chat room to the set of managed rooms.
| roomJid |
| void QXmppMucManager::invitationReceived | ( | const QString & | roomJid, |
| const QString & | inviter, | ||
| const QString & | reason | ||
| ) | [signal] |
This signal is emitted when an invitation to a chat room is received.
1.7.6.1