sensorfw: adaptors/oemtabletgyroscopeadaptor/oemtabletgyroscopeadaptor.h Source File

sensorfw

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