From 32ccc6358ba6433e6b870b238fba20ccf1862fe2 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 18 Jun 2022 12:41:31 +0200 Subject: Move SecurityPolicy, TrustLevel intro extra headers This avoids the need to include the whole TrustStorage in files like SendStanzaParams.h. --- src/client/QXmppTrustMemoryStorage.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/client/QXmppTrustMemoryStorage.h') diff --git a/src/client/QXmppTrustMemoryStorage.h b/src/client/QXmppTrustMemoryStorage.h index 1d0e2561..f5e92569 100644 --- a/src/client/QXmppTrustMemoryStorage.h +++ b/src/client/QXmppTrustMemoryStorage.h @@ -18,25 +18,25 @@ public: ~QXmppTrustMemoryStorage(); /// \cond - QFuture setSecurityPolicy(const QString &encryption, SecurityPolicy securityPolicy) override; + QFuture setSecurityPolicy(const QString &encryption, QXmpp::TrustSecurityPolicy securityPolicy) override; QFuture resetSecurityPolicy(const QString &encryption) override; - QFuture securityPolicy(const QString &encryption) override; + QFuture securityPolicy(const QString &encryption) override; QFuture setOwnKey(const QString &encryption, const QByteArray &keyId) override; QFuture resetOwnKey(const QString &encryption) override; QFuture ownKey(const QString &encryption) override; - QFuture addKeys(const QString &encryption, const QString &keyOwnerJid, const QList &keyIds, TrustLevel trustLevel = TrustLevel::AutomaticallyDistrusted) override; + QFuture addKeys(const QString &encryption, const QString &keyOwnerJid, const QList &keyIds, QXmpp::TrustLevel trustLevel = QXmpp::TrustLevel::AutomaticallyDistrusted) override; QFuture removeKeys(const QString &encryption, const QList &keyIds) override; QFuture removeKeys(const QString &encryption, const QString &keyOwnerJid) override; QFuture removeKeys(const QString &encryption) override; - QFuture>> keys(const QString &encryption, TrustLevels trustLevels = {}) override; - QFuture>> keys(const QString &encryption, const QList &keyOwnerJids, TrustLevels trustLevels = {}) override; - QFuture hasKey(const QString &encryption, const QString &keyOwnerJid, TrustLevels trustLevels) override; + QFuture>> keys(const QString &encryption, QXmpp::TrustLevels trustLevels = {}) override; + QFuture>> keys(const QString &encryption, const QList &keyOwnerJids, QXmpp::TrustLevels trustLevels = {}) override; + QFuture hasKey(const QString &encryption, const QString &keyOwnerJid, QXmpp::TrustLevels trustLevels) override; - QFuture>> setTrustLevel(const QString &encryption, const QMultiHash &keyIds, TrustLevel trustLevel) override; - QFuture>> setTrustLevel(const QString &encryption, const QList &keyOwnerJids, TrustLevel oldTrustLevel, TrustLevel newTrustLevel) override; - QFuture trustLevel(const QString &encryption, const QString &keyOwnerJid, const QByteArray &keyId) override; + QFuture>> setTrustLevel(const QString &encryption, const QMultiHash &keyIds, QXmpp::TrustLevel trustLevel) override; + QFuture>> setTrustLevel(const QString &encryption, const QList &keyOwnerJids, QXmpp::TrustLevel oldTrustLevel, QXmpp::TrustLevel newTrustLevel) override; + QFuture trustLevel(const QString &encryption, const QString &keyOwnerJid, const QByteArray &keyId) override; QFuture resetAll(const QString &encryption) override; /// \endcond -- cgit v1.2.3