sensorfw
ALSSensorChannelInterface Class Reference

Client interface for accessing ambient light sensor. More...

#include <alssensor_i.h>

Inheritance diagram for ALSSensorChannelInterface:
AbstractSensorChannelInterface

List of all members.

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 ALSSensorChannelInterfacecontrolInterface (const QString &id)
 Request a control interface to the sensor.
static ALSSensorChannelInterfaceinterface (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

Detailed Description

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.


Constructor & Destructor Documentation

ALSSensorChannelInterface::ALSSensorChannelInterface ( const QString &  path,
int  sessionId 
)

Constructor.

Parameters:
pathpath.
sessionIdsession ID.

Member Function Documentation

void ALSSensorChannelInterface::ALSChanged ( const Unsigned value) [signal]

Sent when measured ambient light intensity has changed.

Parameters:
valueambient light reading.

Request a control interface to the sensor.

Parameters:
idsensor ID.
Returns:
Pointer to interface, or NULL on failure.
Deprecated:
use interface(const QString&) instead.
virtual bool ALSSensorChannelInterface::dataReceivedImpl ( ) [protected, virtual]

Callback for subclasses in which they must read their expected data from socket.

Returns:
was read successful.

Implements AbstractSensorChannelInterface.

static AbstractSensorChannelInterface* ALSSensorChannelInterface::factoryMethod ( const QString &  id,
int  sessionId 
) [static]

Create new instance of the class.

Parameters:
idSensor ID.
sessionIdSession ID.
Returns:
Pointer to new instance of the class.
static ALSSensorChannelInterface* ALSSensorChannelInterface::interface ( const QString &  id) [static]

Request an interface to the sensor.

Parameters:
idsensor ID.
Returns:
Pointer to interface, or NULL on failure.
static const ALSSensorChannelInterface* ALSSensorChannelInterface::listenInterface ( const QString &  id) [static]

Request a listening interface to the sensor.

Parameters:
idsensor ID.
Returns:
Pointer to interface, or NULL on failure.
Deprecated:
use interface(const QString&) instead.

Get latest ambient light reading from sensor daemon.

Returns:
ambient light reading.

Member Data Documentation

Name of the D-Bus interface for this class.

Definition at line 51 of file alssensor_i.h.


Property Documentation

Definition at line 45 of file alssensor_i.h.


The documentation for this class was generated from the following file: