diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-12-07 16:07:19 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-12-07 16:15:32 (GMT) |
commit | f16b745ca427e75bc045076f5e14742a2a2c713a (patch) | |
tree | a58994fd2bde6f122ba6cb80acc938a0956ff3a9 | |
parent | a0528585d02440b37fb93f37e3d15ce2356d2541 (diff) | |
download | Qt-f16b745ca427e75bc045076f5e14742a2a2c713a.zip Qt-f16b745ca427e75bc045076f5e14742a2a2c713a.tar.gz Qt-f16b745ca427e75bc045076f5e14742a2a2c713a.tar.bz2 |
Create QSymbianSocketEngine when requested
Reviewed-by: Shane Kearns
-rw-r--r-- | src/network/socket/qabstractsocketengine.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/socket/qabstractsocketengine.cpp b/src/network/socket/qabstractsocketengine.cpp index 79eed8c..1b2a1f4 100644 --- a/src/network/socket/qabstractsocketengine.cpp +++ b/src/network/socket/qabstractsocketengine.cpp @@ -113,7 +113,11 @@ QAbstractSocketEngine *QAbstractSocketEngine::createSocketEngine(QAbstractSocket return 0; #endif +#ifdef Q_OS_SYMBIAN + return new QSymbianSocketEngine(parent); +#else return new QNativeSocketEngine(parent); +#endif } QAbstractSocketEngine *QAbstractSocketEngine::createSocketEngine(int socketDescripter, QObject *parent) @@ -123,7 +127,11 @@ QAbstractSocketEngine *QAbstractSocketEngine::createSocketEngine(int socketDescr if (QAbstractSocketEngine *ret = socketHandlers()->at(i)->createSocketEngine(socketDescripter, parent)) return ret; } +#ifdef Q_OS_SYMBIAN + return new QSymbianSocketEngine(parent); +#else return new QNativeSocketEngine(parent); +#endif } QAbstractSocket::SocketError QAbstractSocketEngine::error() const |