QLocalSocket Class Reference
#include <qlocalsocket.h>
Definition at line 58 of file qlocalsocket.h.
|
enum | LocalSocketError {
ConnectionRefusedError = QAbstractSocket::ConnectionRefusedError,
PeerClosedError = QAbstractSocket::RemoteHostClosedError,
ServerNotFoundError = QAbstractSocket::HostNotFoundError,
SocketAccessError = QAbstractSocket::SocketAccessError,
SocketResourceError = QAbstractSocket::SocketResourceError,
SocketTimeoutError = QAbstractSocket::SocketTimeoutError,
DatagramTooLargeError = QAbstractSocket::DatagramTooLargeError,
ConnectionError = QAbstractSocket::NetworkError,
UnsupportedSocketOperationError = QAbstractSocket::UnsupportedSocketOperationError,
UnknownSocketError = QAbstractSocket::UnknownSocketError
} |
|
enum | LocalSocketState { UnconnectedState = QAbstractSocket::UnconnectedState,
ConnectingState = QAbstractSocket::ConnectingState,
ConnectedState = QAbstractSocket::ConnectedState,
ClosingState = QAbstractSocket::ClosingState
} |
|
enum | OpenModeFlag {
NotOpen = 0x0000,
ReadOnly = 0x0001,
WriteOnly = 0x0002,
ReadWrite = ReadOnly | WriteOnly,
Append = 0x0004,
Truncate = 0x0008,
Text = 0x0010,
Unbuffered = 0x0020
} |
|
|
| QLocalSocket (QObject *parent=0) |
|
| ~QLocalSocket () |
|
void | connectToServer (const QString &name, OpenMode openMode=ReadWrite) |
|
void | disconnectFromServer () |
|
QString | serverName () const |
|
QString | fullServerName () const |
|
void | abort () |
|
virtual bool | isSequential () const |
|
virtual qint64 | bytesAvailable () const |
|
virtual qint64 | bytesToWrite () const |
|
virtual bool | canReadLine () const |
|
virtual void | close () |
|
LocalSocketError | error () const |
|
bool | flush () |
|
bool | isValid () const |
|
qint64 | readBufferSize () const |
|
void | setReadBufferSize (qint64 size) |
|
bool | setSocketDescriptor (quintptr socketDescriptor, LocalSocketState socketState=ConnectedState, OpenMode openMode=ReadWrite) |
|
quintptr | socketDescriptor () const |
|
LocalSocketState | state () const |
|
bool | waitForBytesWritten (int msecs=30000) |
|
bool | waitForConnected (int msecs=30000) |
|
bool | waitForDisconnected (int msecs=30000) |
|
bool | waitForReadyRead (int msecs=30000) |
|
| QIODevice () |
|
| QIODevice (QObject *parent) |
|
virtual | ~QIODevice () |
|
OpenMode | openMode () const |
|
void | setTextModeEnabled (bool enabled) |
|
bool | isTextModeEnabled () const |
|
bool | isOpen () const |
|
bool | isReadable () const |
|
bool | isWritable () const |
|
virtual bool | open (OpenMode mode) |
|
virtual qint64 | pos () const |
|
virtual qint64 | size () const |
|
virtual bool | seek (qint64 pos) |
|
virtual bool | atEnd () const |
|
virtual bool | reset () |
|
qint64 | read (char *data, qint64 maxlen) |
|
QByteArray | read (qint64 maxlen) |
|
QByteArray | readAll () |
|
qint64 | readLine (char *data, qint64 maxlen) |
|
QByteArray | readLine (qint64 maxlen=0) |
|
qint64 | write (const char *data, qint64 len) |
|
qint64 | write (const char *data) |
|
qint64 | write (const QByteArray &data) |
|
qint64 | peek (char *data, qint64 maxlen) |
|
QByteArray | peek (qint64 maxlen) |
|
void | ungetChar (char c) |
|
bool | putChar (char c) |
|
bool | getChar (char *c) |
|
QString | errorString () const |
|
Q_INVOKABLE | QObject (QObject *parent=0) |
|
virtual | ~QObject () |
|
virtual bool | event (QEvent *) |
|
virtual bool | eventFilter (QObject *, QEvent *) |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const |
|
bool | signalsBlocked () const |
|
bool | blockSignals (bool b) |
|
QThread * | thread () const |
|
void | moveToThread (QThread *thread) |
|
int | startTimer (int interval) |
|
void | killTimer (int id) |
|
template<typename T > |
T | findChild (const QString &aName=QString()) const |
|
template<typename T > |
QList< T > | findChildren (const QString &aName=QString()) const |
|
template<typename T > |
QList< T > | findChildren (const QRegExp &re) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *) |
|
void | installEventFilter (QObject *) |
|
void | removeEventFilter (QObject *) |
|
bool | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
|
bool | disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) |
|
bool | disconnect (const QObject *receiver, const char *member=0) |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
void | setUserData (uint id, QObjectUserData *data) |
|
QObjectUserData * | userData (uint id) const |
|
QObject * | parent () const |
|
bool | inherits (const char *classname) const |
|
|
void | deleteLater () |
|
static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
|
static bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
|
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
|
static uint | registerUserData () |
|
QScopedPointer< QObjectData > | d_ptr |
|
static const QMetaObject | staticQtMetaObject |
|
QString | objectName |
|
Enumerator |
---|
ConnectionRefusedError |
|
PeerClosedError |
|
ServerNotFoundError |
|
SocketAccessError |
|
SocketResourceError |
|
SocketTimeoutError |
|
DatagramTooLargeError |
|
ConnectionError |
|
UnsupportedSocketOperationError |
|
UnknownSocketError |
|
Definition at line 64 of file qlocalsocket.h.
Enumerator |
---|
UnconnectedState |
|
ConnectingState |
|
ConnectedState |
|
ClosingState |
|
Definition at line 78 of file qlocalsocket.h.
void disconnectFromServer |
( |
| ) |
|
virtual bool isSequential |
( |
| ) |
const |
|
virtual |
virtual qint64 bytesAvailable |
( |
| ) |
const |
|
virtual |
virtual qint64 bytesToWrite |
( |
| ) |
const |
|
virtual |
virtual bool canReadLine |
( |
| ) |
const |
|
virtual |
qint64 readBufferSize |
( |
| ) |
const |
quintptr socketDescriptor |
( |
| ) |
const |
bool waitForBytesWritten |
( |
int |
msecs = 30000 | ) |
|
|
virtual |
bool waitForConnected |
( |
int |
msecs = 30000 | ) |
|
bool waitForDisconnected |
( |
int |
msecs = 30000 | ) |
|
bool waitForReadyRead |
( |
int |
msecs = 30000 | ) |
|
|
virtual |
The documentation for this class was generated from the following file: