sensorfw: datatypes/liddata.h Source File

sensorfw

liddata.h
Go to the documentation of this file.
1
26#ifndef LIDDATA_H
27#define LIDDATA_H
28
29#include <datatypes/genericdata.h>
30
36 class LidData : public TimedData {
37public:
38
42 enum Type {
43 UnknownLid = -1,
44 FrontLid = 0,
45 BackLid
46 };
47
48 LidData::Type type_;
49 unsigned value_;
54 LidData() : TimedData(0), type_(FrontLid), value_(0) {}
55
62 LidData(const quint64& timestamp, Type type, unsigned value) :
63 TimedData(timestamp), type_(type), value_(value) {}
64};
65
66 Q_DECLARE_METATYPE(LidData)
67#endif // LidData_H
LidData
Datatype for device lid events.
Definition liddata.h:36
LidData::LidData
LidData()
Constructor.
Definition liddata.h:54
LidData::Type
Type
Type of lid.
Definition liddata.h:42
LidData::UnknownLid
@ UnknownLid
Definition liddata.h:43
LidData::BackLid
@ BackLid
Back lid.
Definition liddata.h:45
LidData::FrontLid
@ FrontLid
Front lid.
Definition liddata.h:44
LidData::type_
LidData::Type type_
Type of lid.
Definition liddata.h:48
LidData::LidData
LidData(const quint64 &timestamp, Type type, unsigned value)
Constructor.
Definition liddata.h:62
LidData::value_
unsigned value_
Measurement value.
Definition liddata.h:49
TimedData
A base class for measurement data that contain timestamp.
Definition genericdata.h:36
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(TMatrix)
genericdata.h
Basic datatypes for filters.