sensorfw
datatypes/tapdata.h
Go to the documentation of this file.
00001 
00026 #ifndef TAPDATA_H
00027 #define TAPDATA_H
00028 
00029 #include <datatypes/genericdata.h>
00030 
00036 class TapData : public TimedData {
00037 public:
00042     enum Direction
00043     {
00044         X = 0,     
00045         Y,         
00046         Z,         
00047         LeftRight, 
00048         RightLeft, 
00049         TopBottom, 
00050         BottomTop, 
00051         FaceBack,  
00052         BackFace   
00053     };
00054 
00058     enum Type
00059     {
00060         DoubleTap = 0, 
00061         SingleTap      
00062     };
00063 
00064     TapData::Direction direction_; 
00065     TapData::Type type_;           
00070     TapData() : TimedData(0), direction_(X), type_(SingleTap) {}
00071 
00078     TapData(const quint64& timestamp, Direction direction, Type type) :
00079         TimedData(timestamp), direction_(direction), type_(type) {}
00080 };
00081 
00082 #endif // TAPDATA_H