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;
42public:
43 static DeviceAdaptor* factoryMethod(const QString& id)
44 {
45 return new ProximityAdaptorAscii(id);
46 }
47
48protected:
49 ProximityAdaptorAscii(const QString& id);
50 ~ProximityAdaptorAscii();
51
52private:
53 void processSample(int pathId, int fd);
54
55 DeviceAdaptorRingBuffer<ProximityData>* proximityBuffer_;
56};
57
58#endif
ProximityAdaptorAscii
Definition proximityadaptor-ascii.h:40
ProximityAdaptorAscii::~ProximityAdaptorAscii
~ProximityAdaptorAscii()
ProximityAdaptorAscii::ProximityAdaptorAscii
ProximityAdaptorAscii(const QString &id)
ProximityAdaptorAscii::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition proximityadaptor-ascii.h:43
orientationdata.h
Datatypes for different filters.