sensorfw: sensors/rotationsensor/rotationsensor_a.h Source File

sensorfw

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