QBuffer

#include <QtCore/QBuffer>

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


Overview

Inheritance

QIODevice
QBuffer

Public Types Index

Only has inherited public types

enum OpenModeFlag

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

Public Functions Index

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

Protected Functions Index

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

Signals Index

Only has inherited signals

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

Public Types

(Only has inherited public types)

OpenModeFlag Inherited

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

Public Functions

QBuffer (

QBuffer (

~QBuffer ()

Destructor.

virtual bool atEnd ()

QByteArray & buffer ()

const QByteArray & buffer ()

virtual bool canReadLine ()

virtual void close ()

const QByteArray & data ()

virtual bool open (
  • OpenModeopenMode)

virtual qint64 pos ()

virtual bool seek (
  • qint64off)

void setBuffer (

void setData (

void setData (
  • const char *data,
  • intlen )

virtual qint64 size ()

virtual qint64 bytesAvailable ()Inherited

virtual qint64 bytesToWrite ()Inherited

QString errorString ()Inherited

bool getChar (
  • char *c)
Inherited

bool isOpen ()Inherited

bool isReadable ()Inherited

virtual bool isSequential ()Inherited

bool isTextModeEnabled ()Inherited

bool isWritable ()Inherited

OpenMode openMode ()Inherited

qint64 peek (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray peek (
  • qint64maxlen)
Inherited

bool putChar (
  • charc)
Inherited

QIODevice ()Inherited

QIODevice (Inherited

qint64 read (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray read (
  • qint64maxlen)
Inherited

QByteArray readAll ()Inherited

qint64 readLine (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray readLine (
  • qint64maxlen)
Inherited

virtual bool reset ()Inherited

void setTextModeEnabled (
  • boolenabled)
Inherited

void ungetChar (
  • charc)
Inherited

virtual bool waitForBytesWritten (
  • intmsecs)
Inherited

virtual bool waitForReadyRead (
  • intmsecs)
Inherited

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

qint64 write (
  • const char *data)
Inherited

qint64 write (Inherited

Protected Functions

virtual void connectNotify (
  • const char *)

virtual void disconnectNotify (
  • const char *)

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

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

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

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

void setErrorString (Inherited

void setOpenMode (
  • OpenModeopenMode)
Inherited

Signals

(Only has inherited signals)

void aboutToClose ()Inherited

void bytesWritten (
  • qint64bytes)
Inherited

void readChannelFinished ()Inherited

void readyRead ()Inherited

Last modified: 2015-07-24



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

comments powered by Disqus