00001 00030 #ifndef QMTAP_H 00031 #define QMTAP_H 00032 00033 #include <QtCore/qobject.h> 00034 #include <qmsensor.h> 00035 00036 00037 QT_BEGIN_HEADER 00038 00039 namespace MeeGo { 00040 00041 class QmTapReading; 00042 00083 class MEEGO_SYSTEM_EXPORT QmTap : public QmSensor 00084 { 00085 Q_OBJECT; 00086 00087 public: 00088 enum Direction { 00089 X = 0, 00090 Y, 00091 Z, 00092 LeftRight, 00093 RightLeft, 00094 TopBottom, 00095 BottomTop, 00096 FaceBack, 00097 BackFace 00098 }; 00099 00100 enum Type { 00101 DoubleTap = 0, 00102 SingleTap 00103 }; 00104 00109 QmTap(QObject *parent = 0); 00113 ~QmTap(); 00114 00115 Q_SIGNALS: 00119 void tapped(const MeeGo::QmTapReading); 00120 00121 }; 00122 00126 class QmTapReading : public QmSensorReading 00127 { 00128 public: 00129 QmTap::Direction direction; 00130 QmTap::Type type; 00131 }; 00132 00133 } // MeeGo namespace 00134 00135 QT_END_HEADER 00136 00137 #endif