QXmpp Version: 1.10.4
 
Loading...
Searching...
No Matches
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
15class QXmppSendStanzaParamsPrivate;
16
17class QXMPP_EXPORT QXmppSendStanzaParams
18{
19public:
20 QXmppSendStanzaParams();
21 QXmppSendStanzaParams(const QXmppSendStanzaParams &other);
22 QXmppSendStanzaParams(QXmppSendStanzaParams &&);
23 ~QXmppSendStanzaParams();
24 QXmppSendStanzaParams &operator=(const QXmppSendStanzaParams &);
25 QXmppSendStanzaParams &operator=(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
33private:
34 QSharedDataPointer<QXmppSendStanzaParamsPrivate> d;
35};
36
37#endif // QXMPPSENDSTANZAPARAMS_H
QVector< QString > encryptionJids() const
Definition QXmppSendStanzaParams.cpp:47
void setEncryptionJids(QVector< QString >)
Definition QXmppSendStanzaParams.cpp:58
QXmppSendStanzaParams & operator=(QXmppSendStanzaParams &&)
Move-assignment operator.
QXmppSendStanzaParams & operator=(const QXmppSendStanzaParams &)
Assignment operator.
std::optional< QXmpp::TrustLevels > acceptedTrustLevels() const
Definition QXmppSendStanzaParams.cpp:70
QXmppSendStanzaParams(QXmppSendStanzaParams &&)
Move-constructor.
void setAcceptedTrustLevels(std::optional< QXmpp::TrustLevels > trustLevels)
Definition QXmppSendStanzaParams.cpp:85
QXmppSendStanzaParams(const QXmppSendStanzaParams &other)
Copy-constructor.