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