sensorfw
tapdata.h
Go to the documentation of this file.
1 
26 #ifndef TAPDATA_H
27 #define TAPDATA_H
28 
29 #include <datatypes/genericdata.h>
30 
36 class TapData : public TimedData {
37 public:
42  enum Direction
43  {
44  X = 0,
45  Y,
46  Z,
52  BackFace
53  };
54 
58  enum Type
59  {
60  DoubleTap = 0,
61  SingleTap
62  };
63 
71 
78  TapData(const quint64& timestamp, Direction direction, Type type) :
79  TimedData(timestamp), direction_(direction), type_(type) {}
80 };
81 
82 #endif // TAPDATA_H
TapData::BackFace
@ BackFace
Tapped from back to face.
Definition: tapdata.h:52
TapData::FaceBack
@ FaceBack
Tapped from face to back.
Definition: tapdata.h:51
TapData::TapData
TapData()
Constructor.
Definition: tapdata.h:70
TapData::TapData
TapData(const quint64 &timestamp, Direction direction, Type type)
Constructor.
Definition: tapdata.h:78
TapData::TopBottom
@ TopBottom
Tapped from top to bottom.
Definition: tapdata.h:49
TapData::DoubleTap
@ DoubleTap
Double tap.
Definition: tapdata.h:60
TapData::direction_
TapData::Direction direction_
Direction of tap.
Definition: tapdata.h:64
TapData
Datatype for device tap events.
Definition: tapdata.h:36
TapData::LeftRight
@ LeftRight
Tapped from left to right.
Definition: tapdata.h:47
TapData::Y
@ Y
Top or down side tapped.
Definition: tapdata.h:45
TapData::SingleTap
@ SingleTap
Single tap.
Definition: tapdata.h:61
TapData::BottomTop
@ BottomTop
Tapped from bottom to top.
Definition: tapdata.h:50
TapData::RightLeft
@ RightLeft
Tapped from right to left.
Definition: tapdata.h:48
genericdata.h
Basic datatypes for filters.
TapData::Type
Type
Type of tap.
Definition: tapdata.h:59
TapData::type_
TapData::Type type_
Type of tap.
Definition: tapdata.h:65
TapData::Z
@ Z
Face or bottom tapped.
Definition: tapdata.h:46
TapData::Direction
Direction
Direction of tap.
Definition: tapdata.h:43
TimedData
A base class for measurement data that contain timestamp.
Definition: genericdata.h:36
TapData::X
@ X
Left or right side tapped.
Definition: tapdata.h:44