QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VehicleClockFactGroup.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
FactGroup.h
"
4
5
class
VehicleClockFactGroup
:
public
FactGroup
6
{
7
Q_OBJECT
8
Q_PROPERTY(
Fact
*currentTime READ currentTime CONSTANT)
9
Q_PROPERTY(
Fact
*currentUTCTime READ currentUTCTime CONSTANT)
10
Q_PROPERTY(
Fact
*currentDate READ currentDate CONSTANT)
11
12
public
:
13
explicit
VehicleClockFactGroup
(QObject *parent =
nullptr
);
14
15
Fact
*currentTime() {
return
&_currentTimeFact; }
16
Fact
*currentUTCTime() {
return
&_currentUTCTimeFact; }
17
Fact
*currentDate() {
return
&_currentDateFact; }
18
19
private
slots:
20
void
_updateAllValues()
final
;
21
22
private
:
23
Fact
_currentTimeFact =
Fact
(0, QStringLiteral(
"currentTime"
),
FactMetaData::valueTypeString
);
24
Fact
_currentUTCTimeFact =
Fact
(0, QStringLiteral(
"currentUTCTime"
),
FactMetaData::valueTypeString
);
25
Fact
_currentDateFact =
Fact
(0, QStringLiteral(
"currentDate"
),
FactMetaData::valueTypeString
);
26
};
FactGroup.h
FactGroup
Used to group Facts together into an object hierarachy.
Definition
FactGroup.h:19
FactMetaData::valueTypeString
@ valueTypeString
Definition
FactMetaData.h:37
Fact
A Fact is used to hold a single value within the system.
Definition
Fact.h:19
VehicleClockFactGroup
Definition
VehicleClockFactGroup.h:6
src
Vehicle
FactGroups
VehicleClockFactGroup.h
Generated by
1.9.8