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 <rich@kde.org>
This commit is contained in:
Alex Trotsenko 2015-04-20 09:07:36 +03:00
parent a40379de1a
commit 492e710bdb
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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)