Debian Codegraph @

examples/dbus/remotecontrolledcar/controller/controller.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4 #ifndef CONTROLLER_H
5 #define CONTROLLER_H
6
7 #include <QWidget>
8 #include <QPushButton>
9 #include <QLabel>
10
11 #include "car_interface.h"
12
13 class Controller : public QWidget
14 {
15 Q_OBJECT
16
17 public:
18 explicit Controller(QWidget *parent = nullptr);
19
20 protected:
21 void timerEvent(QTimerEvent *event) override;
22
23 private:
24 org::example::Examples::CarInterface *car;
25 QPushButton *accelerate;
26 QPushButton *decelerate;
27 QPushButton *left;
28 QPushButton *right;
29 QLabel *statusSymbol;
30 QLabel *status;
31 };
32
33 #endif
34