sensorfw
|
00001 00025 #ifndef MRSTACCELEROMETERADPTOR_H 00026 #define MRSTACCELEROMETERADPTOR_H 00027 00028 #include "sysfsadaptor.h" 00029 #include "deviceadaptorringbuffer.h" 00030 00031 #include "datatypes/orientationdata.h" 00032 00033 class MRSTAccelAdaptor : public SysfsAdaptor 00034 { 00035 Q_OBJECT 00036 00037 public: 00038 static DeviceAdaptor* factoryMethod (const QString& id) 00039 { 00040 return new MRSTAccelAdaptor (id); 00041 } 00042 00043 MRSTAccelAdaptor (const QString& id); 00044 ~MRSTAccelAdaptor (); 00045 00046 protected: 00047 void processSample (int pathId, int fd); 00048 00049 private: 00050 DeviceAdaptorRingBuffer<OrientationData>* buffer; 00051 }; 00052 #endif