summaryrefslogtreecommitdiffstats
path: root/src/serialbus/qmodbustcpclient.h
blob: 2b0f374f98dc5c854fda005f6bdf2be786515f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QMODBUSTCPCLIENT_H
#define QMODBUSTCPCLIENT_H

#include <QtSerialBus/qmodbusclient.h>

QT_BEGIN_NAMESPACE

class QModbusTcpClientPrivate;

class Q_SERIALBUS_EXPORT QModbusTcpClient : public QModbusClient
{
    Q_OBJECT
    Q_DECLARE_PRIVATE(QModbusTcpClient)

public:
    explicit QModbusTcpClient(QObject *parent = nullptr);
    ~QModbusTcpClient();

protected:
    QModbusTcpClient(QModbusTcpClientPrivate &dd, QObject *parent = nullptr);

    bool open() override;
    void close() override;
};

QT_END_NAMESPACE

#endif // QMODBUSTCPCLIENT_H