blob: af914fb234ce6cea90976b73a2d73cb0baa3f97d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// SPDX-FileCopyrightText: 2022 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPHTTPFILESOURCE_H
#define QXMPPHTTPFILESOURCE_H
#include "QXmppGlobal.h"
#include <QUrl>
class QDomElement;
class QXmlStreamWriter;
class QXMPP_EXPORT QXmppHttpFileSource
{
public:
QXmppHttpFileSource();
QXmppHttpFileSource(QUrl url);
QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppHttpFileSource)
const QUrl &url() const;
void setUrl(QUrl url);
/// \cond
bool parse(const QDomElement &el);
void toXml(QXmlStreamWriter *writer) const;
/// \endcond
private:
static_assert(sizeof(QUrl) == sizeof(void *));
QUrl m_url;
};
#endif // QXMPPHTTPFILESOURCE_H
|