blob: e7aaf4d89d6b79b06514c3b4e2b6ecc2ee57e111 (
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
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef WINRTORIENTATIONSENSOR_H
#define WINRTORIENTATIONSENSOR_H
#include <QtSensors/QSensorBackend>
#include <QtCore/QScopedPointer>
QT_USE_NAMESPACE
class WinRtOrientationSensorPrivate;
class WinRtOrientationSensor : public QSensorBackend
{
Q_OBJECT
public:
WinRtOrientationSensor(QSensor *sensor);
~WinRtOrientationSensor();
void start() override;
void stop() override;
private:
QScopedPointer<WinRtOrientationSensorPrivate> d_ptr;
Q_DECLARE_PRIVATE(WinRtOrientationSensor)
};
#endif // WINRTORIENTATIONSENSOR_H
|