sensorfw: sensors/accelerometersensor/accelerometersensor_a.h Source File

sensorfw

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