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
11QT_BEGIN_NAMESPACE
12
13class Q_SENSORS_EXPORT QSensorPluginInterface
14{
15public:
16 virtual void registerSensors() = 0;
17protected:
18 virtual ~QSensorPluginInterface();
19};
20
21class Q_SENSORS_EXPORT QSensorChangesInterface
22{
23public:
24 virtual void sensorsChanged() = 0;
25protected:
26 virtual ~QSensorChangesInterface();
27};
28
29Q_DECLARE_INTERFACE(QSensorPluginInterface, "com.qt-project.Qt.QSensorPluginInterface/1.0")
30Q_DECLARE_INTERFACE(QSensorChangesInterface, "com.qt-project.Qt.QSensorChangesInterface/5.0")
31
32QT_END_NAMESPACE
33
34#endif
35
36

source code of qtsensors/src/sensors/qsensorplugin.h