sensorfw
|
00001 00027 #ifndef ROTATION_SENSOR_H 00028 #define ROTATION_SENSOR_H 00029 00030 #include <QtDBus/QtDBus> 00031 00032 #include "datatypes/xyz.h" 00033 #include "abstractsensor_a.h" 00034 00035 class RotationSensorChannelAdaptor : public AbstractSensorChannelAdaptor 00036 { 00037 Q_OBJECT 00038 Q_DISABLE_COPY(RotationSensorChannelAdaptor) 00039 Q_CLASSINFO("D-Bus Interface", "local.RotationSensor") 00040 Q_PROPERTY(XYZ rotation READ rotation) 00041 Q_PROPERTY(bool hasZ READ hasZ) 00042 00043 public: 00044 RotationSensorChannelAdaptor(QObject* parent); 00045 00046 public Q_SLOTS: 00047 XYZ rotation() const; 00048 bool hasZ() const; 00049 00050 Q_SIGNALS: 00051 void dataAvailable(const XYZ& data); 00052 }; 00053 00054 #endif