5#ifndef QXMPPHTTPUPLOADIQ_H
6#define QXMPPHTTPUPLOADIQ_H
10#include <QSharedDataPointer>
15class QXmppHttpUploadRequestIqPrivate;
16class QXmppHttpUploadSlotIqPrivate;
37 QString fileName()
const;
38 void setFileName(
const QString &filename);
41 void setSize(qint64 size);
43 QMimeType contentType()
const;
44 void setContentType(
const QMimeType &type);
46 static bool isHttpUploadRequestIq(
const QDomElement &element);
50 void parseElementFromChild(
const QDomElement &element)
override;
51 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
55 QSharedDataPointer<QXmppHttpUploadRequestIqPrivate> d;
78 void setPutUrl(
const QUrl &putUrl);
81 void setGetUrl(
const QUrl &getUrl);
83 QMap<QString, QString> putHeaders()
const;
84 void setPutHeaders(
const QMap<QString, QString> &putHeaders);
86 static bool isHttpUploadSlotIq(
const QDomElement &element);
90 void parseElementFromChild(
const QDomElement &element)
override;
91 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
95 QSharedDataPointer<QXmppHttpUploadSlotIqPrivate> d;
Represents an HTTP File Upload IQ for requesting an upload slot as defined by XEP-0363: HTTP File Upl...
Definition: QXmppHttpUploadIq.h:27
QXmppHttpUploadRequestIq & operator=(const QXmppHttpUploadRequestIq &)
Default assignment operator.
QXmppHttpUploadRequestIq(const QXmppHttpUploadRequestIq &)
Default copy-constructor.
QXmppHttpUploadRequestIq & operator=(QXmppHttpUploadRequestIq &&)
Default assignment operator.
QXmppHttpUploadRequestIq(QXmppHttpUploadRequestIq &&)
Default move-constructor.
Represents an HTTP File Upload IQ result for receiving an upload slot as defined by XEP-0363: HTTP Fi...
Definition: QXmppHttpUploadIq.h:67
QXmppHttpUploadSlotIq & operator=(QXmppHttpUploadSlotIq &&)
Default move-assignment operator.
QXmppHttpUploadSlotIq(const QXmppHttpUploadSlotIq &)
Default copy-constructor.
QXmppHttpUploadSlotIq(QXmppHttpUploadSlotIq &&)
Default move-constructor.
QXmppHttpUploadSlotIq & operator=(const QXmppHttpUploadSlotIq &)
Default assignment operator.
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:23