Go to the documentation of this file.
27 #ifndef ORIENTATIONSENSOR_I_H
28 #define ORIENTATIONSENSOR_I_H
30 #include <QtDBus/QtDBus>
Base class for sensor interface.
Client interface for listening device orientation changes.
void setThreshold(int value)
Sets the currently used threshold value.
int threshold()
Gets the currently used threshold value.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
::OrientationSensorChannelInterface OrientationSensor
Base-class for client facades of different sensor types.
void orientationChanged(const Unsigned &orientation)
Sent when device orientation has changed.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
QObject based datatype for TimedUnsigned.
static OrientationSensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
static const OrientationSensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
OrientationSensorChannelInterface(const QString &path, int sessionId)
Constructor.
QObject facae for TimedUnsigned.
static OrientationSensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
Unsigned orientation()
Get latest orientation reading from sensor daemon.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.