QIODevice

#include <QtCore/QIODevice>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QIODevice


Overview

Public Types Index

enum OpenModeFlag

NotOpen 0x0000, ReadOnly 0x0001, WriteOnly 0x0002, ReadWrite ReadOnly | WriteOnly, Append 0x0004, Truncate 0x0008, Text 0x0010, Unbuffered 0x0020

Public Functions Index

QIODevice ()
QIODevice (QObject *parent)
virtual ~QIODevice ()
virtual boolatEnd () const
virtual qint64bytesAvailable () const
virtual qint64bytesToWrite () const
virtual boolcanReadLine () const
virtual voidclose ()
QStringerrorString () const
boolgetChar (char *c)
boolisOpen () const
boolisReadable () const
virtual boolisSequential () const
boolisTextModeEnabled () const
boolisWritable () const
virtual boolopen (OpenMode mode)
OpenModeopenMode () const
qint64peek (char *data, qint64 maxlen)
QByteArraypeek (qint64 maxlen)
virtual qint64pos () const
boolputChar (char c)
qint64read (char *data, qint64 maxlen)
QByteArrayread (qint64 maxlen)
QByteArrayreadAll ()
qint64readLine (char *data, qint64 maxlen)
QByteArrayreadLine (qint64 maxlen=0)
virtual boolreset ()
virtual boolseek (qint64 pos)
voidsetTextModeEnabled (bool enabled)
virtual qint64size () const
voidungetChar (char c)
virtual boolwaitForBytesWritten (int msecs)
virtual boolwaitForReadyRead (int msecs)
qint64write (const char *data, qint64 len)
qint64write (const char *data)
qint64write (const QByteArray &data)

Protected Functions Index

QIODevice (QIODevicePrivate &dd, QObject *parent=0)
qint64readData (char *data, qint64 maxlen)=0
virtual qint64readLineData (char *data, qint64 maxlen)
voidsetErrorString (const QString &errorString)
voidsetOpenMode (OpenMode openMode)
qint64writeData (const char *data, qint64 len)=0

Signals Index

voidaboutToClose ()
voidbytesWritten (qint64 bytes)
voidreadChannelFinished ()
voidreadyRead ()

Public Types

OpenModeFlag

NotOpen 0x0000
ReadOnly 0x0001
WriteOnly 0x0002
ReadWrite ReadOnly | WriteOnly
Append 0x0004
Truncate 0x0008
Text 0x0010
Unbuffered 0x0020

Public Functions

QIODevice ()

QIODevice (

virtual~QIODevice ()

Destructor.

virtual bool atEnd ()

virtual qint64 bytesAvailable ()

virtual qint64 bytesToWrite ()

virtual bool canReadLine ()

virtual void close ()

QString errorString ()

bool getChar (
  • char *c)

bool isOpen ()

bool isReadable ()

virtual bool isSequential ()

bool isTextModeEnabled ()

bool isWritable ()

virtual bool open (
  • OpenModemode)

OpenMode openMode ()

qint64 peek (
  • char *data,
  • qint64maxlen )

QByteArray peek (
  • qint64maxlen)

virtual qint64 pos ()

bool putChar (
  • charc)

qint64 read (
  • char *data,
  • qint64maxlen )

QByteArray read (
  • qint64maxlen)

QByteArray readAll ()

qint64 readLine (
  • char *data,
  • qint64maxlen )

QByteArray readLine (
  • qint64maxlen)

virtual bool reset ()

virtual bool seek (
  • qint64pos)

void setTextModeEnabled (
  • boolenabled)

virtual qint64 size ()

void ungetChar (
  • charc)

virtual bool waitForBytesWritten (
  • intmsecs)

virtual bool waitForReadyRead (
  • intmsecs)

qint64 write (
  • const char *data,
  • qint64len )

qint64 write (
  • const char *data)

qint64 write (

Protected Functions

QIODevice (
  • QIODevicePrivate &dd,
  • QObject *parent )

qint64 readData (
  • char *data,
  • qint64maxlen )

virtual qint64 readLineData (
  • char *data,
  • qint64maxlen )

void setErrorString (

void setOpenMode (
  • OpenModeopenMode)

qint64 writeData (
  • const char *data,
  • qint64len )

Signals

void aboutToClose ()

void bytesWritten (
  • qint64bytes)

void readChannelFinished ()

void readyRead ()

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus