sensorfw
oemtabletgyroscopeadaptor.h
Go to the documentation of this file.
1 #ifndef OEMTABLETGYROSCOPEADAPTOR_H
2 #define OEMTABLETGYROSCOPEADAPTOR_H
3 
4 #include "sysfsadaptor.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 
35 
36 private:
37 
46  void processSample(int pathId, int fd);
47 
48  DeviceAdaptorRingBuffer<TimedXyzData>* gyroscopeBuffer_;
49 };
50 
51 #endif
OEMTabletGyroscopeAdaptor::~OEMTabletGyroscopeAdaptor
~OEMTabletGyroscopeAdaptor()
Destructor.
orientationdata.h
Datatypes for different filters.
OEMTabletGyroscopeAdaptor
Definition: oemtabletgyroscopeadaptor.h:8
OEMTabletGyroscopeAdaptor::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Factory method for gaining a new instance of this adaptor class.
Definition: oemtabletgyroscopeadaptor.h:17
OEMTabletGyroscopeAdaptor::OEMTabletGyroscopeAdaptor
OEMTabletGyroscopeAdaptor(const QString &id)
Constructor.