aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppSendStanzaParams.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-06-18 12:41:31 +0200
committerLinus Jahn <lnj@kaidan.im>2022-06-18 13:08:07 +0200
commit32ccc6358ba6433e6b870b238fba20ccf1862fe2 (patch)
tree81c4f8d5a1af484b7aad52ad2dcef4da556360ad /src/client/QXmppSendStanzaParams.cpp
parentcb1c0ac7ba16590304c8fe7bd6d87b69dffe5c67 (diff)
downloadqxmpp-32ccc6358ba6433e6b870b238fba20ccf1862fe2.tar.gz
Move SecurityPolicy, TrustLevel intro extra headers
This avoids the need to include the whole TrustStorage in files like SendStanzaParams.h.
Diffstat (limited to 'src/client/QXmppSendStanzaParams.cpp')
-rw-r--r--src/client/QXmppSendStanzaParams.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/QXmppSendStanzaParams.cpp b/src/client/QXmppSendStanzaParams.cpp
index 6c8b6ccc..9711750d 100644
--- a/src/client/QXmppSendStanzaParams.cpp
+++ b/src/client/QXmppSendStanzaParams.cpp
@@ -6,6 +6,8 @@
#include <QVector>
+using namespace QXmpp;
+
///
/// \class QXmppSendStanzaParams
///
@@ -17,8 +19,8 @@
class QXmppSendStanzaParamsPrivate : public QSharedData
{
public:
+ TrustLevels acceptedTrustLevels;
QVector<QString> encryptionJids;
- QXmppTrustStorage::TrustLevels acceptedTrustLevels;
};
QXmppSendStanzaParams::QXmppSendStanzaParams()
@@ -65,7 +67,7 @@ void QXmppSendStanzaParams::setEncryptionJids(QVector<QString> encryptionJids)
///
/// \return the trust levels of the keys used for encryption
///
-std::optional<QXmppTrustStorage::TrustLevels> QXmppSendStanzaParams::acceptedTrustLevels() const
+std::optional<TrustLevels> QXmppSendStanzaParams::acceptedTrustLevels() const
{
if (d->acceptedTrustLevels) {
return d->acceptedTrustLevels;
@@ -80,7 +82,7 @@ std::optional<QXmppTrustStorage::TrustLevels> QXmppSendStanzaParams::acceptedTru
///
/// \param trustLevels trust levels of the keys used for encryption
///
-void QXmppSendStanzaParams::setAcceptedTrustLevels(std::optional<QXmppTrustStorage::TrustLevels> trustLevels)
+void QXmppSendStanzaParams::setAcceptedTrustLevels(std::optional<TrustLevels> trustLevels)
{
- d->acceptedTrustLevels = trustLevels.value_or(QXmppTrustStorage::TrustLevels());
+ d->acceptedTrustLevels = trustLevels.value_or(QXmpp::TrustLevels());
}