List of all members | Public Slots | Signals | Public Member Functions
QProcessProto Class Reference

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

#include <qprocessproto.h>

Inheritance diagram for QProcessProto:
QObject QScriptable

Public Slots

void kill ()
 
void terminate ()
 

Signals

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

Public Member Functions

 QProcessProto (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 void closeReadChannel (QProcess::ProcessChannel channel)
 
Q_INVOKABLE void closeWriteChannel ()
 
Q_INVOKABLE QProcess::ProcessError error () const
 
Q_INVOKABLE QString errorString () const
 
Q_INVOKABLE int exitCode () const
 
Q_INVOKABLE QProcess::ExitStatus exitStatus () const
 
Q_INVOKABLE bool getChar (char *c)
 
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 Q_PID pid () const
 
Q_INVOKABLE qint64 pos () const
 
Q_INVOKABLE QProcess::ProcessChannelMode processChannelMode () const
 
Q_INVOKABLE QProcessEnvironment processEnvironment () 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 QByteArray readAllStandardError ()
 
Q_INVOKABLE QByteArray readAllStandardOutput ()
 
Q_INVOKABLE QProcess::ProcessChannel readChannel () const
 
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 setProcessChannelMode (QProcess::ProcessChannelMode mode)
 
Q_INVOKABLE void setProcessEnvironment (const QProcessEnvironment &environment)
 
Q_INVOKABLE void setReadChannel (QProcess::ProcessChannel channel)
 
Q_INVOKABLE void setStandardErrorFile (const QString &fileName, QIODevice::OpenMode mode=QIODevice::Truncate)
 
Q_INVOKABLE void setStandardInputFile (const QString &fileName)
 
Q_INVOKABLE void setStandardOutputFile (const QString &fileName, QIODevice::OpenMode mode=QIODevice::Truncate)
 
Q_INVOKABLE void setStandardOutputProcess (QProcess *destination)
 
Q_INVOKABLE void setTextModeEnabled (bool enabled)
 
Q_INVOKABLE void setWorkingDirectory (const QString &dir)
 
Q_INVOKABLE qint64 size () const
 
Q_INVOKABLE void start (const QString &program, const QStringList &arguments, QIODevice::OpenMode mode=QIODevice::ReadWrite)
 
Q_INVOKABLE void start (const QString &program, QIODevice::OpenMode mode=QIODevice::ReadWrite)
 
Q_INVOKABLE QProcess::ProcessState state () const
 
Q_INVOKABLE void ungetChar (char c)
 
Q_INVOKABLE bool waitForBytesWritten (int msecs)
 
Q_INVOKABLE bool waitForFinished (int msecs=30000)
 
Q_INVOKABLE bool waitForReadyRead (int msecs)
 
Q_INVOKABLE bool waitForStarted (int msecs=30000)
 
Q_INVOKABLE QString workingDirectory () const
 
Q_INVOKABLE qint64 write (const char *data)
 
Q_INVOKABLE qint64 write (const char *data, qint64 maxSize)
 
Q_INVOKABLE qint64 write (const QByteArray &byteArray)
 

Detailed Description

This class exposes the QIODevice class to Qt Scripting.

The QProcessProto class exposes as much of the API to the QProcess class as possible.

Constructor & Destructor Documentation

◆ QProcessProto()

QProcessProto::QProcessProto ( QObject parent)

Member Function Documentation

◆ aboutToClose

void QProcessProto::aboutToClose ( )
signal

◆ atEnd()

bool QProcessProto::atEnd ( ) const

◆ bytesAvailable()

qint64 QProcessProto::bytesAvailable ( ) const

◆ bytesToWrite()

qint64 QProcessProto::bytesToWrite ( ) const

◆ bytesWritten

void QProcessProto::bytesWritten ( qint64  bytes)
signal

◆ canReadLine()

bool QProcessProto::canReadLine ( ) const

◆ close()

void QProcessProto::close ( )

◆ closeReadChannel()

void QProcessProto::closeReadChannel ( QProcess::ProcessChannel  channel)

◆ closeWriteChannel()

void QProcessProto::closeWriteChannel ( )

◆ error()

QProcess::ProcessError QProcessProto::error ( ) const

◆ errorString()

QString QProcessProto::errorString ( ) const

◆ exitCode()

int QProcessProto::exitCode ( ) const

◆ exitStatus()

QProcess::ExitStatus QProcessProto::exitStatus ( ) const

◆ getChar()

bool QProcessProto::getChar ( char *  c)

◆ isOpen()

bool QProcessProto::isOpen ( ) const

◆ isReadable()

bool QProcessProto::isReadable ( ) const

◆ isSequential()

bool QProcessProto::isSequential ( ) const

◆ isTextModeEnabled()

bool QProcessProto::isTextModeEnabled ( ) const

◆ isWritable()

bool QProcessProto::isWritable ( ) const

◆ kill

void QProcessProto::kill ( )
slot

◆ open()

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

◆ openMode()

QIODevice::OpenMode QProcessProto::openMode ( ) const

◆ peek() [1/2]

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

◆ peek() [2/2]

QByteArray QProcessProto::peek ( qint64  maxSize)

◆ pid()

Q_PID QProcessProto::pid ( ) const

◆ pos()

qint64 QProcessProto::pos ( ) const

◆ processChannelMode()

QProcess::ProcessChannelMode QProcessProto::processChannelMode ( ) const

◆ processEnvironment()

QProcessEnvironment QProcessProto::processEnvironment ( ) const

◆ putChar()

bool QProcessProto::putChar ( char  c)

◆ read() [1/2]

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

◆ read() [2/2]

QByteArray QProcessProto::read ( qint64  maxSize)

◆ readAll()

QByteArray QProcessProto::readAll ( )

◆ readAllStandardError()

QByteArray QProcessProto::readAllStandardError ( )

◆ readAllStandardOutput()

QByteArray QProcessProto::readAllStandardOutput ( )

◆ readChannel()

QProcess::ProcessChannel QProcessProto::readChannel ( ) const

◆ readChannelFinished

void QProcessProto::readChannelFinished ( )
signal

◆ readLine() [1/2]

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

◆ readLine() [2/2]

QByteArray QProcessProto::readLine ( qint64  maxSize = 0)

◆ readyRead

void QProcessProto::readyRead ( )
signal

◆ reset()

bool QProcessProto::reset ( )

◆ seek()

bool QProcessProto::seek ( qint64  pos)

◆ setProcessChannelMode()

void QProcessProto::setProcessChannelMode ( QProcess::ProcessChannelMode  mode)

◆ setProcessEnvironment()

void QProcessProto::setProcessEnvironment ( const QProcessEnvironment &  environment)

◆ setReadChannel()

void QProcessProto::setReadChannel ( QProcess::ProcessChannel  channel)

◆ setStandardErrorFile()

void QProcessProto::setStandardErrorFile ( const QString &  fileName,
QIODevice::OpenMode  mode = QIODevice::Truncate 
)

◆ setStandardInputFile()

void QProcessProto::setStandardInputFile ( const QString &  fileName)

◆ setStandardOutputFile()

void QProcessProto::setStandardOutputFile ( const QString &  fileName,
QIODevice::OpenMode  mode = QIODevice::Truncate 
)

◆ setStandardOutputProcess()

void QProcessProto::setStandardOutputProcess ( QProcess *  destination)

◆ setTextModeEnabled()

void QProcessProto::setTextModeEnabled ( bool  enabled)

◆ setWorkingDirectory()

void QProcessProto::setWorkingDirectory ( const QString &  dir)

◆ size()

qint64 QProcessProto::size ( ) const

◆ start() [1/2]

void QProcessProto::start ( const QString &  program,
const QStringList &  arguments,
QIODevice::OpenMode  mode = QIODevice::ReadWrite 
)

◆ start() [2/2]

void QProcessProto::start ( const QString &  program,
QIODevice::OpenMode  mode = QIODevice::ReadWrite 
)

◆ state()

QProcess::ProcessState QProcessProto::state ( ) const

◆ terminate

void QProcessProto::terminate ( )
slot

◆ ungetChar()

void QProcessProto::ungetChar ( char  c)

◆ waitForBytesWritten()

bool QProcessProto::waitForBytesWritten ( int  msecs)

◆ waitForFinished()

bool QProcessProto::waitForFinished ( int  msecs = 30000)

◆ waitForReadyRead()

bool QProcessProto::waitForReadyRead ( int  msecs)

◆ waitForStarted()

bool QProcessProto::waitForStarted ( int  msecs = 30000)

◆ workingDirectory()

QString QProcessProto::workingDirectory ( ) const

◆ write() [1/3]

qint64 QProcessProto::write ( const char *  data)

◆ write() [2/3]

qint64 QProcessProto::write ( const char *  data,
qint64  maxSize 
)

◆ write() [3/3]

qint64 QProcessProto::write ( const QByteArray &  byteArray)

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

Generated on Mon May 3 2021 xTuple ERP Programmer Reference, Version 4.12.0 doxygen 1.8.17