summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/can/canbusdeviceinfobox.h
blob: 9cf4d0329f959956b1524edba7daa2829bbbba11 (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
32
33
// Copyright (C) 2021 Andre Hartmann <aha_1980@gmx.de>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef CANBUSDEVICEINFOBOX_H
#define CANBUSDEVICEINFOBOX_H

#include <QGroupBox>

QT_BEGIN_NAMESPACE

class QCanBusDeviceInfo;

namespace Ui {
class CanBusDeviceInfoBox;
}

QT_END_NAMESPACE

class CanBusDeviceInfoBox : public QGroupBox
{
    Q_OBJECT

public:
    explicit CanBusDeviceInfoBox(QWidget *parent = nullptr);
    ~CanBusDeviceInfoBox();
    void clear();
    void setDeviceInfo(const QCanBusDeviceInfo &info);

private:
    Ui::CanBusDeviceInfoBox *m_ui = nullptr;
};

#endif // CANBUSDEVICEINFOBOX_H