31#include <QtDBus/QtDBus>
137 QList<TapData> tapValues_;
140 static const int doubleClickInteval = 500;
Base class for sensor interface.
Base-class for client facades of different sensor types.
Client interface for accessing accelerometer based tap events.
TapSensorChannelInterface(const QString &path, int sessionId)
Constructor.
void dataAvailable(const Tap &data)
Sent when new tap event has occurred.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.
static TapSensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
static const TapSensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
static TapSensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
TapSelection getTapType()
Get type of taps to be listened for.
TapSelection
Tap type selection.
@ Single
Only listen single taps.
@ Double
Only listen double taps.
@ SingleDouble
Listen both single and double taps.
void setTapType(TapSelection type)
Set type of taps to be listened for.
QObject facade for TapData.
::TapSensorChannelInterface TapSensor
QObject based datatype for TapData.
Datatype for device tap events.