42 #ifndef QHTTPMULTIPART_P_H 43 #define QHTTPMULTIPART_P_H 56 #include "QtCore/qshareddata.h" 58 #include "private/qobject_p.h" 148 virtual bool isSequential()
const;
149 virtual bool reset();
151 virtual qint64 writeData(
const char *data,
qint64 maxSize);
182 #endif // QHTTPMULTIPART_P_H void checkHeaderCreated() const
virtual bool atEnd() const
Returns true if the current read and write position is at the end of the device (i.e.
QList< qint64 > partOffsets
#define QT_END_NAMESPACE
This macro expands to.
QHttpPartPrivate(const QHttpPartPrivate &other)
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
bool operator==(const QHttpPartPrivate &other) const
The QByteArray class provides an array of bytes.
QHttpMultiPart::ContentType contentType
void setBody(const QByteArray &newBody)
QHttpMultiPartIODevice * device
virtual qint64 bytesToWrite() const
For buffered devices, this function returns the number of bytes waiting to be written.
#define QT_BEGIN_NAMESPACE
This macro expands to.
qint64 bytesAvailable() const
static const char * data(const QByteArray &arr)
The QSharedData class is a base class for shared data objects.
void setBodyDevice(QIODevice *device)
QHttpMultiPartPrivate * multiPart
qint64 readData(char *data, qint64 maxSize)
#define Q_AUTOTEST_EXPORT
ContentType
List of known content types for a multipart subtype as described in RFC 2046 and others.
~QHttpMultiPartIODevice()
QHttpMultiPartIODevice(QHttpMultiPartPrivate *parentMultiPart)
The QIODevice class is the base interface class of all I/O devices in Qt.
virtual qint64 bytesAvailable() const
Returns the number of bytes that are available for reading.