Changeset View
Changeset View
Standalone View
Standalone View
common/orientation_sensor.h
Show All 13 Lines | |||||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | *********************************************************************/ | 16 | *********************************************************************/ | ||
17 | #pragma once | 17 | #pragma once | ||
18 | 18 | | |||
19 | #include <QObject> | 19 | #include <QObject> | ||
20 | #include <QOrientationReading> | 20 | #include <QOrientationReading> | ||
21 | 21 | | |||
22 | class OrientationSensor : public QObject | 22 | class OrientationSensor final : public QObject | ||
23 | { | 23 | { | ||
24 | Q_OBJECT | 24 | Q_OBJECT | ||
25 | public: | 25 | public: | ||
26 | explicit OrientationSensor(QObject *parent = nullptr); | 26 | explicit OrientationSensor(QObject *parent = nullptr); | ||
27 | ~OrientationSensor() override final; | 27 | ~OrientationSensor() override final; | ||
28 | 28 | | |||
29 | QOrientationReading::Orientation value() const; | 29 | QOrientationReading::Orientation value() const; | ||
30 | bool available() const; | 30 | bool available() const; | ||
Show All 17 Lines |