sensorfw
mrstaccelerometeradaptor.h
Go to the documentation of this file.
1 
25 #ifndef MRSTACCELEROMETERADPTOR_H
26 #define MRSTACCELEROMETERADPTOR_H
27 
28 #include "sysfsadaptor.h"
29 #include "deviceadaptorringbuffer.h"
30 
32 
33 class MRSTAccelAdaptor : public SysfsAdaptor
34 {
35  Q_OBJECT
36 
37 public:
38  static DeviceAdaptor* factoryMethod (const QString& id)
39  {
40  return new MRSTAccelAdaptor (id);
41  }
42 
43  MRSTAccelAdaptor (const QString& id);
45 
46 protected:
47  void processSample (int pathId, int fd);
48 
49 private:
50  DeviceAdaptorRingBuffer<OrientationData>* buffer;
51 };
52 #endif
MRSTAccelAdaptor(const QString &id)
void processSample(int pathId, int fd)
static DeviceAdaptor * factoryMethod(const QString &id)
Datatypes for different filters.