Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Properties

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:
path path.
sessionId session id.

Member Function Documentation

virtual void RotationSensorChannelInterface::connectNotify ( const char *  signal  )  [protected, virtual]
static RotationSensorChannelInterface* RotationSensorChannelInterface::controlInterface ( const QString &  id  )  [static]

Request a control interface to the sensor.

Parameters:
id sensor 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:
data Current 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:
id Sensor ID.
sessionId Session 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:
frame New measurement frame.
bool RotationSensorChannelInterface::hasZ (  ) 

Does reported readings include Z coordinate.

Returns:
Does reported readings include Z coordinate.
static RotationSensorChannelInterface* RotationSensorChannelInterface::interface ( const QString &  id  )  [static]

Request an interface to the sensor.

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

Request a listening interface to the sensor.

Parameters:
id sensor ID.
Returns:
Pointer to interface, or NULL on failure.
Deprecated:
use interface(const QString&) instead.
XYZ RotationSensorChannelInterface::rotation (  ) 

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

bool RotationSensorChannelInterface::hasZ [read]

Definition at line 44 of file rotationsensor_i.h.

XYZ RotationSensorChannelInterface::rotation [read]

Definition at line 43 of file rotationsensor_i.h.


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