1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QSENSORPLUGIN_H |
5 | #define QSENSORPLUGIN_H |
6 | |
7 | #include <QtSensors/qsensorsglobal.h> |
8 | |
9 | #include <QtCore/qplugin.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class Q_SENSORS_EXPORT QSensorPluginInterface |
14 | { |
15 | public: |
16 | virtual void registerSensors() = 0; |
17 | protected: |
18 | virtual ~QSensorPluginInterface(); |
19 | }; |
20 | |
21 | class Q_SENSORS_EXPORT QSensorChangesInterface |
22 | { |
23 | public: |
24 | virtual void sensorsChanged() = 0; |
25 | protected: |
26 | virtual ~QSensorChangesInterface(); |
27 | }; |
28 | |
29 | Q_DECLARE_INTERFACE(QSensorPluginInterface, "com.qt-project.Qt.QSensorPluginInterface/1.0" ) |
30 | Q_DECLARE_INTERFACE(QSensorChangesInterface, "com.qt-project.Qt.QSensorChangesInterface/5.0" ) |
31 | |
32 | QT_END_NAMESPACE |
33 | |
34 | #endif |
35 | |
36 | |