1 | // Copyright (C) 2017 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 | |
4 | #ifndef QMODBUSTCPCLIENT_H |
5 | #define QMODBUSTCPCLIENT_H |
6 | |
7 | #include <QtSerialBus/qmodbusclient.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | class QModbusTcpClientPrivate; |
12 | |
13 | class Q_SERIALBUS_EXPORT QModbusTcpClient : public QModbusClient |
14 | { |
15 | Q_OBJECT |
16 | Q_DECLARE_PRIVATE(QModbusTcpClient) |
17 | |
18 | public: |
19 | explicit QModbusTcpClient(QObject *parent = nullptr); |
20 | ~QModbusTcpClient(); |
21 | |
22 | protected: |
23 | QModbusTcpClient(QModbusTcpClientPrivate &dd, QObject *parent = nullptr); |
24 | |
25 | bool open() override; |
26 | void close() override; |
27 | }; |
28 | |
29 | QT_END_NAMESPACE |
30 | |
31 | #endif // QMODBUSTCPCLIENT_H |
32 |