sensorfw: sensors/orientationsensor/orientationsensor_a.h Source File

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
44public:
45 OrientationSensorChannelAdaptor(QObject* parent);
46
47public Q_SLOTS:
48 Unsigned orientation() const;
49 int threshold() const;
50 void setThreshold(int value);
51
52Q_SIGNALS:
53 void orientationChanged(const Unsigned& orientation);
54};
55
56#endif
OrientationSensorChannelAdaptor
Definition: orientationsensor_a.h:37
OrientationSensorChannelAdaptor::orientation
Unsigned orientation() const
OrientationSensorChannelAdaptor::orientation
Unsigned orientation
Definition: orientationsensor_a.h:41
OrientationSensorChannelAdaptor::threshold
int threshold
Definition: orientationsensor_a.h:42
OrientationSensorChannelAdaptor::setThreshold
void setThreshold(int value)
OrientationSensorChannelAdaptor::threshold
int threshold() const
OrientationSensorChannelAdaptor::OrientationSensorChannelAdaptor
OrientationSensorChannelAdaptor(QObject *parent)
OrientationSensorChannelAdaptor::orientationChanged
void orientationChanged(const Unsigned &orientation)
Unsigned
QObject facae for TimedUnsigned.
Definition: unsigned.h:37
orientation.h
QObject based datatype for OrientationData.
unsigned.h
QObject based datatype for TimedUnsigned.