sensorfw: adaptors/oemtabletaccelerometer/oemtabletaccelerometeradaptor.h Source File

sensorfw

oemtabletaccelerometeradaptor.h
Go to the documentation of this file.
1 #ifndef OEMTABLETACCELEROMETERADPTOR_H
2 #define OEMTABLETACCELEROMETERADPTOR_H
3 #include "sysfsadaptor.h"
4 #include <QString>
5 #include <QStringList>
6 #include <linux/input.h>
7 #include "deviceadaptorringbuffer.h"
8 #include "datatypes/orientationdata.h"
9 #include <QTime>
10
11 class OemtabletAccelAdaptor : public SysfsAdaptor {
12 Q_OBJECT
13
14 public:
15 static DeviceAdaptor* factoryMethod (const QString& id) {
16 return new OemtabletAccelAdaptor (id);
17 }
18 OemtabletAccelAdaptor (const QString& id);
19 ~OemtabletAccelAdaptor ();
20
21 bool startSensor ();
22 void stopSensor ();
23
24 protected:
25 void processSample (int pathId, int fd);
26
27 private:
28 DeviceAdaptorRingBuffer<OrientationData>* buffer;
29 QString devPath;
30 int devId;
31 };
32 #endif
OemtabletAccelAdaptor
Definition: oemtabletaccelerometeradaptor.h:11
OemtabletAccelAdaptor::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition: oemtabletaccelerometeradaptor.h:15
OemtabletAccelAdaptor::startSensor
bool startSensor()
OemtabletAccelAdaptor::stopSensor
void stopSensor()
OemtabletAccelAdaptor::processSample
void processSample(int pathId, int fd)
OemtabletAccelAdaptor::OemtabletAccelAdaptor
OemtabletAccelAdaptor(const QString &id)
OemtabletAccelAdaptor::~OemtabletAccelAdaptor
~OemtabletAccelAdaptor()
orientationdata.h
Datatypes for different filters.