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
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;
92 LocalSocketState
state()
const;
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
virtual bool open(QIODeviceBase::OpenMode mode)
Opens the device and sets its OpenMode to mode.
virtual bool isSequential() const
Returns true if this device is sequential; otherwise returns false.
virtual bool waitForBytesWritten(int msecs)
For buffered devices, this function waits until a payload of buffered written data has been written t...
virtual bool waitForReadyRead(int msecs)
Blocks until new data is available for reading and the readyRead() signal has been emitted,...
virtual qint64 bytesAvailable() const
Returns the number of bytes that are available for reading.
virtual qint64 skipData(qint64 maxSize)
virtual qint64 readLineData(char *data, qint64 maxlen)
Reads up to maxSize characters into data and returns the number of characters read.
virtual qint64 writeData(const char *data, qint64 len)=0
Writes up to maxSize bytes from data to the device.
virtual qint64 bytesToWrite() const
For buffered devices, this function returns the number of bytes waiting to be written.
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
virtual bool canReadLine() const
Returns true if a complete line of data can be read from the device; otherwise returns false.
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)
socket disconnectFromServer()
[0]
socket connectToServer("market")
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent