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

qt-api/accelerometersensor_i.h

Go to the documentation of this file.
00001 
00027 #ifndef ACCELEROMETERSENSOR_I_H
00028 #define ACCELEROMETERSENSOR_I_H
00029 
00030 #include <QtDBus/QtDBus>
00031 #include <QVector>
00032 #include "abstractsensor_i.h"
00033 #include <datatypes/xyz.h>
00034 
00038 class AccelerometerSensorChannelInterface : public AbstractSensorChannelInterface
00039 {
00040     Q_OBJECT
00041     Q_DISABLE_COPY(AccelerometerSensorChannelInterface)
00042     Q_PROPERTY(XYZ value READ get)
00043 
00044 public:
00048     static const char* staticInterfaceName;
00049 
00057     static AbstractSensorChannelInterface* factoryMethod(const QString& id, int sessionId);
00058 
00064     XYZ get();
00065 
00072     AccelerometerSensorChannelInterface(const QString& path, int sessionId);
00073 
00081     static const AccelerometerSensorChannelInterface* listenInterface(const QString& id);
00082 
00090     static AccelerometerSensorChannelInterface* controlInterface(const QString& id);
00091 
00098     static AccelerometerSensorChannelInterface* interface(const QString& id);
00099 
00100 protected:
00101     virtual void connectNotify(const char* signal);
00102     virtual bool dataReceivedImpl();
00103 
00104 private:
00105     bool frameAvailableConnected; 
00107 Q_SIGNALS:
00113     void dataAvailable(const XYZ& data);
00114 
00122     void frameAvailable(const QVector<XYZ>& frame);
00123 };
00124 
00125 namespace local {
00126   typedef ::AccelerometerSensorChannelInterface AccelerometerSensor;
00127 }
00128 
00129 #endif

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