sensorfw
OrientationSensorChannelInterface Class Reference

Client interface for listening device orientation changes. More...

#include <orientationsensor_i.h>

Inheritance diagram for OrientationSensorChannelInterface:
AbstractSensorChannelInterface

List of all members.

Signals

void orientationChanged (const Unsigned &orientation)
 Sent when device orientation has changed.

Public Member Functions

Unsigned orientation ()
 Get latest orientation reading from sensor daemon.
int threshold ()
 Gets the currently used threshold value.
void setThreshold (int value)
 Sets the currently used threshold value.
 OrientationSensorChannelInterface (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
OrientationSensorChannelInterface
listenInterface (const QString &id)
 Request a listening interface to the sensor.
static
OrientationSensorChannelInterface
controlInterface (const QString &id)
 Request a control interface to the sensor.
static
OrientationSensorChannelInterface
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 orientation
int threshold

Detailed Description

Client interface for listening device orientation changes.

Definition at line 38 of file orientationsensor_i.h.


Constructor & Destructor Documentation

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.
virtual bool OrientationSensorChannelInterface::dataReceivedImpl ( ) [protected, virtual]

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

Returns:
was read successful.

Implements AbstractSensorChannelInterface.

static AbstractSensorChannelInterface* OrientationSensorChannelInterface::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 orientation reading from sensor daemon.

Returns:
Current device orientation. The given integer value is enumeration from PoseData::Orientation.
void OrientationSensorChannelInterface::orientationChanged ( const Unsigned orientation) [signal]

Sent when device orientation has changed.

Parameters:
orientationCurrent device orientation. The given integer value is enumeration from PoseData::Orientation.

Sets the currently used threshold value.

Value is in mG.

Parameters:
valuethreshold value.
Deprecated:
Not used.

Gets the currently used threshold value.

Value is in mG.

Returns:
Current threshold value.
Deprecated:
Not used.

Member Data Documentation

Name of the D-Bus interface for this class.

Definition at line 49 of file orientationsensor_i.h.


Property Documentation

Definition at line 43 of file orientationsensor_i.h.


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