sensorfw
rotationsensor_a.h
Go to the documentation of this file.
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
35class 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:
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
void dataAvailable(const XYZ &data)
RotationSensorChannelAdaptor(QObject *parent)
QObject facade for XYZData.
Definition: xyz.h:37
QObject based datatype for TimedXYZData.