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:
parent
a40379de1a
commit
492e710bdb
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user