sensorfw
pressuresensor_i.h
Go to the documentation of this file.
26#ifndef PRESSURESENSOR_I_H
27#define PRESSURESENSOR_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(PressureSensorChannelInterface)
44 Q_PROPERTY(Unsigned pressure READ pressure NOTIFY pressureChanged)
45
46public:
50 static const char* staticInterfaceName;
51
60
67
74 PressureSensorChannelInterface(const QString& path, int sessionId);
75
83 static const PressureSensorChannelInterface* listenInterface(const QString& id);
84
93
100 static PressureSensorChannelInterface* interface(const QString& id);
101
102protected:
103 virtual bool dataReceivedImpl();
104
105Q_SIGNALS:
111 void pressureChanged(const Unsigned& value);
112};
113
114namespace local {
116}
117
118#endif
Base class for sensor interface.
Base-class for client facades of different sensor types.
Client interface for accessing pressure sensor.
static const PressureSensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
static PressureSensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.
static PressureSensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
PressureSensorChannelInterface(const QString &path, int sessionId)
Constructor.
Unsigned pressure()
Get latest pressure from sensor daemon.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
void pressureChanged(const Unsigned &value)
Sent when measured ambient light intensity has changed.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
QObject facae for TimedUnsigned.
Definition: unsigned.h:37
::PressureSensorChannelInterface PressureSensor
QObject based datatype for TimedUnsigned.