Client interface for accessing accelerometer based tap events. More...
#include <tapsensor_i.h>
Public Types | |
enum | TapSelection { Single = 1, Double, SingleDouble } |
Tap type selection. More... | |
Signals | |
void | dataAvailable (const Tap &data) |
Sent when new tap event has occurred. | |
Public Member Functions | |
TapSensorChannelInterface (const QString &path, int sessionId) | |
Constructor. | |
void | setTapType (TapSelection type) |
Set type of taps to be listened for. | |
TapSelection | getTapType () |
Get type of taps to be listened for. | |
Static Public Member Functions | |
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. | |
static TapSensorChannelInterface * | interface (const QString &id) |
Request an interface to the sensor. | |
Static Public Attributes | |
static const char * | staticInterfaceName |
Name of the D-Bus interface for this class. | |
Protected Member Functions | |
virtual bool | dataReceivedImpl () |
Callback for subclasses in which they must read their expected data from socket. |
Client interface for accessing accelerometer based tap events.
Definition at line 43 of file tapsensor_i.h.
Tap type selection.
Single |
Only listen single taps. |
Double |
Only listen double taps. |
SingleDouble |
Listen both single and double taps. |
Definition at line 100 of file tapsensor_i.h.
TapSensorChannelInterface::TapSensorChannelInterface | ( | const QString & | path, | |
int | sessionId | |||
) |
Constructor.
path | path. | |
sessionId | session ID. |
static TapSensorChannelInterface* TapSensorChannelInterface::controlInterface | ( | const QString & | id | ) | [static] |
Request a control interface to the sensor.
id | sensor ID. |
void TapSensorChannelInterface::dataAvailable | ( | const Tap & | data | ) | [signal] |
Sent when new tap event has occurred.
data | The tap event. |
virtual bool TapSensorChannelInterface::dataReceivedImpl | ( | ) | [protected, virtual] |
Callback for subclasses in which they must read their expected data from socket.
Implements AbstractSensorChannelInterface.
static AbstractSensorChannelInterface* TapSensorChannelInterface::factoryMethod | ( | const QString & | id, | |
int | sessionId | |||
) | [static] |
Create new instance of the class.
id | Sensor ID. | |
sessionId | Session ID. |
TapSelection TapSensorChannelInterface::getTapType | ( | ) |
Get type of taps to be listened for.
static TapSensorChannelInterface* TapSensorChannelInterface::interface | ( | const QString & | id | ) | [static] |
Request an interface to the sensor.
id | sensor ID. |
static const TapSensorChannelInterface* TapSensorChannelInterface::listenInterface | ( | const QString & | id | ) | [static] |
Request a listening interface to the sensor.
id | sensor ID. |
void TapSensorChannelInterface::setTapType | ( | TapSelection | type | ) |
Set type of taps to be listened for.
type | type of tap to be listened for. |
const char* TapSensorChannelInterface::staticInterfaceName [static] |
Name of the D-Bus interface for this class.
Definition at line 52 of file tapsensor_i.h.