sensorfw
|
Client interface for listening device orientation changes. More...
#include <orientationsensor_i.h>
Signals | |
void | orientationChanged (const Unsigned &orientation) |
Sent when device orientation has changed. | |
Public Member Functions | |
Unsigned | orientation () |
Get latest orientation reading from sensor daemon. | |
int | threshold () |
Gets the currently used threshold value. | |
void | setThreshold (int value) |
Sets the currently used threshold value. | |
OrientationSensorChannelInterface (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 OrientationSensorChannelInterface * | listenInterface (const QString &id) |
Request a listening interface to the sensor. | |
static OrientationSensorChannelInterface * | controlInterface (const QString &id) |
Request a control interface to the sensor. | |
static OrientationSensorChannelInterface * | 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 bool | dataReceivedImpl () |
Callback for subclasses in which they must read their expected data from socket. | |
Properties | |
Unsigned | orientation |
int | threshold |
Client interface for listening device orientation changes.
Definition at line 38 of file orientationsensor_i.h.
OrientationSensorChannelInterface::OrientationSensorChannelInterface | ( | const QString & | path, |
int | sessionId | ||
) |
Constructor.
path | path. |
sessionId | session ID. |
static OrientationSensorChannelInterface* OrientationSensorChannelInterface::controlInterface | ( | const QString & | id | ) | [static] |
Request a control interface to the sensor.
id | sensor ID. |
virtual bool OrientationSensorChannelInterface::dataReceivedImpl | ( | ) | [protected, virtual] |
Callback for subclasses in which they must read their expected data from socket.
Implements AbstractSensorChannelInterface.
static AbstractSensorChannelInterface* OrientationSensorChannelInterface::factoryMethod | ( | const QString & | id, |
int | sessionId | ||
) | [static] |
Create new instance of the class.
id | Sensor ID. |
sessionId | Session ID. |
static OrientationSensorChannelInterface* OrientationSensorChannelInterface::interface | ( | const QString & | id | ) | [static] |
Request an interface to the sensor.
id | sensor ID. |
static const OrientationSensorChannelInterface* OrientationSensorChannelInterface::listenInterface | ( | const QString & | id | ) | [static] |
Request a listening interface to the sensor.
id | sensor ID. |
Get latest orientation reading from sensor daemon.
void OrientationSensorChannelInterface::orientationChanged | ( | const Unsigned & | orientation | ) | [signal] |
Sent when device orientation has changed.
orientation | Current device orientation. The given integer value is enumeration from PoseData::Orientation. |
void OrientationSensorChannelInterface::setThreshold | ( | int | value | ) |
Sets the currently used threshold value.
Value is in mG.
value | threshold value. |
Gets the currently used threshold value.
Value is in mG.
const char* OrientationSensorChannelInterface::staticInterfaceName [static] |
Name of the D-Bus interface for this class.
Definition at line 49 of file orientationsensor_i.h.
Definition at line 42 of file orientationsensor_i.h.
int OrientationSensorChannelInterface::threshold [read, write] |
Definition at line 43 of file orientationsensor_i.h.