summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/android/androidmagnetometer.h
blob: e4e0fcbdac85b5af2aa0b0f84d6c79b6daebaacc (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 ANDROIDMAGNETOMETER_H
#define ANDROIDMAGNETOMETER_H

#include <qmagnetometer.h>

#include "sensoreventqueue.h"

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

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

#endif // ANDROIDMAGNETOMETER_H