QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SigningStatus.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QMetaType>
4#include <QtCore/QObject>
5#include <QtCore/QString>
6#include <QtQmlIntegration/QtQmlIntegration>
7
9{
10 Q_GADGET
11 QML_VALUE_TYPE(signingStatus)
12 Q_PROPERTY(SigningStatus::State state MEMBER state)
13 Q_PROPERTY(bool enabled MEMBER enabled)
14 Q_PROPERTY(bool pending READ pending)
15 Q_PROPERTY(QString keyName MEMBER keyName)
16 Q_PROPERTY(QString statusText MEMBER statusText)
17 Q_PROPERTY(int streamCount MEMBER streamCount)
18
19public:
20 enum class State : uint8_t { Off, Enabling, On, Disabling };
21 Q_ENUM(State)
22
24 bool enabled{false};
25 QString keyName;
26 QString statusText;
28
29 bool pending() const { return state == State::Enabling || state == State::Disabling; }
30
31 bool operator==(const SigningStatus&) const = default;
32};
33
Q_DECLARE_METATYPE(satellite_info_s)
bool operator==(const SigningStatus &) const =default
bool pending() const
QString statusText