blob: 632164d2daed7a32672dce9928bc36473c52e97e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef EANDROIDAMBIENTLIGHTSENSOR_H
#define EANDROIDAMBIENTLIGHTSENSOR_H
#include <eandroidbasesensor.h>
#include <QtSensors/QAmbientLightReading>
class EAndroidAmbientLightSensor : public EAndroidBaseSensor
{
Q_OBJECT
public:
EAndroidAmbientLightSensor(int type, QSensor *sensor);
~EAndroidAmbientLightSensor();
void processEvent(sensors_event_t &event);
private:
QAmbientLightReading m_reading;
};
#endif // EANDROIDAMBIENTLIGHTSENSOR_H
|