summaryrefslogtreecommitdiff
path: root/src/plugins/sensors/android/androidpressure.h
blob: 7121d73c8c99a98f8180d4258d59fc2f091b883a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2019 BogDan Vatra <bogdan@kde.org>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef ANDROIDPRESSURE_H
#define ANDROIDPRESSURE_H

#include <qpressuresensor.h>

#include "sensoreventqueue.h"

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

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

#endif // ANDROIDPRESSURE_H