summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/android/androidproximity.h
blob: 215292e846d50f42e37d8cc1dcc3ad657c93f59f (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
// Copyright (C) 2016 BogDan Vatra <bogdan@kde.org>
// 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 ANDROIDPROXIMITY_H
#define ANDROIDPROXIMITY_H
#include <qproximitysensor.h>

#include "sensoreventqueue.h"

class AndroidProximity : public SensorEventQueue<QProximityReading>
{
public:
    AndroidProximity(int type, QSensor *sensor, QObject *parent = nullptr);

protected:
    // SensorEventQueue interface
    void dataReceived(const ASensorEvent &event) override;

private:
    qreal m_maximumRange;
};

#endif // ANDROIDPROXIMITY_H