4#ifndef QLOCALSOCKET_P_H
5#define QLOCALSOCKET_P_H
18#include <QtNetwork/private/qtnetworkglobal_p.h>
21#include "private/qiodevice_p.h"
27#if defined(QT_LOCALSOCKET_TCP)
29#elif defined(Q_OS_WIN)
30# include "private/qwindowspipereader_p.h"
31# include "private/qwindowspipewriter_p.h"
34# include "private/qabstractsocketengine_p.h"
44#if !defined(Q_OS_WIN) || defined(QT_LOCALSOCKET_TCP)
89#if defined(QT_LOCALSOCKET_TCP)
97#elif defined(Q_OS_WIN)
99 qint64 pipeWriterBytesToWrite()
const;
101 void _q_bytesWritten(
qint64 bytes);
102 void _q_pipeClosed();
104 void _q_writeFailed();
130#if defined(Q_OS_WIN) && !defined(QT_LOCALSOCKET_TCP)
131 bool emittedReadyRead;
132 bool emittedBytesWritten;
SocketState
This enum describes the different states in which a socket can be.
void setSocketError(SocketError socketError)
Sets the type of error that last occurred to socketError.
SocketState state() const
Returns the state of the socket.
SocketError
This enum describes the socket errors that can occur.
void setSocketState(SocketState state)
Sets the state of the socket to state.
SocketError error() const
Returns the type of error that last occurred.
void setErrorString(const QString &errorString)
Sets the human readable description of the last device error that occurred to str.
virtual qint64 writeData(const char *data, qint64 len)=0
Writes up to maxSize bytes from data to the device.
virtual qint64 readData(char *data, qint64 maxlen)=0
Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an...
static bool parseSockaddr(const sockaddr_un &addr, uint len, QString &fullServerName, QString &serverName, bool &abstractNamespace)
void _q_stateChanged(QAbstractSocket::SocketState newState)
void describeSocket(qintptr socketDescriptor)
QLocalUnixSocket unixSocket
void _q_abortConnectionAttempt()
void cancelDelayedConnect()
QLocalSocket::LocalSocketState state
void _q_errorOccurred(QAbstractSocket::SocketError newError)
void setErrorAndEmit(QLocalSocket::LocalSocketError, const QString &function)
QIODevice::OpenMode connectingOpenMode
void _q_connectToSocket()
QSocketNotifier * delayConnect
QString generateErrorString(QLocalSocket::LocalSocketError, const QString &function) const
The QLocalSocket class provides a local socket.
LocalSocketState
This enum describes the different states in which a socket can be.
LocalSocketError
The LocalServerError enumeration represents the errors that can occur.
void setErrorString(const QString &string)
void setSocketState(QAbstractSocket::SocketState state)
qint64 writeData(const char *data, qint64 maxSize) override
\reimp
void setSocketError(QAbstractSocket::SocketError error)
qint64 readData(char *data, qint64 maxSize) override
\reimp
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTcpSocket class provides a TCP socket.
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction function
DBusConnection const char DBusError * error
GLuint64 GLenum void * handle
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define Q_OBJECT_BINDABLE_PROPERTY(...)
#define QT_REQUIRE_CONFIG(feature)