diff options
| author | Linus Jahn <lnj@kaidan.im> | 2019-09-04 20:26:48 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2019-09-08 13:31:40 +0200 |
| commit | 35256b7d95374717905f8ac8d4d524c4b691389e (patch) | |
| tree | 55074a75a34eb4a2eaa051e8afe7b4779ab50431 /src/base/QXmppMessage.h | |
| parent | e7394afc6730b16673f4173fcbc55d54a810a80b (diff) | |
| download | qxmpp-35256b7d95374717905f8ac8d4d524c4b691389e.tar.gz | |
Implement XEP-0334: Message Processing Hints
This implements parsing and serialization of XEP-0334: Message
Processing Hints in version 0.3.0.
https://xmpp.org/extensions/xep-0334.html
Co-authored-by: Juan Aragon <jaaragont@gmail.com>
Co-authored-by: Sam Truscott <sam@wumpus.co.uk>
Diffstat (limited to 'src/base/QXmppMessage.h')
| -rw-r--r-- | src/base/QXmppMessage.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/base/QXmppMessage.h b/src/base/QXmppMessage.h index 69e2d451..9021f0cb 100644 --- a/src/base/QXmppMessage.h +++ b/src/base/QXmppMessage.h @@ -66,6 +66,14 @@ public: Acknowledged }; + /// XEP-0334: Message Processing Hints + enum Hint { + NoPermanentStore = 1 << 0, ///< Do not allow permanent storage + NoStore = 1 << 1, ///< Do not store at all + NoCopy = 1 << 2, ///< Do not copy the message + Store = 1 << 3 ///< Do store the message + }; + /// This enum describes different end-to-end encryption methods. These can /// be used to mark a message explicitly as encrypted with a specific /// algothim. See XEP-0380: Explicit Message Encryption for details. @@ -152,6 +160,12 @@ public: QString replaceId() const; void setReplaceId(const QString&); + // XEP-0334: Message Processing Hints + bool hasHint(const Hint hint) const; + void addHint(const Hint hint); + void removeHint(const Hint hint); + void removeAllHints(); + // XEP-0367: Message Attaching QString attachId() const; void setAttachId(const QString&); |
