Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QIODevicePrivate Class Reference

#include <qiodevice_p.h>

+ Inheritance diagram for QIODevicePrivate:
+ Collaboration diagram for QIODevicePrivate:

Classes

class  QRingBufferRef
 

Public Types

enum  AccessMode : quint8 { Unset , Sequential , RandomAccess }
 
- Public Types inherited from QObjectPrivate
typedef void(*) StaticMetaCallFunction(QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Public Member Functions

 QIODevicePrivate ()
 
virtual ~QIODevicePrivate ()
 
virtual bool putCharHelper (char c)
 
bool isSequential () const
 
bool isBufferEmpty () const
 
bool allWriteBuffersEmpty () const
 
void seekBuffer (qint64 newPos)
 
void setCurrentReadChannel (int channel)
 
void setCurrentWriteChannel (int channel)
 
void setReadChannelCount (int count)
 
void setWriteChannelCount (int count)
 
qint64 read (char *data, qint64 maxSize, bool peeking=false)
 
qint64 readLine (char *data, qint64 maxSize)
 
virtual qint64 peek (char *data, qint64 maxSize)
 
virtual QByteArray peek (qint64 maxSize)
 
qint64 skipByReading (qint64 maxSize)
 
qint64 skipLine ()
 
void write (const char *data, qint64 size)
 
bool isWriteChunkCached (const char *data, qint64 size) const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

qint64 pos = 0
 
qint64 devicePos = 0
 
qint64 transactionPos = 0
 
QRingBufferRef buffer
 
QRingBufferRef writeBuffer
 
const QByteArraycurrentWriteChunk = nullptr
 
int readChannelCount = 0
 
int writeChannelCount = 0
 
int currentReadChannel = 0
 
int currentWriteChannel = 0
 
int readBufferChunkSize = QIODEVICE_BUFFERSIZE
 
int writeBufferChunkSize = 0
 
QVarLengthArray< QRingBuffer, 2 > readBuffers
 
QVarLengthArray< QRingBuffer, 1 > writeBuffers
 
QString errorString
 
QIODevice::OpenMode openMode = QIODevice::NotOpen
 
bool transactionStarted = false
 
bool baseReadLineDataCalled = false
 
AccessMode accessMode = Unset
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Detailed Description

Definition at line 36 of file qiodevice_p.h.

Member Enumeration Documentation

◆ AccessMode

Enumerator
Unset 
Sequential 
RandomAccess 

Definition at line 112 of file qiodevice_p.h.

Constructor & Destructor Documentation

◆ QIODevicePrivate()

QIODevicePrivate::QIODevicePrivate ( )

Definition at line 124 of file qiodevice.cpp.

◆ ~QIODevicePrivate()

QIODevicePrivate::~QIODevicePrivate ( )
virtual

Definition at line 131 of file qiodevice.cpp.

Member Function Documentation

◆ allWriteBuffersEmpty()

bool QIODevicePrivate::allWriteBuffersEmpty ( ) const

Definition at line 740 of file qiodevice.cpp.

◆ isBufferEmpty()

bool QIODevicePrivate::isBufferEmpty ( ) const
inline

Definition at line 125 of file qiodevice_p.h.

◆ isSequential()

bool QIODevicePrivate::isSequential ( ) const
inline

Definition at line 118 of file qiodevice_p.h.

◆ isWriteChunkCached()

bool QIODevicePrivate::isWriteChunkCached ( const char * data,
qint64 size ) const
inline

Definition at line 155 of file qiodevice_p.h.

◆ peek() [1/2]

qint64 QIODevicePrivate::peek ( char * data,
qint64 maxSize )
virtual

Reimplemented in QBufferPrivate, QBufferPrivate, and QSslSocketPrivate.

Definition at line 1873 of file qiodevice.cpp.

◆ peek() [2/2]

QByteArray QIODevicePrivate::peek ( qint64 maxSize)
virtual

Reimplemented in QBufferPrivate, QBufferPrivate, and QSslSocketPrivate.

Definition at line 1881 of file qiodevice.cpp.

◆ putCharHelper()

bool QIODevicePrivate::putCharHelper ( char c)
virtual

Reimplemented in QFileDevicePrivate.

Definition at line 1865 of file qiodevice.cpp.

◆ read()

qint64 QIODevicePrivate::read ( char * data,
qint64 maxSize,
bool peeking = false )

Definition at line 1036 of file qiodevice.cpp.

◆ readLine()

qint64 QIODevicePrivate::readLine ( char * data,
qint64 maxSize )

Definition at line 1338 of file qiodevice.cpp.

◆ seekBuffer()

void QIODevicePrivate::seekBuffer ( qint64 newPos)

Definition at line 883 of file qiodevice.cpp.

◆ setCurrentReadChannel()

void QIODevicePrivate::setCurrentReadChannel ( int channel)
inline

Definition at line 134 of file qiodevice_p.h.

◆ setCurrentWriteChannel()

void QIODevicePrivate::setCurrentWriteChannel ( int channel)
inline

Definition at line 139 of file qiodevice_p.h.

◆ setReadChannelCount()

void QIODevicePrivate::setReadChannelCount ( int count)

Definition at line 661 of file qiodevice.cpp.

◆ setWriteChannelCount()

void QIODevicePrivate::setWriteChannelCount ( int count)

Definition at line 720 of file qiodevice.cpp.

◆ skipByReading()

qint64 QIODevicePrivate::skipByReading ( qint64 maxSize)

Definition at line 2052 of file qiodevice.cpp.

◆ skipLine()

qint64 QIODevicePrivate::skipLine ( )
Since
6.9

Reads to the end of the line without storing its content. Returns the number of bytes read from the current line including the '
' byte.

If an error occurs, -1 is returned. This happens when no bytes were read or when trying to read past EOF.

See also
readLineData(), skip()

Definition at line 2092 of file qiodevice.cpp.

◆ write()

void QIODevicePrivate::write ( const char * data,
qint64 size )

Definition at line 1809 of file qiodevice.cpp.

Member Data Documentation

◆ accessMode

AccessMode QIODevicePrivate::accessMode = Unset
mutable

Definition at line 117 of file qiodevice_p.h.

◆ baseReadLineDataCalled

bool QIODevicePrivate::baseReadLineDataCalled = false

Definition at line 108 of file qiodevice_p.h.

◆ buffer

◆ currentReadChannel

int QIODevicePrivate::currentReadChannel = 0

Definition at line 97 of file qiodevice_p.h.

◆ currentWriteChannel

int QIODevicePrivate::currentWriteChannel = 0

Definition at line 98 of file qiodevice_p.h.

◆ currentWriteChunk

const QByteArray* QIODevicePrivate::currentWriteChunk = nullptr

Definition at line 94 of file qiodevice_p.h.

◆ devicePos

qint64 QIODevicePrivate::devicePos = 0

Definition at line 54 of file qiodevice_p.h.

◆ errorString

QString QIODevicePrivate::errorString

Definition at line 104 of file qiodevice_p.h.

◆ openMode

QIODevice::OpenMode QIODevicePrivate::openMode = QIODevice::NotOpen

Definition at line 105 of file qiodevice_p.h.

◆ pos

qint64 QIODevicePrivate::pos = 0

Definition at line 53 of file qiodevice_p.h.

◆ readBufferChunkSize

int QIODevicePrivate::readBufferChunkSize = QIODEVICE_BUFFERSIZE

Definition at line 99 of file qiodevice_p.h.

◆ readBuffers

QVarLengthArray<QRingBuffer, 2> QIODevicePrivate::readBuffers

Definition at line 102 of file qiodevice_p.h.

◆ readChannelCount

int QIODevicePrivate::readChannelCount = 0

Definition at line 95 of file qiodevice_p.h.

◆ transactionPos

qint64 QIODevicePrivate::transactionPos = 0

Definition at line 55 of file qiodevice_p.h.

◆ transactionStarted

bool QIODevicePrivate::transactionStarted = false

Definition at line 107 of file qiodevice_p.h.

◆ writeBuffer

QRingBufferRef QIODevicePrivate::writeBuffer

Definition at line 93 of file qiodevice_p.h.

◆ writeBufferChunkSize

int QIODevicePrivate::writeBufferChunkSize = 0

Definition at line 100 of file qiodevice_p.h.

◆ writeBuffers

QVarLengthArray<QRingBuffer, 1> QIODevicePrivate::writeBuffers

Definition at line 103 of file qiodevice_p.h.

◆ writeChannelCount

int QIODevicePrivate::writeChannelCount = 0

Definition at line 96 of file qiodevice_p.h.


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