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,
53  };
54 
58  enum Type
59  {
60  DoubleTap = 0,
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::Type type_
Type of tap.
Definition: tapdata.h:65
Tapped from left to right.
Definition: tapdata.h:47
Tapped from bottom to top.
Definition: tapdata.h:50
Tapped from top to bottom.
Definition: tapdata.h:49
TapData()
Constructor.
Definition: tapdata.h:70
Face or bottom tapped.
Definition: tapdata.h:46
Left or right side tapped.
Definition: tapdata.h:44
TapData::Direction direction_
Direction of tap.
Definition: tapdata.h:64
Direction
Direction of tap.
Definition: tapdata.h:42
Tapped from back to face.
Definition: tapdata.h:52
Datatype for device tap events.
Definition: tapdata.h:36
Basic datatypes for filters.
Single tap.
Definition: tapdata.h:61
A base class for measurement data that contain timestamp.
Definition: genericdata.h:35
Tapped from right to left.
Definition: tapdata.h:48
Top or down side tapped.
Definition: tapdata.h:45
Tapped from face to back.
Definition: tapdata.h:51
Double tap.
Definition: tapdata.h:60
TapData(const quint64 &timestamp, Direction direction, Type type)
Constructor.
Definition: tapdata.h:78
Type
Type of tap.
Definition: tapdata.h:58