QXmpp: QXmppCredentials.h Source File

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
QXmppCredentials.h
1// SPDX-FileCopyrightText: 2024 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPCREDENTIALS_H
6#define QXMPPCREDENTIALS_H
7
8#include "QXmppGlobal.h"
9
10#include <optional>
11
12#include <QSharedDataPointer>
13
14struct QXmppCredentialsPrivate;
15class QXmlStreamReader;
16class QXmlStreamWriter;
17
18 class QXMPP_EXPORT QXmppCredentials
19{
20public:
21 QXmppCredentials();
22 QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppCredentials)
23
24 static std::optional<QXmppCredentials> fromXml(QXmlStreamReader &);
25 void toXml(QXmlStreamWriter &) const;
26
28 bool operator==(const QXmppCredentials &other) const;
30 bool operator!=(const QXmppCredentials &other) const = default;
31
32private:
33 friend class QXmppConfiguration;
34
35 QSharedDataPointer<QXmppCredentialsPrivate> d;
36};
37
38#endif // QXMPPCREDENTIALS_H
QXmppCredentials::operator==
bool operator==(const QXmppCredentials &other) const
Comparison operator.
Definition QXmppConfiguration.cpp:80
QXmppCredentials::toXml
void toXml(QXmlStreamWriter &) const
Definition QXmppConfiguration.cpp:72
QXmppCredentials::fromXml
static std::optional< QXmppCredentials > fromXml(QXmlStreamReader &)
Definition QXmppConfiguration.cpp:52
QXmppCredentials::QXmppCredentials
QXmppCredentials()
Default constructor.
Definition QXmppConfiguration.cpp:42
QXmppCredentials::operator!=
bool operator!=(const QXmppCredentials &other) const =default
Comparison operator.