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