QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RemoteIDSettings Class Reference

#include <RemoteIDSettings.h>

+ Inheritance diagram for RemoteIDSettings:
+ Collaboration diagram for RemoteIDSettings:

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
 

Detailed Description

Definition at line 7 of file RemoteIDSettings.h.

Member Enumeration Documentation

◆ ClassificationType

Enumerator
UNDEFINED 
EU 

Definition at line 27 of file RemoteIDSettings.h.

◆ LocationType

enum class RemoteIDSettings::LocationType
strong
Enumerator
TAKEOFF 
LIVE 
FIXED 

Definition at line 20 of file RemoteIDSettings.h.

◆ RegionOperation

Enumerator
FAA 
EU 

Definition at line 14 of file RemoteIDSettings.h.

Constructor & Destructor Documentation

◆ RemoteIDSettings()

RemoteIDSettings::RemoteIDSettings ( QObject *  parent = nullptr)

Member Function Documentation

◆ basicIDValid()

bool RemoteIDSettings::basicIDValid ( ) const
inline

true: the basic ID entered in settings is complete enough to broadcast

Definition at line 43 of file RemoteIDSettings.h.

◆ basicIDValidChanged

void RemoteIDSettings::basicIDValidChanged ( )
signal

◆ migrateLegacyOperatorID()

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().

◆ operatorIDValidForRegion()

bool RemoteIDSettings::operatorIDValidForRegion ( ) const
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.

◆ operatorIDValidForRegionChanged

void RemoteIDSettings::operatorIDValidForRegionChanged ( )
signal

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