40 #ifndef QHTTPMULTIPART_P_H
41 #define QHTTPMULTIPART_P_H
54 #include <QtNetwork/private/qtnetworkglobal_p.h>
55 #include "QtCore/qshareddata.h"
57 #include "private/qobject_p.h"
79 header(
other.header), headerCreated(
other.headerCreated), readPointer(
other.readPointer)
110 void checkHeaderCreated()
const;
113 mutable bool headerCreated;
131 virtual bool atEnd()
const override {
132 return readPointer ==
size();
136 return size() - readPointer;
152 virtual bool reset()
override;
The QByteArray class provides an array of bytes.
virtual qint64 bytesToWrite() const override
virtual void close() override
~QHttpMultiPartIODevice()
virtual qint64 bytesAvailable() const override
QHttpMultiPartIODevice(QHttpMultiPartPrivate *parentMultiPart)
QList< qint64 > partOffsets
QHttpMultiPartPrivate * multiPart
virtual bool atEnd() const override
QHttpMultiPart::ContentType contentType
QHttpMultiPartIODevice * device
QHttpPartPrivate(const QHttpPartPrivate &other)
void setBody(const QByteArray &newBody)
bool operator==(const QHttpPartPrivate &other) const
qint64 readData(char *data, qint64 maxSize)
qint64 bytesAvailable() const
void setBodyDevice(QIODevice *device)
The QIODevice class is the base interface class of all I/O devices in Qt.
virtual qint64 size() const
virtual bool isSequential() const
virtual qint64 writeData(const char *data, qint64 len)=0
virtual qint64 readData(char *data, qint64 maxlen)=0
The QSharedData class is a base class for shared data objects. \reentrant.
#define Q_AUTOTEST_EXPORT
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QHttpMultiPart * multiPart
[0]