sensorfw
|
Client interface for accessing ambient light sensor. More...
#include <alssensor_i.h>
Signals | |
void | ALSChanged (const Unsigned &value) |
Sent when measured ambient light intensity has changed. | |
Public Member Functions | |
Unsigned | lux () |
Get latest ambient light reading from sensor daemon. | |
ALSSensorChannelInterface (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 ALSSensorChannelInterface * | listenInterface (const QString &id) |
Request a listening interface to the sensor. | |
static ALSSensorChannelInterface * | controlInterface (const QString &id) |
Request a control interface to the sensor. | |
static ALSSensorChannelInterface * | interface (const QString &id) |
Request an interface to the sensor. | |
Static Public Attributes | |
static const char * | staticInterfaceName |
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 | lux |
Client interface for accessing ambient light sensor.
Provides signal on change of measured ambient light intensity level. Previous measured intensity level can be queried any time. Provided values are in lux.
Definition at line 41 of file alssensor_i.h.
ALSSensorChannelInterface::ALSSensorChannelInterface | ( | const QString & | path, |
int | sessionId | ||
) |
Constructor.
path | path. |
sessionId | session ID. |
void ALSSensorChannelInterface::ALSChanged | ( | const Unsigned & | value | ) | [signal] |
Sent when measured ambient light intensity has changed.
value | ambient light reading. |
static ALSSensorChannelInterface* ALSSensorChannelInterface::controlInterface | ( | const QString & | id | ) | [static] |
Request a control interface to the sensor.
id | sensor ID. |
virtual bool ALSSensorChannelInterface::dataReceivedImpl | ( | ) | [protected, virtual] |
Callback for subclasses in which they must read their expected data from socket.
Implements AbstractSensorChannelInterface.
static AbstractSensorChannelInterface* ALSSensorChannelInterface::factoryMethod | ( | const QString & | id, |
int | sessionId | ||
) | [static] |
Create new instance of the class.
id | Sensor ID. |
sessionId | Session ID. |
static ALSSensorChannelInterface* ALSSensorChannelInterface::interface | ( | const QString & | id | ) | [static] |
Request an interface to the sensor.
id | sensor ID. |
static const ALSSensorChannelInterface* ALSSensorChannelInterface::listenInterface | ( | const QString & | id | ) | [static] |
Request a listening interface to the sensor.
id | sensor ID. |
Get latest ambient light reading from sensor daemon.
const char* ALSSensorChannelInterface::staticInterfaceName [static] |
Name of the D-Bus interface for this class.
Definition at line 51 of file alssensor_i.h.
Definition at line 45 of file alssensor_i.h.