sensorfw
adaptors/oemtabletalsadaptor-ascii/oemtabletalsadaptor-ascii.h
Go to the documentation of this file.
00001 #ifndef OEMTABLETALSADAPTOR_ASCII_H
00002 #define OEMTABLETALSADAPTOR_ASCII_H
00003 
00004 #include <QObject>
00005 #include <QString>
00006 #include "sysfsadaptor.h"
00007 #include "deviceadaptorringbuffer.h"
00008 #include "datatypes/timedunsigned.h"
00009 
00010 class OEMTabletALSAdaptorAscii : public SysfsAdaptor
00011 {
00012     Q_OBJECT;
00013 public:
00014     static DeviceAdaptor* factoryMethod(const QString& id)
00015     {
00016         return new OEMTabletALSAdaptorAscii(id);
00017     }
00018 
00019 protected:
00020     OEMTabletALSAdaptorAscii(const QString& id);
00021     ~OEMTabletALSAdaptorAscii();
00022 
00023     virtual bool setStandbyOverride(const bool override) { Q_UNUSED(override); return false; }
00024 private:
00025 
00026     void processSample(int pathId, int fd);
00027     char buf[16];
00028 
00029     DeviceAdaptorRingBuffer<TimedUnsigned>* alsBuffer_;
00030 };
00031 
00032 #endif