From 4eff9a96845e3e87b12ea036bb5d32cbc05fd47a Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Mon, 2 Sep 2013 08:51:10 +0200 Subject: Introducing eAndroid sensor plugin Change-Id: I8d0bad4ca759cf6d4f6f1f0ef67e6251b3b0e42f Reviewed-by: Eirik Aavitsland --- .../sensors/eandroid/eandroidrotationsensor.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/plugins/sensors/eandroid/eandroidrotationsensor.h (limited to 'src/plugins/sensors/eandroid/eandroidrotationsensor.h') diff --git a/src/plugins/sensors/eandroid/eandroidrotationsensor.h b/src/plugins/sensors/eandroid/eandroidrotationsensor.h new file mode 100644 index 0000000..6139001 --- /dev/null +++ b/src/plugins/sensors/eandroid/eandroidrotationsensor.h @@ -0,0 +1,20 @@ +#ifndef EANDROIDROTATIONSENSOR_H +#define EANDROIDROTATIONSENSOR_H + +#include + +#include + +class EAndroidRotationSensor : public EAndroidBaseSensor +{ + Q_OBJECT +public: + EAndroidRotationSensor(int type, QSensor *sensor); + ~EAndroidRotationSensor(); + void processEvent(sensors_event_t &event); + +private: + QRotationReading m_reading; +}; + +#endif // EANDROIDROTATIONSENSOR_H -- cgit v1.2.3