diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-03-30 01:46:38 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-03-31 00:17:06 +0200 |
| commit | 1cef71d96857825407be192788105a43eb5e1846 (patch) | |
| tree | 7c83952e9dd830409c626b8c83a54ba842c7fa7f /src/base/QXmppMessage.h | |
| parent | 7f080d08252dfb699d4e3ae072cc3db0d2de129d (diff) | |
Implement XEP-0245: The /me Command
This adds parsing for recognizing /me commands in message bodies. It
complies with version 1.0 of XEP-0245: The /me Command.
https://xmpp.org/extensions/xep-0245.html
Diffstat (limited to 'src/base/QXmppMessage.h')
| -rw-r--r-- | src/base/QXmppMessage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base/QXmppMessage.h b/src/base/QXmppMessage.h index d853b8a9..3d8e3ed8 100644 --- a/src/base/QXmppMessage.h +++ b/src/base/QXmppMessage.h @@ -160,6 +160,12 @@ public: QXmppBitsOfBinaryDataList &bitsOfBinaryData(); void setBitsOfBinaryData(const QXmppBitsOfBinaryDataList &bitsOfBinaryData); + // XEP-0245: The /me Command + static bool isSlashMeCommand(const QString &body); + bool isSlashMeCommand() const; + static QString slashMeCommandText(const QString &body); + QString slashMeCommandText() const; + // XEP-0280: Message Carbons bool isPrivate() const; void setPrivate(const bool); |
