Loading...
Searching...
No Matches
QXmppOutOfBandUrl.h
// SPDX-FileCopyrightText: 2022 Jonah Brüchert <jbb@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPOUTOFBANDURL_H
#define QXMPPOUTOFBANDURL_H
#include "QXmppConstants_p.h"
#include "QXmppGlobal.h"
#include "QXmppXmlTags_p.h"
#include <optional>
#include <QSharedDataPointer>
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<QString> &description() const;
void setDescription(const std::optional<QString> &description);
static constexpr std::tuple XmlTag = { u"x", QXmpp::Private::ns_oob };
bool parse(const QDomElement &el);
void toXml(QXmlStreamWriter *writer) const;
private:
QSharedDataPointer<QXmppOutOfBandUrlPrivate> d;
};
#endif // QXMPPOUTOFBANDURL_H
QXmppOutOfBandUrl::setUrl
void setUrl(const QString &url)
Definition QXmppOutOfBandUrl.cpp:51
QXmppOutOfBandUrl::description
const std::optional< QString > & description() const
Definition QXmppOutOfBandUrl.cpp:59
QXmppOutOfBandUrl::url
const QString & url() const
Definition QXmppOutOfBandUrl.cpp:43
QXmppOutOfBandUrl::setDescription
void setDescription(const std::optional< QString > &description)
Definition QXmppOutOfBandUrl.cpp:67