Go to the documentation of this file.
27 #ifndef COMPASSSENSOR_I_H
28 #define COMPASSSENSOR_I_H
30 #include <QtDBus/QtDBus>
140 bool useDeclination_;
QObject facade for CompassData.
QObject based datatype for CompassData.
void setUseDeclination(bool enable)
Sets whether the declination correction should be applied or not.
Base class for sensor interface.
void dataAvailable(const Compass &value)
Sent when compass direction or calibration level has changed.
Compass get()
Get latest compass reading from sensor daemon.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
::CompassSensorChannelInterface CompassSensor
static CompassSensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
static const CompassSensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
Base-class for client facades of different sensor types.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
CompassSensorChannelInterface(const QString &path, int sessionId)
Constructor.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.
bool useDeclination()
Returns whether the sensor is applying declination correction to the output value and returning true ...
Client interface for accessing compass sensor.
static CompassSensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
int declinationValue()
Returns the currently used declination correction value.