List of all members | Signals | Public Member Functions
QIODeviceProto Class Reference

This class exposes the QIODevice class to Qt Scripting. More...

#include <qiodeviceproto.h>

Inheritance diagram for QIODeviceProto:
QObject QScriptable QAbstractSocketProto QBufferProto

Signals

void aboutToClose ()
 
void bytesWritten (qint64 bytes)
 
void readChannelFinished ()
 
void readyRead ()
 

Public Member Functions

 QIODeviceProto (QObject *parent)
 
Q_INVOKABLE bool atEnd () const
 
Q_INVOKABLE qint64 bytesAvailable () const
 
Q_INVOKABLE qint64 bytesToWrite () const
 
Q_INVOKABLE bool canReadLine () const
 
Q_INVOKABLE void close ()
 
Q_INVOKABLE QString errorString () const
 
Q_INVOKABLE char getChar ()
 
Q_INVOKABLE bool isOpen () const
 
Q_INVOKABLE bool isReadable () const
 
Q_INVOKABLE bool isSequential () const
 
Q_INVOKABLE bool isTextModeEnabled () const
 
Q_INVOKABLE bool isWritable () const
 
Q_INVOKABLE bool open (QIODevice::OpenMode mode)
 
Q_INVOKABLE QIODevice::OpenMode openMode () const
 
Q_INVOKABLE qint64 peek (char *data, qint64 maxSize)
 
Q_INVOKABLE QByteArray peek (qint64 maxSize)
 
Q_INVOKABLE qint64 pos () const
 
Q_INVOKABLE bool putChar (char c)
 
Q_INVOKABLE qint64 read (char *data, qint64 maxSize)
 
Q_INVOKABLE QByteArray read (qint64 maxSize)
 
Q_INVOKABLE QByteArray readAll ()
 
Q_INVOKABLE qint64 readLine (char *data, qint64 maxSize)
 
Q_INVOKABLE QByteArray readLine (qint64 maxSize=0)
 
Q_INVOKABLE bool reset ()
 
Q_INVOKABLE bool seek (qint64 pos)
 
Q_INVOKABLE void setTextModeEnabled (bool enabled)
 
Q_INVOKABLE qint64 size () const
 
Q_INVOKABLE void ungetChar (char c)
 
Q_INVOKABLE bool waitForBytesWritten (int msecs)
 
Q_INVOKABLE bool waitForReadyRead (int msecs)
 
Q_INVOKABLE qint64 write (char data)
 
Q_INVOKABLE qint64 write (char data, qint64 maxSize)
 
Q_INVOKABLE qint64 write (const QByteArray &byteArray)
 

Detailed Description

This class exposes the QIODevice class to Qt Scripting.

The QIODeviceProto class exposes as much of the API to the QIODevice class as possible.

Constructor & Destructor Documentation

◆ QIODeviceProto()

QIODeviceProto::QIODeviceProto ( QObject parent)

Member Function Documentation

◆ aboutToClose

void QIODeviceProto::aboutToClose ( )
signal

◆ atEnd()

bool QIODeviceProto::atEnd ( ) const

◆ bytesAvailable()

qint64 QIODeviceProto::bytesAvailable ( ) const

◆ bytesToWrite()

qint64 QIODeviceProto::bytesToWrite ( ) const

◆ bytesWritten

void QIODeviceProto::bytesWritten ( qint64  bytes)
signal

◆ canReadLine()

bool QIODeviceProto::canReadLine ( ) const

◆ close()

void QIODeviceProto::close ( )

◆ errorString()

QString QIODeviceProto::errorString ( ) const

◆ getChar()

char QIODeviceProto::getChar ( )

◆ isOpen()

bool QIODeviceProto::isOpen ( ) const

◆ isReadable()

bool QIODeviceProto::isReadable ( ) const

◆ isSequential()

bool QIODeviceProto::isSequential ( ) const

◆ isTextModeEnabled()

bool QIODeviceProto::isTextModeEnabled ( ) const

◆ isWritable()

bool QIODeviceProto::isWritable ( ) const

◆ open()

bool QIODeviceProto::open ( QIODevice::OpenMode  mode)

◆ openMode()

QIODevice::OpenMode QIODeviceProto::openMode ( ) const

◆ peek() [1/2]

qint64 QIODeviceProto::peek ( char *  data,
qint64  maxSize 
)

◆ peek() [2/2]

QByteArray QIODeviceProto::peek ( qint64  maxSize)

◆ pos()

qint64 QIODeviceProto::pos ( ) const

◆ putChar()

bool QIODeviceProto::putChar ( char  c)

◆ read() [1/2]

qint64 QIODeviceProto::read ( char *  data,
qint64  maxSize 
)

◆ read() [2/2]

QByteArray QIODeviceProto::read ( qint64  maxSize)

◆ readAll()

QByteArray QIODeviceProto::readAll ( )

◆ readChannelFinished

void QIODeviceProto::readChannelFinished ( )
signal

◆ readLine() [1/2]

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

◆ readLine() [2/2]

QByteArray QIODeviceProto::readLine ( qint64  maxSize = 0)

◆ readyRead

void QIODeviceProto::readyRead ( )
signal

◆ reset()

bool QIODeviceProto::reset ( )

◆ seek()

bool QIODeviceProto::seek ( qint64  pos)

◆ setTextModeEnabled()

void QIODeviceProto::setTextModeEnabled ( bool  enabled)

◆ size()

qint64 QIODeviceProto::size ( ) const

◆ ungetChar()

void QIODeviceProto::ungetChar ( char  c)

◆ waitForBytesWritten()

bool QIODeviceProto::waitForBytesWritten ( int  msecs)

◆ waitForReadyRead()

bool QIODeviceProto::waitForReadyRead ( int  msecs)

◆ write() [1/3]

qint64 QIODeviceProto::write ( char  data)

◆ write() [2/3]

qint64 QIODeviceProto::write ( char  data,
qint64  maxSize 
)

◆ write() [3/3]

qint64 QIODeviceProto::write ( const QByteArray &  byteArray)

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 5.0.0 doxygen 1.8.17