Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QHttpPartPrivate Class Reference

#include <qhttpmultipart_p.h>

+ Inheritance diagram for QHttpPartPrivate:
+ Collaboration diagram for QHttpPartPrivate:

Public Member Functions

 QHttpPartPrivate ()
 
 ~QHttpPartPrivate ()
 
 QHttpPartPrivate (const QHttpPartPrivate &other)
 
bool operator== (const QHttpPartPrivate &other) const
 
void setBodyDevice (QIODevice *device)
 
void setBody (const QByteArray &newBody)
 
qint64 bytesAvailable () const
 
qint64 readData (char *data, qint64 maxSize)
 
qint64 size () const
 
bool reset ()
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 
- Public Member Functions inherited from QNetworkHeadersPrivate
RawHeadersList::ConstIterator findRawHeader (QAnyStringView key) const
 
RawHeadersList allRawHeaders () const
 
QList< QByteArrayrawHeadersKeys () const
 
void setRawHeader (const QByteArray &key, const QByteArray &value)
 
void setAllRawHeaders (const RawHeadersList &list)
 
void setCookedHeader (QNetworkRequest::KnownHeaders header, const QVariant &value)
 
QHttpHeaders headers () const
 
void setHeaders (const QHttpHeaders &newHeaders)
 
void setHeaders (QHttpHeaders &&newHeaders)
 
void setHeader (QHttpHeaders::WellKnownHeader name, QByteArrayView value)
 
void clearHeaders ()
 

Public Attributes

QByteArray body
 
QIODevicebodyDevice
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 
- Public Attributes inherited from QNetworkHeadersPrivate
RawHeadersList rawHeaders
 
QHttpHeaders httpHeaders
 
CookedHeadersMap cookedHeaders
 
AttributesMap attributes
 
QPointer< QObjectoriginatingObject
 

Additional Inherited Members

- Public Types inherited from QNetworkHeadersPrivate
typedef QPair< QByteArray, QByteArrayRawHeaderPair
 
typedef QList< RawHeaderPairRawHeadersList
 
typedef QHash< QNetworkRequest::KnownHeaders, QVariantCookedHeadersMap
 
typedef QHash< QNetworkRequest::Attribute, QVariantAttributesMap
 
- Static Public Member Functions inherited from QNetworkHeadersPrivate
static QDateTime fromHttpDate (const QByteArray &value)
 
static QByteArray toHttpDate (const QDateTime &dt)
 
static RawHeadersList fromHttpToRaw (const QHttpHeaders &headers)
 
static QHttpHeaders fromRawToHttp (const RawHeadersList &raw)
 

Detailed Description

Definition at line 30 of file qhttpmultipart_p.h.

Constructor & Destructor Documentation

◆ QHttpPartPrivate() [1/2]

QHttpPartPrivate::QHttpPartPrivate ( )
inline

Definition at line 33 of file qhttpmultipart_p.h.

◆ ~QHttpPartPrivate()

QHttpPartPrivate::~QHttpPartPrivate ( )
inline

Definition at line 36 of file qhttpmultipart_p.h.

◆ QHttpPartPrivate() [2/2]

QHttpPartPrivate::QHttpPartPrivate ( const QHttpPartPrivate & other)
inline

Definition at line 41 of file qhttpmultipart_p.h.

References bodyDevice, and other().

+ Here is the call graph for this function:

Member Function Documentation

◆ bytesAvailable()

qint64 QHttpPartPrivate::bytesAvailable ( ) const

Definition at line 317 of file qhttpmultipart.cpp.

References body, bodyDevice, QIODevice::bytesAvailable(), bytesAvailable(), qMax(), and QByteArray::size().

Referenced by bytesAvailable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool QHttpPartPrivate::operator== ( const QHttpPartPrivate & other) const
inline

Definition at line 48 of file qhttpmultipart_p.h.

References body, bodyDevice, other(), and QNetworkHeadersPrivate::rawHeaders.

+ Here is the call graph for this function:

◆ readData()

qint64 QHttpPartPrivate::readData ( char * data,
qint64 maxSize )

Definition at line 330 of file qhttpmultipart.cpp.

References body, bodyDevice, QByteArray::constData(), qMin(), QIODevice::read(), and QByteArray::size().

+ Here is the call graph for this function:

◆ reset()

bool QHttpPartPrivate::reset ( )

Definition at line 376 of file qhttpmultipart.cpp.

References bodyDevice, QIODevice::reset(), and ret.

+ Here is the call graph for this function:

◆ setBody()

void QHttpPartPrivate::setBody ( const QByteArray & newBody)
inline

Definition at line 58 of file qhttpmultipart_p.h.

References body.

Referenced by QHttpPart::setBody().

+ Here is the caller graph for this function:

◆ setBodyDevice()

void QHttpPartPrivate::setBodyDevice ( QIODevice * device)
inline

Definition at line 54 of file qhttpmultipart_p.h.

References bodyDevice, and device.

Referenced by QHttpPart::setBodyDevice().

+ Here is the caller graph for this function:

◆ size()

qint64 QHttpPartPrivate::size ( ) const

Definition at line 364 of file qhttpmultipart.cpp.

References body, bodyDevice, QIODevice::size(), size(), and QByteArray::size().

Referenced by QHttpMultiPartIODevice::readData(), size(), and QHttpMultiPartIODevice::size().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ body

QByteArray QHttpPartPrivate::body

Definition at line 70 of file qhttpmultipart_p.h.

Referenced by bytesAvailable(), operator==(), readData(), setBody(), and size().

◆ bodyDevice


The documentation for this class was generated from the following files: