4#ifndef QHTTPMULTIPART_P_H
5#define QHTTPMULTIPART_P_H
18#include <QtNetwork/private/qtnetworkglobal_p.h>
19#include "QtCore/qshareddata.h"
21#include "private/qobject_p.h"
43 header(
other.header), headerCreated(
other.headerCreated), readPointer(
other.readPointer)
74 void checkHeaderCreated()
const;
77 mutable bool headerCreated;
95 virtual bool atEnd()
const override {
96 return readPointer ==
size();
100 return size() - readPointer;
116 virtual bool reset()
override;
IOBluetoothDevice * device
virtual qint64 bytesToWrite() const override
For buffered devices, this function returns the number of bytes waiting to be written.
virtual void close() override
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
~QHttpMultiPartIODevice()
virtual qint64 bytesAvailable() const override
Returns the number of bytes that are available for reading.
QHttpMultiPartIODevice(QHttpMultiPartPrivate *parentMultiPart)
QList< qint64 > partOffsets
QHttpMultiPartPrivate * multiPart
virtual bool atEnd() const override
Returns true if the current read and write position is at the end of the device (i....
QHttpMultiPart::ContentType contentType
QHttpMultiPartIODevice * device
ContentType
List of known content types for a multipart subtype as described in RFC 2046 and others.
QHttpPartPrivate(const QHttpPartPrivate &other)
void setBody(const QByteArray &newBody)
bool operator==(const QHttpPartPrivate &other) const
qint64 bytesAvailable() const
void setBodyDevice(QIODevice *device)
\inmodule QtCore \reentrant
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
virtual bool isSequential() const
Returns true if this device is sequential; otherwise returns false.
virtual qint64 writeData(const char *data, qint64 len)=0
Writes up to maxSize bytes from data to the device.
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
virtual bool reset()
Seeks to the start of input for random-access devices.
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
QHttpMultiPart * multiPart
[0]