// SPDX-FileCopyrightText: 2022 Jonah BrĂ¼chert // // SPDX-License-Identifier: LGPL-2.1-or-later #ifndef QXMPPOUTOFBANDURL_H #define QXMPPOUTOFBANDURL_H #include "QXmppGlobal.h" #include #include class QXmppOutOfBandUrlPrivate; class QDomElement; class QXmlStreamWriter; class QXMPP_EXPORT QXmppOutOfBandUrl { public: QXmppOutOfBandUrl(); QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppOutOfBandUrl) const QString &url() const; void setUrl(const QString &url); const std::optional &description() const; void setDescription(const std::optional &description); /// \cond bool parse(const QDomElement &el); void toXml(QXmlStreamWriter *writer) const; /// \endcond private: QSharedDataPointer d; }; #endif // QXMPPOUTOFBANDURL_H