QXmpp: QXmppHttpFileSource.h Source File

QXmpp Version: 1.14.4

Loading...
Searching...
No Matches
QXmppHttpFileSource.h
1// SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPHTTPFILESOURCE_H
6#define QXMPPHTTPFILESOURCE_H
7
8#include "QXmppConstants_p.h"
9#include "QXmppGlobal.h"
10
11#include <QUrl>
12
13class QDomElement;
14class QXmlStreamWriter;
15
16 class QXMPP_EXPORT QXmppHttpFileSource
17{
18public:
19 QXmppHttpFileSource();
20 QXmppHttpFileSource(QUrl url);
21 QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppHttpFileSource)
22
23 const QUrl &url() const;
24 void setUrl(QUrl url);
25
27 static constexpr std::tuple XmlTag = { u"url-data", QXmpp::Private::ns_url_data };
28 bool parse(const QDomElement &el);
29 void toXml(QXmlStreamWriter *writer) const;
31
32private:
33 static_assert(sizeof(QUrl) == sizeof(void *));
34 QUrl m_url;
35};
36
37#endif // QXMPPHTTPFILESOURCE_H
QXmppHttpFileSource::url
const QUrl & url() const
Definition QXmppHttpFileSource.cpp:40
QXmppHttpFileSource::setUrl
void setUrl(QUrl url)
Definition QXmppHttpFileSource.cpp:48
QXmppHttpFileSource::QXmppHttpFileSource
QXmppHttpFileSource()
Default constructor.