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 
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);
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
static DeviceAdaptor * factoryMethod(const QString &id)
virtual bool setStandbyOverride(const bool override)
OEMTabletALSAdaptorAscii(const QString &id)
Datatype for unsigned values.