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::setThreshold
void setThreshold(int value)
OrientationSensorChannelAdaptor::threshold
int threshold() const
orientation.h
QObject based datatype for OrientationData.
OrientationSensorChannelAdaptor::threshold
int threshold
Definition: orientationsensor_a.h:42
OrientationSensorChannelAdaptor::orientation
Unsigned orientation
Definition: orientationsensor_a.h:41
OrientationSensorChannelAdaptor
Definition: orientationsensor_a.h:37
OrientationSensorChannelAdaptor::orientationChanged
void orientationChanged(const Unsigned &orientation)
unsigned.h
QObject based datatype for TimedUnsigned.
OrientationSensorChannelAdaptor::orientation
Unsigned orientation() const
Unsigned
QObject facae for TimedUnsigned.
Definition: unsigned.h:37
OrientationSensorChannelAdaptor::OrientationSensorChannelAdaptor
OrientationSensorChannelAdaptor(QObject *parent)