sensorfw
ProximitySensorChannelInterface Class Reference

Client interface for listening proximity sensor state changes. More...

#include <proximitysensor_i.h>

Inheritance diagram for ProximitySensorChannelInterface:
AbstractSensorChannelInterface

List of all members.

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

Detailed Description

Client interface for listening proximity sensor state changes.

Definition at line 39 of file proximitysensor_i.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
pathpath.
sessionIdsession id.

Member Function Documentation

Request a control interface to the sensor.

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

Sent when new measurement data has become available.

Value in the passed data contains boolean information is the proximity sensor blocked or not.

Parameters:
dataNew measurement data.
Deprecated:
Use reflectanceDataAvailable(const Proximity&).
virtual bool ProximitySensorChannelInterface::dataReceivedImpl ( ) [protected, virtual]

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

Returns:
was read successful.

Implements AbstractSensorChannelInterface.

static AbstractSensorChannelInterface* ProximitySensorChannelInterface::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.

Request an interface to the sensor.

Parameters:
idsensor ID.
Returns:
Pointer to interface, or NULL on failure.

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 proximity reading from sensor daemon.

Returns:
proximity reading. Non-zero value means that object is within proximity.
Deprecated:
Use proximityReflectance().

Get latest proximity reading from sensor daemon.

Returns:
proximity reading.

Sent when new measurement data has become available.

Parameters:
dataNew measurement data.

Member Data Documentation

Get name of the D-Bus interface for this class.

Returns:
Name of the interface.

Definition at line 44 of file proximitysensor_i.h.


Property Documentation


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