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"
9
10class OEMTabletALSAdaptorAscii : public SysfsAdaptor
11{
12 Q_OBJECT;
13public:
14 static DeviceAdaptor* factoryMethod(const QString& id)
15 {
16 return new OEMTabletALSAdaptorAscii(id);
17 }
18
19protected:
20 OEMTabletALSAdaptorAscii(const QString& id);
22
23 virtual bool setStandbyOverride(const bool override) { Q_UNUSED(override); return false; }
24private:
25
26 void processSample(int pathId, int fd);
27 char buf[16];
28
29 DeviceAdaptorRingBuffer<TimedUnsigned>* alsBuffer_;
30};
31
32#endif
virtual bool setStandbyOverride(const bool override)
static DeviceAdaptor * factoryMethod(const QString &id)
OEMTabletALSAdaptorAscii(const QString &id)
Datatype for unsigned values.