sensorfw: datatypes/tapdata.h Source File

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