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

GyroscopeSensorChannelInterface Class Reference

Client interface for accessing gyroscope sensor. More...

#include <gyroscopesensor_i.h>

Inheritance diagram for GyroscopeSensorChannelInterface:
AbstractSensorChannelInterface

List of all members.

Signals

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

Public Member Functions

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

Properties

XYZ value

Detailed Description

Client interface for accessing gyroscope sensor.

Definition at line 39 of file gyroscopesensor_i.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
path path.
sessionId session id.

Member Function Documentation

virtual void GyroscopeSensorChannelInterface::connectNotify ( const char *  signal  )  [protected, virtual]
static GyroscopeSensorChannelInterface* GyroscopeSensorChannelInterface::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 GyroscopeSensorChannelInterface::dataAvailable ( const XYZ data  )  [signal]

Sent when new measurement data has become available.

Parameters:
data New measurement data.
virtual bool GyroscopeSensorChannelInterface::dataReceivedImpl (  )  [protected, virtual]

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

Returns:
was read successful.

Implements AbstractSensorChannelInterface.

static AbstractSensorChannelInterface* GyroscopeSensorChannelInterface::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 GyroscopeSensorChannelInterface::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.
XYZ GyroscopeSensorChannelInterface::get (  ) 

Get latest gyroscope reading from sensor daemon.

Returns:
gyroscope reading.
static GyroscopeSensorChannelInterface* GyroscopeSensorChannelInterface::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 GyroscopeSensorChannelInterface* GyroscopeSensorChannelInterface::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.

Member Data Documentation

Name of the D-Bus interface for this class.

Definition at line 49 of file gyroscopesensor_i.h.


Property Documentation

XYZ GyroscopeSensorChannelInterface::value [read]

Definition at line 41 of file gyroscopesensor_i.h.


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