sensorfw: sensors/stepcountersensor/stepcountersensor_a.h Source File

sensorfw

stepcountersensor_a.h
Go to the documentation of this file.
1
29 #ifndef STEPCOUNTER_SENSOR_H
30 #define STEPCOUNTER_SENSOR_H
31
32 #include <QtDBus/QtDBus>
33 #include <QObject>
34
35 #include "datatypes/unsigned.h"
36 #include "abstractsensor_a.h"
37
38 class StepCounterSensorChannelAdaptor : public AbstractSensorChannelAdaptor
39 {
40 Q_OBJECT
41 Q_DISABLE_COPY(StepCounterSensorChannelAdaptor)
42 Q_CLASSINFO("D-Bus Interface", "local.StepCounterSensor")
43 Q_PROPERTY(Unsigned steps READ steps)
44
45 public:
46 StepCounterSensorChannelAdaptor(QObject* parent);
47
48 public Q_SLOTS:
49 Unsigned steps() const;
50
51 Q_SIGNALS:
52 void StepCounterChanged(const Unsigned& value);
53 };
54
55 #endif
StepCounterSensorChannelAdaptor
Definition: stepcountersensor_a.h:39
StepCounterSensorChannelAdaptor::StepCounterSensorChannelAdaptor
StepCounterSensorChannelAdaptor(QObject *parent)
StepCounterSensorChannelAdaptor::steps
Unsigned steps() const
StepCounterSensorChannelAdaptor::steps
Unsigned steps
Definition: stepcountersensor_a.h:43
StepCounterSensorChannelAdaptor::StepCounterChanged
void StepCounterChanged(const Unsigned &value)
Unsigned
QObject facae for TimedUnsigned.
Definition: unsigned.h:37
unsigned.h
QObject based datatype for TimedUnsigned.