sensorfw
TapData Class Reference

Datatype for device tap events. More...

#include <tapdata.h>

Inheritance diagram for TapData:
TimedData

Public Types

enum  Direction {
  X = 0 , Y , Z , LeftRight ,
  RightLeft , TopBottom , BottomTop , FaceBack ,
  BackFace
}
 Direction of tap. More...
 
enum  Type { DoubleTap = 0 , SingleTap }
 Type of tap. More...
 

Public Member Functions

 TapData ()
 Constructor. More...
 
 TapData (const quint64 &timestamp, Direction direction, Type type)
 Constructor. More...
 
- Public Member Functions inherited from TimedData
 TimedData (const quint64 &timestamp)
 Constructor. More...
 

Public Attributes

TapData::Direction direction_
 Direction of tap. More...
 
TapData::Type type_
 Type of tap. More...
 
- Public Attributes inherited from TimedData
quint64 timestamp_
 monotonic time (microsec) More...
 

Detailed Description

Datatype for device tap events.

Contains enumerated values for different types of tap events.

Definition at line 36 of file tapdata.h.

Member Enumeration Documentation

◆ Direction

Direction of tap.

The last six directions may not be supported depending on hardware.

Enumerator

Left or right side tapped.

Top or down side tapped.

Face or bottom tapped.

LeftRight 

Tapped from left to right.

RightLeft 

Tapped from right to left.

TopBottom 

Tapped from top to bottom.

BottomTop 

Tapped from bottom to top.

FaceBack 

Tapped from face to back.

BackFace 

Tapped from back to face.

Definition at line 42 of file tapdata.h.

◆ Type

Type of tap.

Enumerator
DoubleTap 

Double tap.

SingleTap 

Single tap.

Definition at line 58 of file tapdata.h.

Constructor & Destructor Documentation

◆ TapData() [1/2]

TapData::TapData ( )
inline

Constructor.

Definition at line 70 of file tapdata.h.

◆ TapData() [2/2]

TapData::TapData ( const quint64 &  timestamp,
Direction  direction,
Type  type 
)
inline

Constructor.

Parameters
timestampTimestamp of tap event.
directionDirection of tap.
typeType of tap.

Definition at line 78 of file tapdata.h.

Member Data Documentation

◆ direction_

TapData::Direction TapData::direction_

Direction of tap.

Definition at line 64 of file tapdata.h.

◆ type_

TapData::Type TapData::type_

Type of tap.

Definition at line 65 of file tapdata.h.


The documentation for this class was generated from the following file: