From bdc2b00a1d89c20f6fe87bdb6f9eb792afeea2bb Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Mon, 17 Oct 2022 16:14:35 +0200 Subject: E2eeExtension: Add isEncrypted() and decryptMessage() functions --- src/client/QXmppE2eeExtension.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/client/QXmppE2eeExtension.cpp') 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 @@ -27,6 +27,12 @@ /// QXmpp::SendError in case the message couldn't be encrypted. /// +/// +/// \typedef QXmppE2eeExtension::MessageDecryptResult +/// +/// Contains the decrypted QXmppMessage, NotEncrypted or an QXmppError. +/// + /// /// \typedef QXmppE2eeExtension::IqEncryptResult /// @@ -52,6 +58,13 @@ /// an error message. /// +/// +/// \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 /// @@ -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. +/// -- cgit v1.2.3