• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

adaptors/tapadaptor/tapadaptor.h

Go to the documentation of this file.
00001 
00028 #ifndef TAPADAPTOR_H
00029 #define TAPADAPTOR_H
00030 
00031 #include "inputdevadaptor.h"
00032 #include "deviceadaptorringbuffer.h"
00033 #include "datatypes/tapdata.h"
00034 
00041 class TapAdaptor : public InputDevAdaptor
00042 {
00043     Q_OBJECT;
00044 public:
00049     static DeviceAdaptor* factoryMethod(const QString& id)
00050     {
00051         return new TapAdaptor(id);
00052     }
00053 
00054 protected:
00059     TapAdaptor(const QString& id);
00060     ~TapAdaptor();
00061 
00062     virtual bool setInterval(const unsigned int value, const int sessionId);
00063 
00064 private:
00065     DeviceAdaptorRingBuffer<TapData>* tapBuffer_; 
00067     void interpretEvent(int src, struct input_event *ev);
00068     void interpretSync(int src, struct input_event *ev);
00069     void commitOutput(const TapData& data);
00070 };
00071 
00072 #endif

Generated on Mon Jun 27 2011 14:38:47 for sensorfw by  doxygen 1.7.1