Client interface for accessing magnetometer sensor. More...
#include <magnetometersensor_i.h>
Public Slots | |
QDBusReply< void > | reset () |
Reset magnetometer calibration to 0. | |
Signals | |
void | dataAvailable (const MagneticField &data) |
Sent when new measurement is available. | |
void | frameAvailable (const QVector< MagneticField > &frame) |
Sent when new measurement frame has become available. | |
Public Member Functions | |
MagneticField | magneticField () |
Get latest magnetometer reading from sensor daemon. | |
MagnetometerSensorChannelInterface (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 MagnetometerSensorChannelInterface * | listenInterface (const QString &id) |
Request a listening interface to the sensor. | |
static MagnetometerSensorChannelInterface * | controlInterface (const QString &id) |
Request a control interface to the sensor. | |
static MagnetometerSensorChannelInterface * | 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 | |
MagneticField | magneticField |
Client interface for accessing magnetometer sensor.
Definition at line 40 of file magnetometersensor_i.h.
MagnetometerSensorChannelInterface::MagnetometerSensorChannelInterface | ( | const QString & | path, | |
int | sessionId | |||
) |
Constructor.
path | path. | |
sessionId | session id. |
virtual void MagnetometerSensorChannelInterface::connectNotify | ( | const char * | signal | ) | [protected, virtual] |
static MagnetometerSensorChannelInterface* MagnetometerSensorChannelInterface::controlInterface | ( | const QString & | id | ) | [static] |
Request a control interface to the sensor.
id | sensor ID. |
void MagnetometerSensorChannelInterface::dataAvailable | ( | const MagneticField & | data | ) | [signal] |
Sent when new measurement is available.
data | Current magnetic field measurement. |
virtual bool MagnetometerSensorChannelInterface::dataReceivedImpl | ( | ) | [protected, virtual] |
Callback for subclasses in which they must read their expected data from socket.
Implements AbstractSensorChannelInterface.
static AbstractSensorChannelInterface* MagnetometerSensorChannelInterface::factoryMethod | ( | const QString & | id, | |
int | sessionId | |||
) | [static] |
Create new instance of the class.
id | Sensor ID. | |
sessionId | Session ID. |
void MagnetometerSensorChannelInterface::frameAvailable | ( | const QVector< MagneticField > & | 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. |
static MagnetometerSensorChannelInterface* MagnetometerSensorChannelInterface::interface | ( | const QString & | id | ) | [static] |
Request an interface to the sensor.
id | sensor ID. |
static const MagnetometerSensorChannelInterface* MagnetometerSensorChannelInterface::listenInterface | ( | const QString & | id | ) | [static] |
Request a listening interface to the sensor.
id | sensor ID. |
MagneticField MagnetometerSensorChannelInterface::magneticField | ( | ) |
Get latest magnetometer reading from sensor daemon.
QDBusReply<void> MagnetometerSensorChannelInterface::reset | ( | ) | [slot] |
Reset magnetometer calibration to 0.
const char* MagnetometerSensorChannelInterface::staticInterfaceName [static] |
Name of the D-Bus interface for this class.
Definition at line 50 of file magnetometersensor_i.h.
MagneticField MagnetometerSensorChannelInterface::magneticField [read] |
Definition at line 44 of file magnetometersensor_i.h.