31 #include <QtDBus/QtDBus> 137 QList<TapData> tapValues_;
140 static const int doubleClickInteval = 500;
static const TapSensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
Base class for sensor interface.
Client interface for accessing accelerometer based tap events.
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.
void dataAvailable(const Tap &data)
Sent when new tap event has occurred.
TapSelection getTapType()
Get type of taps to be listened for.
int sessionId() const
Get ID of the current session.
TapSelection
Tap type selection.
::TapSensorChannelInterface TapSensor
static TapSensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
QString type()
Textual description about sensor type.
static TapSensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
QObject facade for TapData.
Listen both single and double taps.
void setTapType(TapSelection type)
Set type of taps to be listened for.
QObject based datatype for TapData.
Datatype for device tap events.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
TapSensorChannelInterface(const QString &path, int sessionId)
Constructor.