sensorfw
|
Client interface for listening proximity sensor state changes. More...
#include <proximitysensor_i.h>
Signals | |
void | dataAvailable (const Unsigned &data) |
Sent when new measurement data has become available. | |
void | reflectanceDataAvailable (const Proximity &data) |
Sent when new measurement data has become available. | |
Public Member Functions | |
Unsigned | proximity () |
Get latest proximity reading from sensor daemon. | |
Proximity | proximityReflectance () |
Get latest proximity reading from sensor daemon. | |
ProximitySensorChannelInterface (const QString &path, int sessionId) | |
Constructor. | |
Static Public Member Functions | |
static AbstractSensorChannelInterface * | factoryMethod (const QString &id, int sessionId) |
Create new instance of the class. | |
static const ProximitySensorChannelInterface * | listenInterface (const QString &id) |
Request a listening interface to the sensor. | |
static ProximitySensorChannelInterface * | controlInterface (const QString &id) |
Request a control interface to the sensor. | |
static ProximitySensorChannelInterface * | interface (const QString &id) |
Request an interface to the sensor. | |
Static Public Attributes | |
static const char * | staticInterfaceName |
Get name of the D-Bus interface for this class. | |
Protected Member Functions | |
virtual bool | dataReceivedImpl () |
Callback for subclasses in which they must read their expected data from socket. | |
Properties | |
Unsigned | proximity |
Proximity | proximityReflectance |
Client interface for listening proximity sensor state changes.
Definition at line 39 of file proximitysensor_i.h.
ProximitySensorChannelInterface::ProximitySensorChannelInterface | ( | const QString & | path, |
int | sessionId | ||
) |
Constructor.
path | path. |
sessionId | session id. |
static ProximitySensorChannelInterface* ProximitySensorChannelInterface::controlInterface | ( | const QString & | id | ) | [static] |
Request a control interface to the sensor.
id | sensor ID. |
void ProximitySensorChannelInterface::dataAvailable | ( | const Unsigned & | data | ) | [signal] |
Sent when new measurement data has become available.
Value in the passed data contains boolean information is the proximity sensor blocked or not.
data | New measurement data. |
virtual bool ProximitySensorChannelInterface::dataReceivedImpl | ( | ) | [protected, virtual] |
Callback for subclasses in which they must read their expected data from socket.
Implements AbstractSensorChannelInterface.
static AbstractSensorChannelInterface* ProximitySensorChannelInterface::factoryMethod | ( | const QString & | id, |
int | sessionId | ||
) | [static] |
Create new instance of the class.
id | Sensor ID. |
sessionId | Session ID. |
static ProximitySensorChannelInterface* ProximitySensorChannelInterface::interface | ( | const QString & | id | ) | [static] |
Request an interface to the sensor.
id | sensor ID. |
static const ProximitySensorChannelInterface* ProximitySensorChannelInterface::listenInterface | ( | const QString & | id | ) | [static] |
Request a listening interface to the sensor.
id | sensor ID. |
Get latest proximity reading from sensor daemon.
Get latest proximity reading from sensor daemon.
void ProximitySensorChannelInterface::reflectanceDataAvailable | ( | const Proximity & | data | ) | [signal] |
Sent when new measurement data has become available.
data | New measurement data. |
const char* ProximitySensorChannelInterface::staticInterfaceName [static] |
Get name of the D-Bus interface for this class.
Definition at line 44 of file proximitysensor_i.h.
Definition at line 43 of file proximitysensor_i.h.
Definition at line 43 of file proximitysensor_i.h.