diff options
Diffstat (limited to 'tests/manual/examples/ble/bleclient/heaterview.h')
-rw-r--r-- | tests/manual/examples/ble/bleclient/heaterview.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/manual/examples/ble/bleclient/heaterview.h b/tests/manual/examples/ble/bleclient/heaterview.h new file mode 100644 index 0000000..b67c249 --- /dev/null +++ b/tests/manual/examples/ble/bleclient/heaterview.h @@ -0,0 +1,40 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// Copyright (C) 2019 Ford Motor Company +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +#ifndef HEATERVIEW_H +#define HEATERVIEW_H + +#include <QtRemoteObjects/QRemoteObjectNode> +#include <QtWidgets/QWidget> + +#include <memory> + +class BLEIoDevice; +class HeaterReplica; + +QT_BEGIN_NAMESPACE +namespace Ui { +class HeaterView; +} +QT_END_NAMESPACE + +class HeaterView : public QWidget +{ + Q_OBJECT + +public: + explicit HeaterView(BLEIoDevice *ioDevice, QWidget *parent = nullptr); + ~HeaterView() override; + +signals: + void closeMe(); + void showMessage(const QString &message); + +private: + Ui::HeaterView *ui; + QRemoteObjectNode m_node; + std::unique_ptr<HeaterReplica> m_heater; +}; + +#endif |