sensorfw: sensors/compasssensor/compasssensor_a.h Source File

sensorfw

compasssensor_a.h
Go to the documentation of this file.
1
27 #ifndef COMPASS_SENSOR_H
28 #define COMPASS_SENSOR_H
29
30 #include <QtDBus/QtDBus>
31 #include "abstractsensor_a.h"
32 #include "datatypes/compass.h"
33
34 class CompassSensorChannelAdaptor : public AbstractSensorChannelAdaptor
35 {
36 Q_OBJECT
37 Q_DISABLE_COPY(CompassSensorChannelAdaptor)
38 Q_CLASSINFO("D-Bus Interface", "local.CompassSensor")
39 Q_PROPERTY(Compass value READ value)
40 Q_PROPERTY(int declinationValue READ declinationValue)
41
42 public:
43 CompassSensorChannelAdaptor(QObject* parent);
44
45 public Q_SLOTS:
46 Compass value() const;
47 int declinationValue() const;
48
49 Q_SIGNALS:
50 void dataAvailable(const Compass& value);
51 };
52
53 #endif
CompassSensorChannelAdaptor
Definition: compasssensor_a.h:35
CompassSensorChannelAdaptor::value
Compass value
Definition: compasssensor_a.h:39
CompassSensorChannelAdaptor::dataAvailable
void dataAvailable(const Compass &value)
CompassSensorChannelAdaptor::declinationValue
int declinationValue() const
CompassSensorChannelAdaptor::CompassSensorChannelAdaptor
CompassSensorChannelAdaptor(QObject *parent)
CompassSensorChannelAdaptor::declinationValue
int declinationValue
Definition: compasssensor_a.h:40
CompassSensorChannelAdaptor::value
Compass value() const
Compass
QObject facade for CompassData.
Definition: compass.h:38
compass.h
QObject based datatype for CompassData.