45 #include "qsymbiansocketengine_p.h" 65 if (!socketHandlers())
68 socketHandlers()->prepend(
this);
73 if (!socketHandlers())
76 socketHandlers()->removeAll(
this);
81 , hasSetSocketError(false)
104 #ifndef QT_NO_NETWORKPROXY 111 for (
int i = 0; i < socketHandlers()->size(); i++) {
116 #ifndef QT_NO_NETWORKPROXY 123 return new QSymbianSocketEngine(parent);
132 for (
int i = 0; i < socketHandlers()->size(); i++) {
137 return new QSymbianSocketEngine(parent);
145 return d_func()->socketError;
150 return d_func()->socketErrorString;
162 d_func()->receiver = receiver;
168 receiver->readNotification();
174 receiver->writeNotification();
180 receiver->exceptionNotification();
186 receiver->connectionNotification();
189 #ifndef QT_NO_NETWORKPROXY 193 receiver->proxyAuthenticationRequired(proxy, authenticator);
200 return d_func()->socketState;
205 d_func()->socketState =
state;
210 return d_func()->socketType;
220 return d_func()->socketProtocol;
225 d_func()->socketProtocol =
protocol;
230 return d_func()->localAddress;
235 d_func()->localAddress = address;
240 return d_func()->localPort;
245 d_func()->localPort = port;
250 return d_func()->peerAddress;
255 d_func()->peerAddress = address;
260 return d_func()->peerPort;
265 d_func()->peerPort = port;
QNetworkProxy::ProxyType type() const
Returns the proxy type for this instance.
virtual ~QSocketEngineHandler()
#define QT_END_NAMESPACE
This macro expands to.
void setProtocol(QAbstractSocket::NetworkLayerProtocol protocol)
SocketType
This enum describes the transport layer protocol.
The QMutex class provides access serialization between threads.
static QAbstractSocketEngine * createSocketEngine(QAbstractSocket::SocketType socketType, const QNetworkProxy &, QObject *parent)
void setPeerAddress(const QHostAddress &address)
#define QT_TRANSLATE_NOOP(scope, x)
Marks the string literal sourceText for dynamic translation in the given context; i...
void setState(QAbstractSocket::SocketState state)
void setLocalPort(quint16 port)
NetworkLayerProtocol
This enum describes the network layer protocol values used in Qt.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
The QNativeSocketEngine class provides low level access to a socket.
SocketState
This enum describes the different states in which a socket can be.
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setError(QAbstractSocket::SocketError error, const QString &errorString) const
QHostAddress peerAddress() const
void setPeerPort(quint16 port)
void setLocalAddress(const QHostAddress &address)
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
SocketError
This enum describes the socket errors that can occur.
QAbstractSocketEngine(QObject *parent=0)
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
QHostAddress localAddress() const
void setReceiver(QAbstractSocketEngineReceiver *receiver)
void connectionNotification()
The QAuthenticator class provides an authentication object.
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
quint16 localPort() const
QAbstractSocket::SocketError error() const
QObject * parent() const
Returns a pointer to the parent object.
QAbstractSocket::NetworkLayerProtocol protocol() const
void setSocketType(QAbstractSocket::SocketType socketType)
QString errorString() const
void exceptionNotification()
The QHostAddress class provides an IP address.
QAbstractSocket::SocketState state() const
QAbstractSocket::SocketType socketType() const
The QAbstractSocket class provides the base functionality common to all socket types.
The QList class is a template class that provides lists.
QAbstractSocketEnginePrivate()