sensorfw: sensors/magnetometersensor/magnetometersensor_a.h Source File

sensorfw

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