#include <RemoteIDSettings.h>
Public Types | |
| enum class | RegionOperation { FAA , EU } |
| enum class | LocationType { TAKEOFF , LIVE , FIXED } |
| enum class | ClassificationType { UNDEFINED , EU } |
Signals | |
| void | operatorIDValidForRegionChanged () |
| void | basicIDValidChanged () |
| Signals inherited from SettingsGroup | |
| void | userVisibleChanged () |
Public Member Functions | |
| RemoteIDSettings (QObject *parent=nullptr) | |
| bool | operatorIDValidForRegion () const |
| bool | basicIDValid () const |
| true: the basic ID entered in settings is complete enough to broadcast | |
| void | migrateLegacyOperatorID () |
| Public Member Functions inherited from SettingsGroup | |
| SettingsGroup (const QString &name, const QString &settingsGroup, QObject *parent=nullptr) | |
| virtual bool | userVisible () |
| virtual void | setUserVisible (bool vis) |
| QString | settingsGroup () const |
Additional Inherited Members | |
| Protected Member Functions inherited from SettingsGroup | |
| SettingsFact * | _createSettingsFact (const QString &factName) |
| Protected Attributes inherited from SettingsGroup | |
| bool | _userVisible |
| QString | _name |
| QString | _settingsGroup |
| QMap< QString, FactMetaData * > | _nameToMetaDataMap |
Definition at line 7 of file RemoteIDSettings.h.
|
strong |
| Enumerator | |
|---|---|
| UNDEFINED | |
| EU | |
Definition at line 27 of file RemoteIDSettings.h.
|
strong |
| Enumerator | |
|---|---|
| TAKEOFF | |
| LIVE | |
| FIXED | |
Definition at line 20 of file RemoteIDSettings.h.
|
strong |
| Enumerator | |
|---|---|
| FAA | |
| EU | |
Definition at line 14 of file RemoteIDSettings.h.
| RemoteIDSettings::RemoteIDSettings | ( | QObject * | parent = nullptr | ) |
References DEFINE_SETTING_NAME_GROUP, operatorIDValidForRegion(), operatorIDValidForRegionChanged(), and RemoteIDSettings().
Referenced by RemoteIDSettings().
|
inline |
true: the basic ID entered in settings is complete enough to broadcast
Definition at line 43 of file RemoteIDSettings.h.
References basicIDValid().
Referenced by basicIDValid().
|
signal |
| void RemoteIDSettings::migrateLegacyOperatorID | ( | ) |
Migrates legacy single-fact operator ID storage to the per-region facts. Required when upgrading from QGC v5.0.x or earlier (the single operatorID fact shipped through v5.0.x; operatorIDValid shipped in v4.4.0 - v5.0.x). Removable once upgrades from those versions no longer need to be supported. Idempotent: legacy QSettings keys are removed after migration.
Definition at line 28 of file RemoteIDSettings.cc.
References SettingsGroup::settingsGroup().
|
inline |
true: the current region's operator ID is set. EU IDs are valid by construction: writes are gated by an EN 4709-002 validator and sanitized to the 16-char public part.
Definition at line 39 of file RemoteIDSettings.h.
References operatorIDValidForRegion().
Referenced by operatorIDValidForRegion(), and RemoteIDSettings().
|
signal |
Referenced by RemoteIDSettings().