Public Types | Signals | Public Member Functions

MeeGo::QmTap Class Reference

Provides device tapping events. More...

#include <qmtap.h>

Inheritance diagram for MeeGo::QmTap:
Inheritance graph
[legend]
Collaboration diagram for MeeGo::QmTap:
Collaboration graph
[legend]

List of all members.

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 ()

Detailed Description

Provides device tapping events.

Scope:
Internal

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.


Member Enumeration Documentation

Enumerator:
X 

Left or right side tapped

Y 

Top or down side tapped

Z 

Face or bottom tapped

LeftRight 

Tapped from left to right

RightLeft 

Tapped from right to left

TopBottom 

Tapped from top to bottom

BottomTop 

Tapped from bottom to top

FaceBack 

Tapped from face to back

BackFace 

Tapped from back to face

Definition at line 88 of file qmtap.h.

Enumerator:
DoubleTap 

Double Tap

SingleTap 

Single Tap

Definition at line 100 of file qmtap.h.


Constructor & Destructor Documentation

MeeGo::QmTap::QmTap ( QObject *  parent = 0  ) 

Constructor

Parameters:
parent Parent QObject
MeeGo::QmTap::~QmTap (  ) 

Destructor


Member Function Documentation

void MeeGo::QmTap::tapped ( const MeeGo::QmTapReading   )  [signal]

Sent when a tapping event has occurred.


The documentation for this class was generated from the following file: