sensorfw
temperaturesensor_a.h
Go to the documentation of this file.
1 
26 #ifndef TEMPERATURE_SENSOR_H
27 #define TEMPERATURE_SENSOR_H
28 
29 #include <QtDBus/QtDBus>
30 #include <QObject>
31 
32 #include "datatypes/unsigned.h"
33 #include "abstractsensor_a.h"
34 
35 class TemperatureSensorChannelAdaptor : public AbstractSensorChannelAdaptor
36 {
37  Q_OBJECT
38  Q_DISABLE_COPY(TemperatureSensorChannelAdaptor)
39  Q_CLASSINFO("D-Bus Interface", "local.TemperatureSensor")
40  Q_PROPERTY(Unsigned temperature READ temperature NOTIFY temperatureChanged)
41 
42 public:
44 
45 public Q_SLOTS:
47 
48 Q_SIGNALS:
49  void temperatureChanged(const Unsigned& value);
50 };
51 
52 #endif
void temperatureChanged(const Unsigned &value)
TemperatureSensorChannelAdaptor(QObject *parent)
QObject facae for TimedUnsigned.
Definition: unsigned.h:37
QObject based datatype for TimedUnsigned.