7#include <QtNetwork/qtnetworkglobal.h>
8#include <QtCore/qiodevice.h>
9#include <QtNetwork/qabstractsocket.h>
11#ifndef QT_NO_DEBUG_STREAM
12#include <QtCore/qdebug.h>
25 Q_PROPERTY(SocketOptions socketOptions READ socketOptions WRITE setSocketOptions
26 BINDABLE bindableSocketOptions)
54 AbstractNamespaceOption = 0x01
71 virtual bool isSequential()
const override;
72 virtual qint64 bytesAvailable()
const override;
73 virtual qint64 bytesToWrite()
const override;
74 virtual bool canReadLine()
const override;
75 virtual bool open(OpenMode openMode = ReadWrite)
override;
76 virtual void close()
override;
77 LocalSocketError
error()
const;
80 qint64 readBufferSize()
const;
83 bool setSocketDescriptor(
qintptr socketDescriptor,
84 LocalSocketState socketState = ConnectedState,
85 OpenMode openMode = ReadWrite);
86 qintptr socketDescriptor()
const;
88 void setSocketOptions(SocketOptions
option);
89 SocketOptions socketOptions()
const;
90 QBindable<SocketOptions> bindableSocketOptions();
92 LocalSocketState
state()
const;
93 bool waitForBytesWritten(
int msecs = 30000)
override;
94 bool waitForConnected(
int msecs = 30000);
95 bool waitForDisconnected(
int msecs = 30000);
112#if defined(QT_LOCALSOCKET_TCP)
115#elif defined(Q_OS_WIN)
126#ifndef QT_NO_DEBUG_STREAM
SocketState
This enum describes the different states in which a socket can be.
SocketError
This enum describes the socket errors that can occur.
@ UnsupportedSocketOperationError
\inmodule QtCore \reentrant
The QLocalSocket class provides a local socket.
void connected()
This signal is emitted after connectToServer() has been called and a connection has been successfully...
void disconnected()
This signal is emitted when the socket has been disconnected.
LocalSocketState
This enum describes the different states in which a socket can be.
void stateChanged(QLocalSocket::LocalSocketState socketState)
This signal is emitted whenever QLocalSocket's state changes.
LocalSocketError
The LocalServerError enumeration represents the errors that can occur.
void errorOccurred(QLocalSocket::LocalSocketError socketError)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Q_NETWORK_EXPORT QDebug operator<<(QDebug, QLocalSocket::LocalSocketError)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QT_REQUIRE_CONFIG(feature)
file open(QIODevice::ReadOnly)
device waitForReadyRead(deadline)
void writeData(const QByteArray &data)
socket disconnectFromServer()
[0]
socket connectToServer("market")
[0]