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

#include <qabstractsocketproto.h>

Inheritance diagram for QAbstractSocketProto:
QIODeviceProto QObject QScriptable

Signals

void aboutToClose ()
 
void bytesWritten (qint64 bytes)
 
void connected ()
 
void disconnected ()
 
void error (QAbstractSocket::SocketError socketError)
 
void hostFound ()
 
void proxyAuthenticationRequired (const QNetworkProxy &proxy, QAuthenticator *authenticator)
 
void readChannelFinished ()
 
void readyRead ()
 
void stateChanged (QAbstractSocket::SocketState socketState)
 

Public Member Functions

 QAbstractSocketProto (QObject *parent)
 
Q_INVOKABLE void abort ()
 
Q_INVOKABLE bool atEnd () const
 
Q_INVOKABLE bool bind (const QHostAddress &address, quint16 port=0, QAbstractSocket::BindMode mode=QAbstractSocket::DefaultForPlatform)
 
Q_INVOKABLE bool bind (quint16 port=0, QAbstractSocket::BindMode mode=QAbstractSocket::DefaultForPlatform)
 
Q_INVOKABLE qint64 bytesAvailable () const
 
Q_INVOKABLE qint64 bytesToWrite () const
 
Q_INVOKABLE bool canReadLine () const
 
Q_INVOKABLE void close ()
 
Q_INVOKABLE void connectToHost (const QHostAddress &address, quint16 port, QIODevice::OpenMode openMode=QIODevice::ReadWrite)
 
Q_INVOKABLE void connectToHost (const QString &hostName, quint16 port, QIODevice::OpenMode openMode=QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol=QAbstractSocket::AnyIPProtocol)
 
Q_INVOKABLE void disconnectFromHost ()
 
Q_INVOKABLE QAbstractSocket::SocketError error () const
 
Q_INVOKABLE QString errorString () const
 
Q_INVOKABLE bool flush ()
 
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 isValid () const
 
Q_INVOKABLE bool isWritable () const
 
Q_INVOKABLE QHostAddress localAddress () const
 
Q_INVOKABLE quint16 localPort () const
 
Q_INVOKABLE bool open (QIODevice::OpenMode mode)
 
Q_INVOKABLE QIODevice::OpenMode openMode () const
 
Q_INVOKABLE QAbstractSocket::PauseModes pauseMode () const
 
Q_INVOKABLE qint64 peek (char *data, qint64 maxSize)
 
Q_INVOKABLE QByteArray peek (qint64 maxSize)
 
Q_INVOKABLE QHostAddress peerAddress () const
 
Q_INVOKABLE QString peerName () const
 
Q_INVOKABLE quint16 peerPort () const
 
Q_INVOKABLE qint64 pos () const
 
Q_INVOKABLE QNetworkProxy proxy () 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 readBufferSize () const
 
Q_INVOKABLE qint64 readLine (char *data, qint64 maxSize)
 
Q_INVOKABLE QByteArray readLine (qint64 maxSize=0)
 
Q_INVOKABLE bool reset ()
 
Q_INVOKABLE void resume ()
 
Q_INVOKABLE bool seek (qint64 pos)
 
Q_INVOKABLE void setPauseMode (QAbstractSocket::PauseModes pauseMode)
 
Q_INVOKABLE void setProxy (const QNetworkProxy &networkProxy)
 
Q_INVOKABLE void setReadBufferSize (qint64 size)
 
Q_INVOKABLE bool setSocketDescriptor (qintptr socketDescriptor, QAbstractSocket::SocketState socketState=QAbstractSocket::ConnectedState, QIODevice::OpenMode openMode=QIODevice::ReadWrite)
 
Q_INVOKABLE void setSocketOption (QAbstractSocket::SocketOption option, const QVariant &value)
 
Q_INVOKABLE void setTextModeEnabled (bool enabled)
 
Q_INVOKABLE qint64 size () const
 
Q_INVOKABLE qintptr socketDescriptor () const
 
Q_INVOKABLE QVariant socketOption (QAbstractSocket::SocketOption option)
 
Q_INVOKABLE QAbstractSocket::SocketType socketType () const
 
Q_INVOKABLE QAbstractSocket::SocketState state () const
 
Q_INVOKABLE QString toString () const
 
Q_INVOKABLE void ungetChar (char c)
 
Q_INVOKABLE bool waitForBytesWritten (int msecs=30000)
 
Q_INVOKABLE bool waitForConnected (int msecs=30000)
 
Q_INVOKABLE bool waitForDisconnected (int msecs=30000)
 
Q_INVOKABLE bool waitForReadyRead (int msecs=30000)
 
Q_INVOKABLE qint64 write (char data)
 
Q_INVOKABLE qint64 write (char data, qint64 maxSize)
 
Q_INVOKABLE qint64 write (const QByteArray &byteArray)
 

Constructor & Destructor Documentation

◆ QAbstractSocketProto()

QAbstractSocketProto::QAbstractSocketProto ( QObject parent)

Member Function Documentation

◆ abort()

void QAbstractSocketProto::abort ( )

◆ aboutToClose

void QIODeviceProto::aboutToClose ( )
signalinherited

◆ atEnd()

bool QAbstractSocketProto::atEnd ( ) const

◆ bind() [1/2]

bool QAbstractSocketProto::bind ( const QHostAddress &  address,
quint16  port = 0,
QAbstractSocket::BindMode  mode = QAbstractSocket::DefaultForPlatform 
)

◆ bind() [2/2]

bool QAbstractSocketProto::bind ( quint16  port = 0,
QAbstractSocket::BindMode  mode = QAbstractSocket::DefaultForPlatform 
)

◆ bytesAvailable()

qint64 QAbstractSocketProto::bytesAvailable ( ) const

◆ bytesToWrite()

qint64 QAbstractSocketProto::bytesToWrite ( ) const

◆ bytesWritten

void QIODeviceProto::bytesWritten ( qint64  bytes)
signalinherited

◆ canReadLine()

bool QAbstractSocketProto::canReadLine ( ) const

◆ close()

void QAbstractSocketProto::close ( )

◆ connected

void QAbstractSocketProto::connected ( )
signal

◆ connectToHost() [1/2]

void QAbstractSocketProto::connectToHost ( const QHostAddress &  address,
quint16  port,
QIODevice::OpenMode  openMode = QIODevice::ReadWrite 
)

◆ connectToHost() [2/2]

void QAbstractSocketProto::connectToHost ( const QString &  hostName,
quint16  port,
QIODevice::OpenMode  openMode = QIODevice::ReadWrite,
QAbstractSocket::NetworkLayerProtocol  protocol = QAbstractSocket::AnyIPProtocol 
)

◆ disconnected

void QAbstractSocketProto::disconnected ( )
signal

◆ disconnectFromHost()

void QAbstractSocketProto::disconnectFromHost ( )

◆ error() [1/2]

QAbstractSocket::SocketError QAbstractSocketProto::error ( ) const

◆ error [2/2]

void QAbstractSocketProto::error ( QAbstractSocket::SocketError  socketError)
signal

◆ errorString()

QString QIODeviceProto::errorString ( ) const
inherited

◆ flush()

bool QAbstractSocketProto::flush ( )

◆ getChar()

char QIODeviceProto::getChar ( )
inherited

◆ hostFound

void QAbstractSocketProto::hostFound ( )
signal

◆ isOpen()

bool QIODeviceProto::isOpen ( ) const
inherited

◆ isReadable()

bool QIODeviceProto::isReadable ( ) const
inherited

◆ isSequential()

bool QAbstractSocketProto::isSequential ( ) const

◆ isTextModeEnabled()

bool QIODeviceProto::isTextModeEnabled ( ) const
inherited

◆ isValid()

bool QAbstractSocketProto::isValid ( ) const

◆ isWritable()

bool QIODeviceProto::isWritable ( ) const
inherited

◆ localAddress()

QHostAddress QAbstractSocketProto::localAddress ( ) const

◆ localPort()

quint16 QAbstractSocketProto::localPort ( ) const

◆ open()

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

◆ openMode()

QIODevice::OpenMode QIODeviceProto::openMode ( ) const
inherited

◆ pauseMode()

QAbstractSocket::PauseModes QAbstractSocketProto::pauseMode ( ) const

◆ peek() [1/2]

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

◆ peek() [2/2]

QByteArray QIODeviceProto::peek ( qint64  maxSize)
inherited

◆ peerAddress()

QHostAddress QAbstractSocketProto::peerAddress ( ) const

◆ peerName()

QString QAbstractSocketProto::peerName ( ) const

◆ peerPort()

quint16 QAbstractSocketProto::peerPort ( ) const

◆ pos()

qint64 QIODeviceProto::pos ( ) const
inherited

◆ proxy()

QNetworkProxy QAbstractSocketProto::proxy ( ) const

◆ proxyAuthenticationRequired

void QAbstractSocketProto::proxyAuthenticationRequired ( const QNetworkProxy &  proxy,
QAuthenticator *  authenticator 
)
signal

◆ putChar()

bool QIODeviceProto::putChar ( char  c)
inherited

◆ read() [1/2]

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

◆ read() [2/2]

QByteArray QIODeviceProto::read ( qint64  maxSize)
inherited

◆ readAll()

QByteArray QIODeviceProto::readAll ( )
inherited

◆ readBufferSize()

qint64 QAbstractSocketProto::readBufferSize ( ) const

◆ readChannelFinished

void QIODeviceProto::readChannelFinished ( )
signalinherited

◆ readLine() [1/2]

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

◆ readLine() [2/2]

QByteArray QIODeviceProto::readLine ( qint64  maxSize = 0)
inherited

◆ readyRead

void QIODeviceProto::readyRead ( )
signalinherited

◆ reset()

bool QIODeviceProto::reset ( )
inherited

◆ resume()

void QAbstractSocketProto::resume ( )

◆ seek()

bool QIODeviceProto::seek ( qint64  pos)
inherited

◆ setPauseMode()

void QAbstractSocketProto::setPauseMode ( QAbstractSocket::PauseModes  pauseMode)

◆ setProxy()

void QAbstractSocketProto::setProxy ( const QNetworkProxy &  networkProxy)

◆ setReadBufferSize()

void QAbstractSocketProto::setReadBufferSize ( qint64  size)

◆ setSocketDescriptor()

bool QAbstractSocketProto::setSocketDescriptor ( qintptr  socketDescriptor,
QAbstractSocket::SocketState  socketState = QAbstractSocket::ConnectedState,
QIODevice::OpenMode  openMode = QIODevice::ReadWrite 
)

◆ setSocketOption()

void QAbstractSocketProto::setSocketOption ( QAbstractSocket::SocketOption  option,
const QVariant &  value 
)

◆ setTextModeEnabled()

void QIODeviceProto::setTextModeEnabled ( bool  enabled)
inherited

◆ size()

qint64 QIODeviceProto::size ( ) const
inherited

◆ socketDescriptor()

qintptr QAbstractSocketProto::socketDescriptor ( ) const

◆ socketOption()

QVariant QAbstractSocketProto::socketOption ( QAbstractSocket::SocketOption  option)

◆ socketType()

QAbstractSocket::SocketType QAbstractSocketProto::socketType ( ) const

◆ state()

QAbstractSocket::SocketState QAbstractSocketProto::state ( ) const

◆ stateChanged

void QAbstractSocketProto::stateChanged ( QAbstractSocket::SocketState  socketState)
signal

◆ toString()

QString QAbstractSocketProto::toString ( ) const

◆ ungetChar()

void QIODeviceProto::ungetChar ( char  c)
inherited

◆ waitForBytesWritten()

bool QAbstractSocketProto::waitForBytesWritten ( int  msecs = 30000)

◆ waitForConnected()

bool QAbstractSocketProto::waitForConnected ( int  msecs = 30000)

◆ waitForDisconnected()

bool QAbstractSocketProto::waitForDisconnected ( int  msecs = 30000)

◆ waitForReadyRead()

bool QAbstractSocketProto::waitForReadyRead ( int  msecs = 30000)

◆ write() [1/3]

qint64 QIODeviceProto::write ( char  data)
inherited

◆ write() [2/3]

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

◆ write() [3/3]

qint64 QIODeviceProto::write ( const QByteArray &  byteArray)
inherited

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

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