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

sensorfw

oemtabletalsadaptor-ascii.h
Go to the documentation of this file.
1 #ifndef OEMTABLETALSADAPTOR_ASCII_H
2 #define OEMTABLETALSADAPTOR_ASCII_H
3
4 #include <QObject>
5 #include <QString>
6 #include "sysfsadaptor.h"
7 #include "deviceadaptorringbuffer.h"
8 #include "datatypes/timedunsigned.h"
9
10 class OEMTabletALSAdaptorAscii : public SysfsAdaptor
11 {
12 Q_OBJECT;
13 public:
14 static DeviceAdaptor* factoryMethod(const QString& id)
15 {
16 return new OEMTabletALSAdaptorAscii(id);
17 }
18
19 protected:
20 OEMTabletALSAdaptorAscii(const QString& id);
21 ~OEMTabletALSAdaptorAscii();
22
23 virtual bool setStandbyOverride(const bool override) { Q_UNUSED(override); return false; }
24 private:
25
26 void processSample(int pathId, int fd);
27 char buf[16];
28
29 DeviceAdaptorRingBuffer<TimedUnsigned>* alsBuffer_;
30 };
31
32 #endif
OEMTabletALSAdaptorAscii
Definition: oemtabletalsadaptor-ascii.h:11
OEMTabletALSAdaptorAscii::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition: oemtabletalsadaptor-ascii.h:14
OEMTabletALSAdaptorAscii::setStandbyOverride
virtual bool setStandbyOverride(const bool override)
Definition: oemtabletalsadaptor-ascii.h:23
OEMTabletALSAdaptorAscii::~OEMTabletALSAdaptorAscii
~OEMTabletALSAdaptorAscii()
OEMTabletALSAdaptorAscii::OEMTabletALSAdaptorAscii
OEMTabletALSAdaptorAscii(const QString &id)
timedunsigned.h
Datatype for unsigned values.