sensorfw
|
Client interface for listening device rotation changes. More...
#include <rotationsensor_i.h>
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 |
Client interface for listening device rotation changes.
Definition at line 39 of file rotationsensor_i.h.
RotationSensorChannelInterface::RotationSensorChannelInterface | ( | const QString & | path, |
int | sessionId | ||
) |
Constructor.
path | path. |
sessionId | session id. |
virtual void RotationSensorChannelInterface::connectNotify | ( | const char * | signal | ) | [protected, virtual] |
static RotationSensorChannelInterface* RotationSensorChannelInterface::controlInterface | ( | const QString & | id | ) | [static] |
Request a control interface to the sensor.
id | sensor ID. |
void RotationSensorChannelInterface::dataAvailable | ( | const XYZ & | data | ) | [signal] |
Sent when device rotation has changed.
data | Current device rotation. |
virtual bool RotationSensorChannelInterface::dataReceivedImpl | ( | ) | [protected, virtual] |
Callback for subclasses in which they must read their expected data from socket.
Implements AbstractSensorChannelInterface.
static AbstractSensorChannelInterface* RotationSensorChannelInterface::factoryMethod | ( | const QString & | id, |
int | sessionId | ||
) | [static] |
Create new instance of the class.
id | Sensor ID. |
sessionId | Session ID. |
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.
frame | New measurement frame. |
bool RotationSensorChannelInterface::hasZ | ( | ) |
Does reported readings include Z coordinate.
static RotationSensorChannelInterface* RotationSensorChannelInterface::interface | ( | const QString & | id | ) | [static] |
Request an interface to the sensor.
id | sensor ID. |
static const RotationSensorChannelInterface* RotationSensorChannelInterface::listenInterface | ( | const QString & | id | ) | [static] |
Request a listening interface to the sensor.
id | sensor ID. |
Get latest rotation reading from sensor daemon.
const char* RotationSensorChannelInterface::staticInterfaceName [static] |
Get name of the D-Bus interface for this class.
Definition at line 52 of file rotationsensor_i.h.
bool RotationSensorChannelInterface::hasZ [read] |
Definition at line 44 of file rotationsensor_i.h.
Definition at line 43 of file rotationsensor_i.h.