00001 00027 #ifndef COMPASS_SENSOR_H 00028 #define COMPASS_SENSOR_H 00029 00030 #include <QtDBus/QtDBus> 00031 #include "abstractsensor_a.h" 00032 #include "datatypes/compass.h" 00033 00034 class CompassSensorChannelAdaptor : public AbstractSensorChannelAdaptor 00035 { 00036 Q_OBJECT 00037 Q_DISABLE_COPY(CompassSensorChannelAdaptor) 00038 Q_CLASSINFO("D-Bus Interface", "local.CompassSensor") 00039 Q_PROPERTY(Compass value READ value) 00040 Q_PROPERTY(int declinationValue READ declinationValue) 00041 00042 public: 00043 CompassSensorChannelAdaptor(QObject* parent); 00044 00045 public Q_SLOTS: 00046 Compass value() const; 00047 int declinationValue() const; 00048 00049 Q_SIGNALS: 00050 void dataAvailable(const Compass& value); 00051 }; 00052 00053 #endif