42 #ifndef QHTTPSOCKETENGINE_P_H 43 #define QHTTPSOCKETENGINE_P_H 56 #include "private/qabstractsocketengine_p.h" 59 #include "private/qauthenticator_p.h" 63 #if !defined(QT_NO_NETWORKPROXY) && !defined(QT_NO_HTTP) 91 bool connectInternal();
104 #ifndef QT_NO_UDPSOCKET 105 #ifndef QT_NO_NETWORKINTERFACE 112 #endif // QT_NO_NETWORKINTERFACE 120 #endif // QT_NO_UDPSOCKET 127 bool waitForRead(
int msecs = 30000,
bool *timedOut = 0);
128 bool waitForWrite(
int msecs = 30000,
bool *timedOut = 0);
130 bool checkRead,
bool checkWrite,
131 int msecs = 30000,
bool *timedOut = 0);
141 void slotSocketConnected();
142 void slotSocketDisconnected();
143 void slotSocketReadNotification();
144 void slotSocketBytesWritten();
149 void emitPendingReadNotification();
150 void emitPendingWriteNotification();
151 void emitPendingConnectionNotification();
154 void emitReadNotification();
155 void emitWriteNotification();
156 void emitConnectionNotification();
200 #endif // QHTTPSOCKETENGINE_H virtual bool isReadNotificationEnabled() const =0
virtual bool waitForRead(int msecs=30000, bool *timedOut=0)=0
virtual void setExceptionNotificationEnabled(bool enable)=0
virtual qint64 bytesToWrite() const =0
bool readNotificationActivated
#define QT_END_NAMESPACE
This macro expands to.
SocketType
This enum describes the transport layer protocol.
virtual int socketDescriptor() const =0
bool writeNotificationEnabled
virtual bool connectToHostByName(const QString &name, quint16 port)=0
QHttpSocketEngine::HttpState state
The QByteArray class provides an array of bytes.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
virtual bool bind(const QHostAddress &address, quint16 port)=0
NetworkLayerProtocol
This enum describes the network layer protocol values used in Qt.
The QString class provides a Unicode character string.
virtual int option(SocketOption option) const =0
virtual bool initialize(QAbstractSocket::SocketType type, QAbstractSocket::NetworkLayerProtocol protocol=QAbstractSocket::IPv4Protocol)=0
The QObject class is the base class of all Qt objects.
SocketState
This enum describes the different states in which a socket can be.
bool writeNotificationActivated
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual bool isWriteNotificationEnabled() const =0
virtual bool leaveMulticastGroup(const QHostAddress &groupAddress, const QNetworkInterface &iface)=0
virtual void setWriteNotificationEnabled(bool enable)=0
bool readNotificationEnabled
bool writeNotificationPending
SocketError
This enum describes the socket errors that can occur.
bool readNotificationPending
static const char * data(const QByteArray &arr)
The QTcpSocket class provides a TCP socket.
virtual bool joinMulticastGroup(const QHostAddress &groupAddress, const QNetworkInterface &iface)=0
virtual qint64 write(const char *data, qint64 len)=0
The QAuthenticator class provides an authentication object.
virtual bool hasPendingDatagrams() const =0
virtual QNetworkInterface multicastInterface() const =0
virtual qint64 readDatagram(char *data, qint64 maxlen, QHostAddress *addr=0, quint16 *port=0)=0
virtual bool isExceptionNotificationEnabled() const =0
bool connectionNotificationPending
#define Q_DECLARE_PUBLIC(Class)
virtual bool setMulticastInterface(const QNetworkInterface &iface)=0
QAuthenticator authenticator
#define Q_AUTOTEST_EXPORT
virtual bool waitForWrite(int msecs=30000, bool *timedOut=0)=0
bool exceptNotificationEnabled
virtual bool setOption(SocketOption option, int value)=0
virtual qint64 writeDatagram(const char *data, qint64 len, const QHostAddress &addr, quint16 port)=0
virtual qint64 read(char *data, qint64 maxlen)=0
#define Q_DECLARE_PRIVATE(Class)
virtual bool isValid() const =0
The QNetworkInterface class provides a listing of the host's IP addresses and network interfaces...
The QHostAddress class provides an IP address.
virtual void setReadNotificationEnabled(bool enable)=0
virtual bool connectToHost(const QHostAddress &address, quint16 port)=0
virtual bool waitForReadOrWrite(bool *readyToRead, bool *readyToWrite, bool checkRead, bool checkWrite, int msecs=30000, bool *timedOut=0)=0
virtual qint64 bytesAvailable() const =0
virtual qint64 pendingDatagramSize() const =0