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
QFileDevicePrivate Class Reference

#include <qfiledevice_p.h>

+ Inheritance diagram for QFileDevicePrivate:
+ Collaboration diagram for QFileDevicePrivate:

Protected Member Functions

 QFileDevicePrivate ()
 
 ~QFileDevicePrivate ()
 
virtual QAbstractFileEngineengine () const
 
bool ensureFlushed () const
 
bool putCharHelper (char c) override
 
void setError (QFileDevice::FileError err)
 
void setError (QFileDevice::FileError err, const QString &errorString)
 
void setError (QFileDevice::FileError err, int errNum)
 

Protected Attributes

std::unique_ptr< QAbstractFileEnginefileEngine
 
qint64 cachedSize
 
QFileDevice::FileHandleFlags handleFlags
 
QFileDevice::FileError error
 
bool lastWasWrite
 

Additional Inherited Members

- Public Types inherited from QIODevicePrivate
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 inherited from QIODevicePrivate
 QIODevicePrivate ()
 
virtual ~QIODevicePrivate ()
 
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)
 
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
 
- 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)
 
- Public Attributes inherited from QIODevicePrivate
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
 

Detailed Description

Definition at line 41 of file qfiledevice_p.h.

Constructor & Destructor Documentation

◆ QFileDevicePrivate()

QFileDevicePrivate::QFileDevicePrivate ( )
protected

◆ ~QFileDevicePrivate()

QFileDevicePrivate::~QFileDevicePrivate ( )
protecteddefault

Member Function Documentation

◆ engine()

QAbstractFileEngine * QFileDevicePrivate::engine ( ) const
protectedvirtual

Reimplemented in QFilePrivate.

Definition at line 28 of file qfiledevice.cpp.

References fileEngine.

◆ ensureFlushed()

bool QFileDevicePrivate::ensureFlushed ( ) const
inlineprotected

Definition at line 67 of file qfiledevice_p.h.

References QFileDevice::flush(), and lastWasWrite.

+ Here is the call graph for this function:

◆ putCharHelper()

bool QFileDevicePrivate::putCharHelper ( char c)
overrideprotectedvirtual

Reimplemented from QIODevicePrivate.

Definition at line 489 of file qfiledevice.cpp.

References QIODevicePrivate::devicePos, QIODevicePrivate::isSequential(), lastWasWrite, QIODeviceBase::NotOpen, QIODevicePrivate::openMode, QIODevicePrivate::pos, QIODevicePrivate::putCharHelper(), qWarning, QIODeviceBase::Text, QIODeviceBase::Unbuffered, QIODevicePrivate::writeBufferChunkSize, and QIODeviceBase::WriteOnly.

+ Here is the call graph for this function:

◆ setError() [1/3]

void QFileDevicePrivate::setError ( QFileDevice::FileError err)
protected

Definition at line 35 of file qfiledevice.cpp.

References QString::clear(), error, and QIODevicePrivate::errorString.

+ Here is the call graph for this function:

◆ setError() [2/3]

void QFileDevicePrivate::setError ( QFileDevice::FileError err,
const QString & errorString )
protected

Definition at line 41 of file qfiledevice.cpp.

References error, and QIODevicePrivate::errorString.

◆ setError() [3/3]

void QFileDevicePrivate::setError ( QFileDevice::FileError err,
int errNum )
protected

Definition at line 47 of file qfiledevice.cpp.

References error, QIODevicePrivate::errorString, and qt_error_string().

+ Here is the call graph for this function:

Member Data Documentation

◆ cachedSize

qint64 QFileDevicePrivate::cachedSize
mutableprotected

Definition at line 59 of file qfiledevice_p.h.

◆ error

QFileDevice::FileError QFileDevicePrivate::error
protected

Definition at line 62 of file qfiledevice_p.h.

Referenced by setError(), setError(), and setError().

◆ fileEngine

std::unique_ptr<QAbstractFileEngine> QFileDevicePrivate::fileEngine
mutableprotected

◆ handleFlags

QFileDevice::FileHandleFlags QFileDevicePrivate::handleFlags
protected

◆ lastWasWrite

bool QFileDevicePrivate::lastWasWrite
protected

Definition at line 64 of file qfiledevice_p.h.

Referenced by ensureFlushed(), and putCharHelper().


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