sensorfw
adaptors/alsadaptor-sysfs/alsadaptor-sysfs.h
Go to the documentation of this file.
00001 
00029 #ifndef ALSADAPTOR_SYSFS_H
00030 #define ALSADAPTOR_SYSFS_H
00031 
00032 #include "sysfsadaptor.h"
00033 #include "deviceadaptorringbuffer.h"
00034 #include "datatypes/timedunsigned.h"
00035 
00045 class ALSAdaptorSysfs : public SysfsAdaptor
00046 {
00047     Q_OBJECT;
00048 public:
00053     static DeviceAdaptor* factoryMethod(const QString& id)
00054     {
00055         return new ALSAdaptorSysfs(id);
00056     }
00057 
00058 protected:
00063     ALSAdaptorSysfs(const QString& id);
00064     ~ALSAdaptorSysfs();
00065 
00075     virtual bool setStandbyOverride(const bool override) { Q_UNUSED(override); return false; }
00076 private:
00077 
00085     void processSample(int pathId, int fd);
00086 
00087     DeviceAdaptorRingBuffer<TimedUnsigned>* alsBuffer_;
00088 };
00089 
00090 #endif