diff options
Diffstat (limited to 'src/corelib/io/qiodevice.h')
-rw-r--r-- | src/corelib/io/qiodevice.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/io/qiodevice.h b/src/corelib/io/qiodevice.h index 162480d22f..2e4debe339 100644 --- a/src/corelib/io/qiodevice.h +++ b/src/corelib/io/qiodevice.h @@ -76,7 +76,9 @@ public: Append = 0x0004, Truncate = 0x0008, Text = 0x0010, - Unbuffered = 0x0020 + Unbuffered = 0x0020, + NewOnly = 0x0040, + ExistingOnly = 0x0080 }; Q_DECLARE_FLAGS(OpenMode, OpenModeFlag) @@ -136,6 +138,7 @@ public: qint64 peek(char *data, qint64 maxlen); QByteArray peek(qint64 maxlen); + qint64 skip(qint64 maxSize); virtual bool waitForReadyRead(int msecs); virtual bool waitForBytesWritten(int msecs); @@ -160,7 +163,7 @@ protected: #ifdef QT_NO_QOBJECT QIODevice(QIODevicePrivate &dd); #else - QIODevice(QIODevicePrivate &dd, QObject *parent = Q_NULLPTR); + QIODevice(QIODevicePrivate &dd, QObject *parent = nullptr); #endif virtual qint64 readData(char *data, qint64 maxlen) = 0; virtual qint64 readLineData(char *data, qint64 maxlen); |