summaryrefslogtreecommitdiffstats
path: root/src/sensors/qsensorplugin.h
blob: 3c8f4847d4b8fb9ce9d1c5bdd3e03add9790b58f (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
29
30
31
32
33
34
35
// Copyright (C) 2016 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 QSENSORPLUGIN_H
#define QSENSORPLUGIN_H

#include <QtSensors/qsensorsglobal.h>

#include <QtCore/qplugin.h>

QT_BEGIN_NAMESPACE

class Q_SENSORS_EXPORT QSensorPluginInterface
{
public:
    virtual void registerSensors() = 0;
protected:
    virtual ~QSensorPluginInterface();
};

class Q_SENSORS_EXPORT QSensorChangesInterface
{
public:
    virtual void sensorsChanged() = 0;
protected:
    virtual ~QSensorChangesInterface();
};

Q_DECLARE_INTERFACE(QSensorPluginInterface, "com.qt-project.Qt.QSensorPluginInterface/1.0")
Q_DECLARE_INTERFACE(QSensorChangesInterface, "com.qt-project.Qt.QSensorChangesInterface/5.0")

QT_END_NAMESPACE

#endif