sensorfw
humiditysensor_i.h
Go to the documentation of this file.
1 
26 #ifndef HUMIDITYSENSOR_I_H
27 #define HUMIDITYSENSOR_I_H
28 
29 #include <QtDBus/QtDBus>
30 
31 #include "datatypes/unsigned.h"
32 #include "abstractsensor_i.h"
33 
41 {
42  Q_OBJECT
43  Q_DISABLE_COPY(HumiditySensorChannelInterface)
45 
46 public:
50  static const char* staticInterfaceName;
51 
59  static AbstractSensorChannelInterface* factoryMethod(const QString& id, int sessionId);
60 
67 
74  HumiditySensorChannelInterface(const QString& path, int sessionId);
75 
83  static const HumiditySensorChannelInterface* listenInterface(const QString& id);
84 
93 
100  static HumiditySensorChannelInterface* interface(const QString& id);
101 
102 protected:
103  virtual bool dataReceivedImpl();
104 
105 Q_SIGNALS:
111  void relativeHumidityChanged(const Unsigned& value);
112 };
113 
114 namespace local {
115  typedef ::HumiditySensorChannelInterface HumiditySensor;
116 }
117 
118 #endif
Base class for sensor interface.
Base-class for client facades of different sensor types.
Client interface for accessing ambient light sensor.
HumiditySensorChannelInterface(const QString &path, int sessionId)
Constructor.
static const HumiditySensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
static HumiditySensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
Unsigned relativeHumidity()
Get latest relative humidity reading from sensor daemon.
static HumiditySensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
void relativeHumidityChanged(const Unsigned &value)
Sent when measured relative humidity has changed.
QObject facae for TimedUnsigned.
Definition: unsigned.h:37
::HumiditySensorChannelInterface HumiditySensor
QObject based datatype for TimedUnsigned.