sensorfw: adaptors/humidityadaptor/humidityadaptor.h Source File

sensorfw

humidityadaptor.h
Go to the documentation of this file.
1
25 #ifndef HUMIDITYADAPTOR_H
26 #define HUMIDITYADAPTOR_H
27
28 #include "inputdevadaptor.h"
29 #include "deviceadaptorringbuffer.h"
30 #include "datatypes/orientationdata.h"
31 #include <QTime>
32
33 class HumidityAdaptor : public InputDevAdaptor
34 {
35 Q_OBJECT
36 public:
41 static DeviceAdaptor* factoryMethod(const QString& id)
42 {
43 return new HumidityAdaptor(id);
44 }
45
46 virtual bool startSensor();
47
48 virtual void stopSensor();
49
50 virtual bool standby();
51
52 virtual bool resume();
53
54 protected:
59 HumidityAdaptor(const QString& id);
60 ~HumidityAdaptor();
61
65 virtual unsigned int evaluateIntervalRequests(int& sessionId) const;
66
67 private:
68 DeviceAdaptorRingBuffer<TimedUnsigned>* humidityBuffer_;
69
70 unsigned humidityValue_;
71
72 void interpretEvent(int src, struct input_event *ev);
73 void commitOutput(struct input_event *ev);
74 void interpretSync(int src, struct input_event *ev);
75 QByteArray powerStatePath_;
76
77 };
78
79 #endif
HumidityAdaptor
Definition: humidityadaptor.h:34
HumidityAdaptor::HumidityAdaptor
HumidityAdaptor(const QString &id)
Constructor.
HumidityAdaptor::~HumidityAdaptor
~HumidityAdaptor()
HumidityAdaptor::stopSensor
virtual void stopSensor()
HumidityAdaptor::resume
virtual bool resume()
HumidityAdaptor::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Factory method for gaining a new instance of AccelerometerAdaptor class.
Definition: humidityadaptor.h:41
HumidityAdaptor::evaluateIntervalRequests
virtual unsigned int evaluateIntervalRequests(int &sessionId) const
Reimplement to allow for 0 interval to be the slowest entry.
HumidityAdaptor::startSensor
virtual bool startSensor()
HumidityAdaptor::standby
virtual bool standby()
orientationdata.h
Datatypes for different filters.