API reference - Class QLocalSocket

Notation used in Ruby API documentation

Description: Binding of QLocalSocket

Class hierarchy: QLocalSocket » QIODevice » QObject

Public constructors

new QLocalSocketnew(QObject ptr parent = 0)Constructor QLocalSocket::QLocalSocket(QObject *parent)

Public methods

voidabortMethod void QLocalSocket::abort()
[const]long longbytesAvailableMethod qint64 QLocalSocket::bytesAvailable()
[const]long longbytesToWriteMethod qint64 QLocalSocket::bytesToWrite()
[const]boolcanReadLineMethod bool QLocalSocket::canReadLine()
voidcloseMethod void QLocalSocket::close()
voidconnectToServer(string name,
const QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)
Method void QLocalSocket::connectToServer(const QString &name, QFlags<QIODevice::OpenModeFlag> openMode)
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
voiddisconnectFromServerMethod void QLocalSocket::disconnectFromServer()
[const]QLocalSocket_LocalSocketErrorerrorMethod QLocalSocket::LocalSocketError QLocalSocket::error()
boolflushMethod bool QLocalSocket::flush()
[const]stringfullServerNameMethod QString QLocalSocket::fullServerName()
[const]boolisSequentialMethod bool QLocalSocket::isSequential()
[const]boolisSequential?Method bool QLocalSocket::isSequential()
[const]boolisValidMethod bool QLocalSocket::isValid()
[const]boolisValid?Method bool QLocalSocket::isValid()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]long longreadBufferSizeMethod qint64 QLocalSocket::readBufferSize()
voidreadBufferSize=(long long size)Method void QLocalSocket::setReadBufferSize(qint64 size)
[const]stringserverNameMethod QString QLocalSocket::serverName()
voidsetReadBufferSize(long long size)Method void QLocalSocket::setReadBufferSize(qint64 size)
boolsetSocketDescriptor(unsigned int socketDescriptor,
const QLocalSocket_LocalSocketState socketState = QLocalSocket::ConnectedState,
const QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)
Method bool QLocalSocket::setSocketDescriptor(quintptr socketDescriptor, QLocalSocket::LocalSocketState socketState, QFlags<QIODevice::OpenModeFlag> openMode)
[const]unsigned intsocketDescriptorMethod quintptr QLocalSocket::socketDescriptor()
[const]QLocalSocket_LocalSocketStatestateMethod QLocalSocket::LocalSocketState QLocalSocket::state()
boolwaitForBytesWritten(int msecs = 30000)Method bool QLocalSocket::waitForBytesWritten(int msecs)
boolwaitForConnected(int msecs = 30000)Method bool QLocalSocket::waitForConnected(int msecs)
boolwaitForDisconnected(int msecs = 30000)Method bool QLocalSocket::waitForDisconnected(int msecs)
boolwaitForReadyRead(int msecs = 30000)Method bool QLocalSocket::waitForReadyRead(int msecs)

Public static methods and constants

QLocalSocket_LocalSocketStateClosingStateEnum constant QLocalSocket::ClosingState
QLocalSocket_LocalSocketStateConnectedStateEnum constant QLocalSocket::ConnectedState
QLocalSocket_LocalSocketStateConnectingStateEnum constant QLocalSocket::ConnectingState
QLocalSocket_LocalSocketErrorConnectionErrorEnum constant QLocalSocket::ConnectionError
QLocalSocket_LocalSocketErrorConnectionRefusedErrorEnum constant QLocalSocket::ConnectionRefusedError
QLocalSocket_LocalSocketErrorDatagramTooLargeErrorEnum constant QLocalSocket::DatagramTooLargeError
QLocalSocket_LocalSocketErrorPeerClosedErrorEnum constant QLocalSocket::PeerClosedError
QLocalSocket_LocalSocketErrorServerNotFoundErrorEnum constant QLocalSocket::ServerNotFoundError
QLocalSocket_LocalSocketErrorSocketAccessErrorEnum constant QLocalSocket::SocketAccessError
QLocalSocket_LocalSocketErrorSocketResourceErrorEnum constant QLocalSocket::SocketResourceError
QLocalSocket_LocalSocketErrorSocketTimeoutErrorEnum constant QLocalSocket::SocketTimeoutError
QLocalSocket_LocalSocketStateUnconnectedStateEnum constant QLocalSocket::UnconnectedState
QLocalSocket_LocalSocketErrorUnknownSocketErrorEnum constant QLocalSocket::UnknownSocketError
QLocalSocket_LocalSocketErrorUnsupportedSocketOperationErrorEnum constant QLocalSocket::UnsupportedSocketOperationError
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = 0)
Static method QString QLocalSocket::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QLocalSocket::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QLocalSocket::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QLocalSocket::trUtf8(const char *s, const char *c, int n)

Detailed description

[static] QLocalSocket_LocalSocketState ClosingState

Description: Enum constant QLocalSocket::ClosingState

[static] QLocalSocket_LocalSocketState ConnectedState

Description: Enum constant QLocalSocket::ConnectedState

[static] QLocalSocket_LocalSocketState ConnectingState

Description: Enum constant QLocalSocket::ConnectingState

[static] QLocalSocket_LocalSocketError ConnectionError

Description: Enum constant QLocalSocket::ConnectionError

[static] QLocalSocket_LocalSocketError ConnectionRefusedError

Description: Enum constant QLocalSocket::ConnectionRefusedError

[static] QLocalSocket_LocalSocketError DatagramTooLargeError

Description: Enum constant QLocalSocket::DatagramTooLargeError

[static] QLocalSocket_LocalSocketError PeerClosedError

Description: Enum constant QLocalSocket::PeerClosedError

[static] QLocalSocket_LocalSocketError ServerNotFoundError

Description: Enum constant QLocalSocket::ServerNotFoundError

[static] QLocalSocket_LocalSocketError SocketAccessError

Description: Enum constant QLocalSocket::SocketAccessError

[static] QLocalSocket_LocalSocketError SocketResourceError

Description: Enum constant QLocalSocket::SocketResourceError

[static] QLocalSocket_LocalSocketError SocketTimeoutError

Description: Enum constant QLocalSocket::SocketTimeoutError

[static] QLocalSocket_LocalSocketState UnconnectedState

Description: Enum constant QLocalSocket::UnconnectedState

[static] QLocalSocket_LocalSocketError UnknownSocketError

Description: Enum constant QLocalSocket::UnknownSocketError

[static] QLocalSocket_LocalSocketError UnsupportedSocketOperationError

Description: Enum constant QLocalSocket::UnsupportedSocketOperationError

void abort

Description: Method void QLocalSocket::abort()

[const] long long bytesAvailable

Description: Method qint64 QLocalSocket::bytesAvailable()

This is a reimplementation of QIODevice::bytesAvailable

[const] long long bytesToWrite

Description: Method qint64 QLocalSocket::bytesToWrite()

This is a reimplementation of QIODevice::bytesToWrite

[const] bool canReadLine

Description: Method bool QLocalSocket::canReadLine()

This is a reimplementation of QIODevice::canReadLine

void close

Description: Method void QLocalSocket::close()

This is a reimplementation of QIODevice::close

void connectToServer(string name,const QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)

Description: Method void QLocalSocket::connectToServer(const QString &name, QFlags<QIODevice::OpenModeFlag> openMode)

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

void disconnectFromServer

Description: Method void QLocalSocket::disconnectFromServer()

[const] QLocalSocket_LocalSocketError error

Description: Method QLocalSocket::LocalSocketError QLocalSocket::error()

bool flush

Description: Method bool QLocalSocket::flush()

[const] string fullServerName

Description: Method QString QLocalSocket::fullServerName()

[const] bool isSequential

Description: Method bool QLocalSocket::isSequential()

This is a reimplementation of QIODevice::isSequential

[const] bool isSequential?

Description: Method bool QLocalSocket::isSequential()

This is a reimplementation of QIODevice::isSequential

[const] bool isValid

Description: Method bool QLocalSocket::isValid()

[const] bool isValid?

Description: Method bool QLocalSocket::isValid()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[static] new QLocalSocket new(QObject ptr parent = 0)

Description: Constructor QLocalSocket::QLocalSocket(QObject *parent)

This method creates an object of class QLocalSocket.

[const] long long readBufferSize

Description: Method qint64 QLocalSocket::readBufferSize()

void readBufferSize=(long long size)

Description: Method void QLocalSocket::setReadBufferSize(qint64 size)

[const] string serverName

Description: Method QString QLocalSocket::serverName()

void setReadBufferSize(long long size)

Description: Method void QLocalSocket::setReadBufferSize(qint64 size)

bool setSocketDescriptor(unsigned int socketDescriptor,const QLocalSocket_LocalSocketState socketState = QLocalSocket::ConnectedState,const QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)

Description: Method bool QLocalSocket::setSocketDescriptor(quintptr socketDescriptor, QLocalSocket::LocalSocketState socketState, QFlags<QIODevice::OpenModeFlag> openMode)

[const] unsigned int socketDescriptor

Description: Method quintptr QLocalSocket::socketDescriptor()

[const] QLocalSocket_LocalSocketState state

Description: Method QLocalSocket::LocalSocketState QLocalSocket::state()

[static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

[static] string tr(string s,string c = 0)

Description: Static method QString QLocalSocket::tr(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string tr(string s,string c,int n)

Description: Static method QString QLocalSocket::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c = 0)

Description: Static method QString QLocalSocket::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c,int n)

Description: Static method QString QLocalSocket::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

bool waitForBytesWritten(int msecs = 30000)

Description: Method bool QLocalSocket::waitForBytesWritten(int msecs)

This is a reimplementation of QIODevice::waitForBytesWritten

bool waitForConnected(int msecs = 30000)

Description: Method bool QLocalSocket::waitForConnected(int msecs)

bool waitForDisconnected(int msecs = 30000)

Description: Method bool QLocalSocket::waitForDisconnected(int msecs)

bool waitForReadyRead(int msecs = 30000)

Description: Method bool QLocalSocket::waitForReadyRead(int msecs)

This is a reimplementation of QIODevice::waitForReadyRead