diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-10-17 16:14:35 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-10-18 21:12:51 +0200 |
| commit | bdc2b00a1d89c20f6fe87bdb6f9eb792afeea2bb (patch) | |
| tree | b6a63721a19ebd731a65442258bf4bf4535488df /src/client/QXmppE2eeExtension.cpp | |
| parent | 3b111ee6b66cf4d0f82d2a245f59fb130728cae7 (diff) | |
E2eeExtension: Add isEncrypted() and decryptMessage() functions
Diffstat (limited to 'src/client/QXmppE2eeExtension.cpp')
| -rw-r--r-- | src/client/QXmppE2eeExtension.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/client/QXmppE2eeExtension.cpp b/src/client/QXmppE2eeExtension.cpp index 9e98a566..52cebb48 100644 --- a/src/client/QXmppE2eeExtension.cpp +++ b/src/client/QXmppE2eeExtension.cpp @@ -28,6 +28,12 @@ /// /// +/// \typedef QXmppE2eeExtension::MessageDecryptResult +/// +/// Contains the decrypted QXmppMessage, NotEncrypted or an QXmppError. +/// + +/// /// \typedef QXmppE2eeExtension::IqEncryptResult /// /// Contains the XML serialized IQ stanza with encrypted contents or a @@ -53,6 +59,13 @@ /// /// +/// \fn QXmppE2eeExtension::decryptMessage +/// +/// Decrypts a QXmppMessage and returns the decrypted QXmppMessage. In case the message was not +/// encrypted, QXmppE2eeExtension::NotEncrypted should be returned. +/// + +/// /// \fn QXmppE2eeExtension::encryptIq /// /// Encrypts a QXmppIq and returns the serialized XML stanza with encrypted @@ -70,3 +83,15 @@ /// element via QFuture. If the input was not encrypted, /// QXmppE2eeExtension::NotEncrypted should be returned. /// + +/// +/// \fn QXmppE2eeExtension::isEncrypted(const QDomElement &) +/// +/// Returns whether the DOM element of an IQ or message stanza is encrypted with this encryption. +/// + +/// +/// \fn QXmppE2eeExtension::isEncrypted(const QXmppMessage &) +/// +/// Returns whether the message is encrypted with this encryption. +/// |
