sensorfw: adaptors/proximityadaptor-ascii/proximityadaptor-ascii.h Source File

sensorfw

proximityadaptor-ascii.h
Go to the documentation of this file.
1
32 #ifndef PROXIMITYADAPTOR_ASCII_H
33 #define PROXIMITYADAPTOR_ASCII_H
34
35 #include "sysfsadaptor.h"
36 #include "deviceadaptorringbuffer.h"
37 #include "datatypes/orientationdata.h"
38
39 class ProximityAdaptorAscii : public SysfsAdaptor
40 {
41 Q_OBJECT;
42 public:
43 static DeviceAdaptor* factoryMethod(const QString& id)
44 {
45 return new ProximityAdaptorAscii(id);
46 }
47
48 protected:
49 ProximityAdaptorAscii(const QString& id);
50 ~ProximityAdaptorAscii();
51
52 private:
53 void processSample(int pathId, int fd);
54
55 DeviceAdaptorRingBuffer<ProximityData>* proximityBuffer_;
56 };
57
58 #endif
ProximityAdaptorAscii
Definition: proximityadaptor-ascii.h:40
ProximityAdaptorAscii::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition: proximityadaptor-ascii.h:43
ProximityAdaptorAscii::~ProximityAdaptorAscii
~ProximityAdaptorAscii()
ProximityAdaptorAscii::ProximityAdaptorAscii
ProximityAdaptorAscii(const QString &id)
orientationdata.h
Datatypes for different filters.