summaryrefslogtreecommitdiffstats
path: root/examples/protobuf/sensors/emulator/emulatorconsole.h
blob: 7a499e073fb594f32663afa3fbe6172231a0b169 (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
34
35
36
37
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef EMULATORCONSOLE_H
#define EMULATORCONSOLE_H

#include <QWidget>

namespace qt::examples::sensors {
class Coordinates;
class Temperature;
class WarningNotification;
} // namespace qt::examples::sensors

QT_BEGIN_NAMESPACE
namespace Ui {
class EmulatorConsole;
}
QT_END_NAMESPACE

class EmulatorConsole : public QWidget
{
    Q_OBJECT

public:
    explicit EmulatorConsole(QWidget *parent = nullptr);
    ~EmulatorConsole();

signals:
    void coordinatesUpdated(const qt::examples::sensors::Coordinates &);
    void temperatureUpdated(const qt::examples::sensors::Temperature &);
    void warning(const qt::examples::sensors::WarningNotification &);

private:
    Ui::EmulatorConsole *ui;
};
#endif // EMULATORCONSOLE_H