|
sensorfw
|
Client interface for accessing accelerometer sensor. More...
#include <accelerometersensor_i.h>
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 accelerometer reading from sensor daemon. | |
| AccelerometerSensorChannelInterface (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 AccelerometerSensorChannelInterface * | listenInterface (const QString &id) |
| Request a listening interface to the sensor. | |
| static AccelerometerSensorChannelInterface * | controlInterface (const QString &id) |
| Request a control interface to the sensor. | |
| static AccelerometerSensorChannelInterface * | 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 |
Client interface for accessing accelerometer sensor.
Definition at line 38 of file accelerometersensor_i.h.
| AccelerometerSensorChannelInterface::AccelerometerSensorChannelInterface | ( | const QString & | path, |
| int | sessionId | ||
| ) |
Constructor.
| path | path. |
| sessionId | session ID. |
| virtual void AccelerometerSensorChannelInterface::connectNotify | ( | const char * | signal | ) | [protected, virtual] |
| static AccelerometerSensorChannelInterface* AccelerometerSensorChannelInterface::controlInterface | ( | const QString & | id | ) | [static] |
Request a control interface to the sensor.
| id | sensor ID. |
| void AccelerometerSensorChannelInterface::dataAvailable | ( | const XYZ & | data | ) | [signal] |
Sent when new measurement data has become available.
| data | New measurement data. |
| virtual bool AccelerometerSensorChannelInterface::dataReceivedImpl | ( | ) | [protected, virtual] |
Callback for subclasses in which they must read their expected data from socket.
Implements AbstractSensorChannelInterface.
| static AbstractSensorChannelInterface* AccelerometerSensorChannelInterface::factoryMethod | ( | const QString & | id, |
| int | sessionId | ||
| ) | [static] |
Create new instance of the class.
| id | Sensor ID. |
| sessionId | Session ID. |
| void AccelerometerSensorChannelInterface::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. |
Get latest accelerometer reading from sensor daemon.
| static AccelerometerSensorChannelInterface* AccelerometerSensorChannelInterface::interface | ( | const QString & | id | ) | [static] |
Request an interface to the sensor.
| id | sensor ID. |
| static const AccelerometerSensorChannelInterface* AccelerometerSensorChannelInterface::listenInterface | ( | const QString & | id | ) | [static] |
Request a listening interface to the sensor.
| id | sensor ID. |
const char* AccelerometerSensorChannelInterface::staticInterfaceName [static] |
Name of the D-Bus interface for this class.
Definition at line 48 of file accelerometersensor_i.h.
Definition at line 42 of file accelerometersensor_i.h.