diff options
author | Alex Trotsenko <[email protected]> | 2015-04-20 09:07:36 +0300 |
---|---|---|
committer | Alex Trotsenko <[email protected]> | 2015-04-23 13:37:44 +0000 |
commit | 492e710bdb39a9c642e5d38000774bb06bfe38ca (patch) | |
tree | a9498750d3ee2189d1ec57f7fb9942b2a32fa976 | |
parent | a40379de1a631363bd871dab1d4897b041062df5 (diff) |
QTcpSocket: add an internal c'tor
This allows further QTcpSocket inheritance in library. Using of this
c'tor is applicable to different socket types that makes them consistent
with existing TCP socket API.
Change-Id: Iafa25c365b88f52d8a3e816a296ee888ceaeb16b
Reviewed-by: Richard J. Moore <[email protected]>
-rw-r--r-- | src/network/socket/qtcpsocket.cpp | 9 | ||||
-rw-r--r-- | src/network/socket/qtcpsocket.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/network/socket/qtcpsocket.cpp b/src/network/socket/qtcpsocket.cpp index b6072b29096..13865fbc9c5 100644 --- a/src/network/socket/qtcpsocket.cpp +++ b/src/network/socket/qtcpsocket.cpp @@ -103,4 +103,13 @@ QTcpSocket::QTcpSocket(QTcpSocketPrivate &dd, QObject *parent) d_func()->isBuffered = true; } +/*! + \internal +*/ +QTcpSocket::QTcpSocket(QAbstractSocket::SocketType socketType, + QTcpSocketPrivate &dd, QObject *parent) + : QAbstractSocket(socketType, dd, parent) +{ +} + QT_END_NAMESPACE diff --git a/src/network/socket/qtcpsocket.h b/src/network/socket/qtcpsocket.h index 3449beeceb0..bf5370c9762 100644 --- a/src/network/socket/qtcpsocket.h +++ b/src/network/socket/qtcpsocket.h @@ -51,6 +51,8 @@ public: protected: QTcpSocket(QTcpSocketPrivate &dd, QObject *parent = 0); + QTcpSocket(QAbstractSocket::SocketType socketType, QTcpSocketPrivate &dd, + QObject *parent = 0); private: Q_DISABLE_COPY(QTcpSocket) |