sensorfw: LidData Class Reference

sensorfw

Public Types | Public Member Functions | Public Attributes | List of all members
LidData Class Reference

Datatype for device lid events. More...

`#include <liddata.h>`

Inheritance diagram for LidData:

## Public Types
enum | Type { UnknownLid = -1 , FrontLid = 0 , BackLid }
| Type of lid. More...

## Public Member Functions
| LidData ()
| Constructor. More...
| LidData (const quint64 &timestamp, Type type, unsigned value)
| Constructor. More...
Public Member Functions inherited from TimedData
| TimedData (const quint64 &timestamp)
| Constructor. More...

## Public Attributes
LidData::Type | type_
| Type of lid. More...
unsigned | value_
| Measurement value. More...
Public Attributes inherited from TimedData
quint64 | timestamp_
| monotonic time (microsec) More...

## Detailed Description

Datatype for device lid events.

Contains enumerated values for different types of lid events.

Definition at line 36 of file liddata.h.

## Member Enumeration Documentation

## ◆ Type

enum LidData::Type

Type of lid.

Enumerator
UnknownLid |
FrontLid | Front lid.
BackLid | Back lid.

Definition at line 42 of file liddata.h.

## Constructor & Destructor Documentation

## ◆ LidData() [1/2]

LidData::LidData | ( |  | ) |
| inline

Constructor.

Definition at line 54 of file liddata.h.

## ◆ LidData() [2/2]

LidData::LidData | ( | const quint64 & | timestamp,
|  | Type | type,
|  | unsigned | value
| ) |  |
| inline

Constructor.

Parameters

  timestamp | Timestamp of lid event.
  type | Type of lid.
  value | Initial value to use

Definition at line 62 of file liddata.h.

## Member Data Documentation

## ◆ type_

LidData::Type LidData::type_

Type of lid.

Definition at line 48 of file liddata.h.

## ◆ value_

unsigned LidData::value_

Measurement value.

Definition at line 49 of file liddata.h.

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

- datatypes/liddata.h