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