sensorfw
proximitysensor_i.h
Go to the documentation of this file.
27#ifndef PROXIMITYSENSOR_I_H
28#define PROXIMITYSENSOR_I_H
29
30#include <QtDBus/QtDBus>
31
32#include "abstractsensor_i.h"
33#include <datatypes/unsigned.h>
34#include <datatypes/proximity.h>
35
40{
41 Q_OBJECT
43 Q_PROPERTY(Unsigned proximity READ proximity);
45
46public:
52 static const char* staticInterfaceName;
53
62
70
77
84 ProximitySensorChannelInterface(const QString& path, int sessionId);
85
93 static const ProximitySensorChannelInterface* listenInterface(const QString& id);
94
103
110 static ProximitySensorChannelInterface* interface(const QString& id);
111
112protected:
113 virtual bool dataReceivedImpl();
114
115Q_SIGNALS:
124 void dataAvailable(const Unsigned& data);
125
132};
133
134namespace local {
136}
137
138#endif
Base class for sensor interface.
Base-class for client facades of different sensor types.
Client interface for listening proximity sensor state changes.
static const char * staticInterfaceName
Get name of the D-Bus interface for this class.
static ProximitySensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
void dataAvailable(const Unsigned &data)
Sent when new measurement data has become available.
static const ProximitySensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
Unsigned proximity()
Get latest proximity reading from sensor daemon.
void reflectanceDataAvailable(const Proximity &data)
Sent when new measurement data has become available.
static ProximitySensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
Proximity proximityReflectance()
Get latest proximity reading from sensor daemon.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.
ProximitySensorChannelInterface(const QString &path, int sessionId)
Constructor.
QObject facade for ProximityData.
Definition: proximity.h:38
QObject facae for TimedUnsigned.
Definition: unsigned.h:37
::ProximitySensorChannelInterface ProximitySensor
QObject based datatype for ProximityData.
QObject based datatype for TimedUnsigned.