QXmpp  Version: 1.10.4
QXmppSendStanzaParams.h
1 // SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im>
2 //
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4 
5 #ifndef QXMPPSENDSTANZAPARAMS_H
6 #define QXMPPSENDSTANZAPARAMS_H
7 
8 #include "QXmppGlobal.h"
9 #include "QXmppTrustLevel.h"
10 
11 #include <optional>
12 
13 #include <QSharedDataPointer>
14 
15 class QXmppSendStanzaParamsPrivate;
16 
17 class QXMPP_EXPORT QXmppSendStanzaParams
18 {
19 public:
24  QXmppSendStanzaParams &operator=(const QXmppSendStanzaParams &);
26 
27  QVector<QString> encryptionJids() const;
28  void setEncryptionJids(QVector<QString>);
29 
30  std::optional<QXmpp::TrustLevels> acceptedTrustLevels() const;
31  void setAcceptedTrustLevels(std::optional<QXmpp::TrustLevels> trustLevels);
32 
33 private:
34  QSharedDataPointer<QXmppSendStanzaParamsPrivate> d;
35 };
36 
37 #endif // QXMPPSENDSTANZAPARAMS_H
Definition: QXmppSendStanzaParams.h:17