QXmpp Version: 1.5.6
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 "QXmppGlobal.h"
9
10#include <QUrl>
11
12class QDomElement;
13class QXmlStreamWriter;
14
15class QXMPP_EXPORT QXmppHttpFileSource
16{
17public:
19 QXmppHttpFileSource(QUrl url);
20 QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppHttpFileSource)
21
22 const QUrl &url() const;
23 void setUrl(QUrl url);
24
26 bool parse(const QDomElement &el);
27 void toXml(QXmlStreamWriter *writer) const;
29
30private:
31 static_assert(sizeof(QUrl) == sizeof(void *));
32 QUrl m_url;
33};
34
35#endif // QXMPPHTTPFILESOURCE_H
Definition QXmppHttpFileSource.h:16
QXmppHttpFileSource()
Default constructor.