sensorfw
oemtabletgyroscopeadaptor.h
Go to the documentation of this file.
1#ifndef OEMTABLETGYROSCOPEADAPTOR_H
2#define OEMTABLETGYROSCOPEADAPTOR_H
3
4#include "sysfsadaptor.h"
6
7class OEMTabletGyroscopeAdaptor : public SysfsAdaptor
8{
9 Q_OBJECT;
10public:
17 static DeviceAdaptor* factoryMethod(const QString& id)
18 {
19 return new OEMTabletGyroscopeAdaptor(id);
20 }
21
22protected:
23
29 OEMTabletGyroscopeAdaptor(const QString& id);
30
35
36private:
37
46 void processSample(int pathId, int fd);
47
48 DeviceAdaptorRingBuffer<TimedXyzData>* gyroscopeBuffer_;
49};
50
51#endif
OEMTabletGyroscopeAdaptor(const QString &id)
Constructor.
static DeviceAdaptor * factoryMethod(const QString &id)
Factory method for gaining a new instance of this adaptor class.
~OEMTabletGyroscopeAdaptor()
Destructor.
Datatypes for different filters.