sensorfw
RotationSensorChannelInterface Class Reference

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

#include <rotationsensor_i.h>

Inheritance diagram for RotationSensorChannelInterface:
AbstractSensorChannelInterface

List of all members.

Signals

void dataAvailable (const XYZ &data)
 Sent when device rotation has changed.
void frameAvailable (const QVector< XYZ > &frame)
 Sent when new measurement frame has become available.

Public Member Functions

XYZ rotation ()
 Get latest rotation reading from sensor daemon.
bool hasZ ()
 Does reported readings include Z coordinate.
 RotationSensorChannelInterface (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
RotationSensorChannelInterface
listenInterface (const QString &id)
 Request a listening interface to the sensor.
static
RotationSensorChannelInterface
controlInterface (const QString &id)
 Request a control interface to the sensor.
static
RotationSensorChannelInterface
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 void connectNotify (const char *signal)
virtual bool dataReceivedImpl ()
 Callback for subclasses in which they must read their expected data from socket.

Properties

XYZ rotation
bool hasZ

Detailed Description

Client interface for listening device rotation changes.

Definition at line 39 of file rotationsensor_i.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
pathpath.
sessionIdsession id.

Member Function Documentation

virtual void RotationSensorChannelInterface::connectNotify ( const char *  signal) [protected, virtual]

Request a control interface to the sensor.

Parameters:
idsensor ID.
Returns:
Pointer to interface, or NULL on failure.
Deprecated:
use interface(const QString&) instead.
void RotationSensorChannelInterface::dataAvailable ( const XYZ data) [signal]

Sent when device rotation has changed.

Parameters:
dataCurrent device rotation.
virtual bool RotationSensorChannelInterface::dataReceivedImpl ( ) [protected, virtual]

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

Returns:
was read successful.

Implements AbstractSensorChannelInterface.

static AbstractSensorChannelInterface* RotationSensorChannelInterface::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.
void RotationSensorChannelInterface::frameAvailable ( const QVector< XYZ > &  frame) [signal]

Sent when new measurement frame has become available.

If app doesn't connect to this signal content of frames will be sent through dataAvailable signal.

Parameters:
frameNew measurement frame.

Does reported readings include Z coordinate.

Returns:
Does reported readings include Z coordinate.

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

Returns:
rotation reading.

Member Data Documentation

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

Returns:
Name of the interface.

Definition at line 52 of file rotationsensor_i.h.


Property Documentation

Definition at line 44 of file rotationsensor_i.h.


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