diff options
| author | Melvin Keskin <melvo@olomono.de> | 2021-08-28 14:39:02 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-09-16 18:43:00 +0200 |
| commit | bb8780ecdbfe7eddb8280e696871e71b744d0bff (patch) | |
| tree | 585989b6e6a58c3f2af42c0681d87e93e2c592e7 /src/base/QXmppMessage.cpp | |
| parent | b147ea5f4004cbd9aa2e7ae3936734a869bf3a44 (diff) | |
Add QXmppAtmManager
Diffstat (limited to 'src/base/QXmppMessage.cpp')
| -rw-r--r-- | src/base/QXmppMessage.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/base/QXmppMessage.cpp b/src/base/QXmppMessage.cpp index f975ae3c..e97731ae 100644 --- a/src/base/QXmppMessage.cpp +++ b/src/base/QXmppMessage.cpp @@ -108,6 +108,7 @@ public: QString thread; QString parentThread; QXmppMessage::Type type; + QString senderKey; // XEP-0066: Out of Band Data QString outOfBandUrl; @@ -325,6 +326,44 @@ void QXmppMessage::setParentThread(const QString &parent) } /// +/// Returns the ID of this message's sender's public long-term key. +/// +/// The key ID is not part of a transmitted message and thus not de- / +/// serialized. +/// Instead, the key ID is set by an encryption protocol such as +/// \xep{0384, OMEMO Encryption} when it decrypts this message. +/// It can be used by trust management protocols such as +/// \xep{0450, Automatic Trust Management (ATM)}. +/// +/// \return the ID of the sender's key +/// +/// \since QXmpp 1.5 +/// +QString QXmppMessage::senderKey() const +{ + return d->senderKey; +} + +/// +/// Sets the ID of this message's sender's public long-term key. +/// +/// The key ID is not part of a transmitted message and thus not de- / +/// serialized. +/// Instead, the key ID is set by an encryption protocol such as +/// \xep{0384, OMEMO Encryption} when it decrypts this message. +/// It can be used by trust management protocols such as +/// \xep{0450, Automatic Trust Management (ATM)}. +/// +/// \param keyId ID of the sender's key +/// +/// \since QXmpp 1.5 +/// +void QXmppMessage::setSenderKey(const QString &keyId) +{ + d->senderKey = keyId; +} + +/// /// Returns a possibly attached URL from \xep{0066}: Out of Band Data /// /// \since QXmpp 1.0 |
