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
33class MRSTAccelAdaptor : public SysfsAdaptor
34{
35 Q_OBJECT
36
37public:
38 static DeviceAdaptor* factoryMethod (const QString& id)
39 {
40 return new MRSTAccelAdaptor (id);
41 }
42
43 MRSTAccelAdaptor (const QString& id);
45
46protected:
47 void processSample (int pathId, int fd);
48
49private:
50 DeviceAdaptorRingBuffer<OrientationData>* buffer;
51};
52#endif
static DeviceAdaptor * factoryMethod(const QString &id)
MRSTAccelAdaptor(const QString &id)
void processSample(int pathId, int fd)
Datatypes for different filters.