Provides device tapping events. More...
#include <qmtap.h>
Public Types | |
enum | Direction { X = 0, Y, Z, LeftRight, RightLeft, TopBottom, BottomTop, FaceBack, BackFace } |
enum | Type { DoubleTap = 0, SingleTap } |
Signals | |
void | tapped (const MeeGo::QmTapReading) |
Public Member Functions | |
QmTap (QObject *parent=0) | |
~QmTap () |
Provides device tapping events.
Provides the device tapping events. Taps can either be single or double taps. See TapData::Direction and TapData::Type for description of different tap events.
Following image displays the device side naming.
Z ^ | | | | Top | Y ---------- | ^ / NOKIA /| | / /-------- / | | / // // / | Left / // // / | / // Face // / | / // // / Right | / // // / | / /---------/ / | / / O / / | / / / / | / ---------- / |/ |_________!/ -------------------------->X Bottom
To get measurements and change sensor settings, the client must open a session (and call start() for data). Details can be found from documentation of QmSensor.
Definition at line 83 of file qmtap.h.
enum MeeGo::QmTap::Type |
MeeGo::QmTap::QmTap | ( | QObject * | parent = 0 |
) |
Constructor
parent | Parent QObject |
MeeGo::QmTap::~QmTap | ( | ) |
Destructor
void MeeGo::QmTap::tapped | ( | const MeeGo::QmTapReading | ) | [signal] |
Sent when a tapping event has occurred.