diff options
Diffstat (limited to 'src/QXmppMucManager.cpp')
| -rw-r--r-- | src/QXmppMucManager.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/QXmppMucManager.cpp b/src/QXmppMucManager.cpp index fb3bea9b..7c6919d3 100644 --- a/src/QXmppMucManager.cpp +++ b/src/QXmppMucManager.cpp @@ -178,6 +178,23 @@ bool QXmppMucManager::requestRoomPermissions(const QString &roomJid) return true; } +/// Sets the subject for the given room. +/// +/// \param roomJid +/// \param subject +/// +/// \return true if the request was sent, false otherwise +/// + +bool QXmppMucManager::setRoomSubject(const QString &roomJid, const QString &subject) +{ + QXmppMessage msg; + msg.setTo(roomJid); + msg.setType(QXmppMessage::GroupChat); + msg.setSubject(subject); + return client()->sendPacket(msg); +} + /// Invite a user to a chat room. /// /// \param roomJid |
