sensorfw
orientationsensor_a.h
Go to the documentation of this file.
1 
27 #ifndef ORIENTATION_SENSOR_H
28 #define ORIENTATION_SENSOR_H
29 
30 #include <QtDBus/QtDBus>
31 
32 #include "datatypes/orientation.h"
33 #include "datatypes/unsigned.h"
34 #include "abstractsensor_a.h"
35 
36 class OrientationSensorChannelAdaptor : public AbstractSensorChannelAdaptor
37 {
38  Q_OBJECT
39  Q_DISABLE_COPY(OrientationSensorChannelAdaptor)
40  Q_CLASSINFO("D-Bus Interface", "local.OrientationSensor")
41  Q_PROPERTY(Unsigned orientation READ orientation)
42  Q_PROPERTY(int threshold READ threshold WRITE setThreshold)
43 
44 public:
46 
47 public Q_SLOTS:
49  int threshold() const;
50  void setThreshold(int value);
51 
52 Q_SIGNALS:
54 };
55 
56 #endif
OrientationSensorChannelAdaptor(QObject *parent)
void orientationChanged(const Unsigned &orientation)
QObject facae for TimedUnsigned.
Definition: unsigned.h:37
QObject based datatype for OrientationData.
QObject based datatype for TimedUnsigned.