/src/qtbase/src/network/socket/qtcpsocket.h
Line | Count | Source |
1 | | // Copyright (C) 2016 The Qt Company Ltd. |
2 | | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | | // Qt-Security score:significant reason:default |
4 | | |
5 | | #ifndef QTCPSOCKET_H |
6 | | #define QTCPSOCKET_H |
7 | | |
8 | | #include <QtNetwork/qtnetworkglobal.h> |
9 | | #include <QtNetwork/qabstractsocket.h> |
10 | | #include <QtNetwork/qhostaddress.h> |
11 | | #include <QtCore/qvariant.h> |
12 | | |
13 | | QT_BEGIN_NAMESPACE |
14 | | |
15 | | |
16 | | class QTcpSocketPrivate; |
17 | | |
18 | | class Q_NETWORK_EXPORT QTcpSocket : public QAbstractSocket |
19 | | { |
20 | 0 | Q_OBJECT |
21 | 0 | public: |
22 | 0 | explicit QTcpSocket(QObject *parent = nullptr); |
23 | 0 | virtual ~QTcpSocket(); |
24 | 0 |
|
25 | 0 | #if QT_VERSION < QT_VERSION_CHECK(7,0,0) && !defined(Q_QDOC) |
26 | 0 | // ### Qt7: move into QAbstractSocket |
27 | 0 | using QAbstractSocket::bind; |
28 | 0 | bool bind(QHostAddress::SpecialAddress addr, quint16 port = 0, BindMode mode = DefaultForPlatform) |
29 | 0 | { return bind(QHostAddress(addr), port, mode); } |
30 | | #endif |
31 | | |
32 | | protected: |
33 | | QTcpSocket(QTcpSocketPrivate &dd, QObject *parent = nullptr); |
34 | | QTcpSocket(QAbstractSocket::SocketType socketType, QTcpSocketPrivate &dd, |
35 | | QObject *parent = nullptr); |
36 | | |
37 | | private: |
38 | | Q_DISABLE_COPY_MOVE(QTcpSocket) |
39 | | Q_DECLARE_PRIVATE(QTcpSocket) Unexecuted instantiation: QTcpSocket::d_func() Unexecuted instantiation: QTcpSocket::d_func() const |
40 | | }; |
41 | | |
42 | | QT_END_NAMESPACE |
43 | | |
44 | | #endif // QTCPSOCKET_H |