File: heaterview.h

package info (click to toggle)
qt6-remoteobjects 6.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,832 kB
  • sloc: cpp: 20,582; sh: 29; makefile: 23
file content (40 lines) | stat: -rw-r--r-- 760 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
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