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

#include <SafetyComponent.h>

+ Inheritance diagram for SafetyComponent:
+ Collaboration diagram for SafetyComponent:

Public Member Functions

 SafetyComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
 
QStringList setupCompleteChangedTriggerList (void) const override
 
QString name (void) const override
 
QString description (void) const override
 
QString iconResource (void) const override
 
bool requiresSetup (void) const override
 
bool setupComplete (void) const override
 
QUrl setupSource (void) const override
 
QUrl summaryQmlSource (void) const override
 
QString vehicleConfigJson (void) const override
 Resource path to a VehicleConfig.json page definition, or empty if none.
 
bool allowSetupWhileArmed (void) const override
 
bool allowSetupWhileFlying (void) const override
 
- Public Member Functions inherited from VehicleComponent
 VehicleComponent (Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)
 
virtual ~VehicleComponent ()
 
virtual QStringList sections () const
 
QVariantMap sectionKeywords () const
 Search keywords per section, keyed by section title. Values are original-case translatable terms.
 
virtual bool showFirstSectionOnRootClick () const
 When true, clicking the root component in the tree selects the first section instead of showing all.
 
virtual Q_INVOKABLE bool sectionSetupComplete (const QString &sectionName) const
 Returns setup-complete status for a named section. Default returns true (no per-section tracking).
 
virtual void addSummaryQmlComponent (QQmlContext *context, QQuickItem *parent)
 
virtual void setupTriggerSignals ()
 
AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent () const
 

Additional Inherited Members

- Signals inherited from VehicleComponent
void setupCompleteChanged ()
 
void setupSourceChanged ()
 
void sectionsChanged ()
 
- Protected Slots inherited from VehicleComponent
void _triggerUpdated (QVariant)
 
- Protected Attributes inherited from VehicleComponent
Vehicle_vehicle = nullptr
 
AutoPilotPlugin_autopilot = nullptr
 
AutoPilotPlugin::KnownVehicleComponent _KnownVehicleComponent
 

Detailed Description

Definition at line 5 of file SafetyComponent.h.

Constructor & Destructor Documentation

◆ SafetyComponent()

SafetyComponent::SafetyComponent ( Vehicle vehicle,
AutoPilotPlugin autopilot,
QObject *  parent = nullptr 
)

Definition at line 3 of file SafetyComponent.cc.

Member Function Documentation

◆ allowSetupWhileArmed()

bool SafetyComponent::allowSetupWhileArmed ( void  ) const
inlineoverridevirtual

Reimplemented from VehicleComponent.

Definition at line 24 of file SafetyComponent.h.

◆ allowSetupWhileFlying()

bool SafetyComponent::allowSetupWhileFlying ( void  ) const
inlineoverridevirtual

Reimplemented from VehicleComponent.

Definition at line 25 of file SafetyComponent.h.

◆ description()

QString SafetyComponent::description ( void  ) const
overridevirtual

Reimplemented from VehicleComponent.

Definition at line 14 of file SafetyComponent.cc.

◆ iconResource()

QString SafetyComponent::iconResource ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 19 of file SafetyComponent.cc.

◆ name()

QString SafetyComponent::name ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 9 of file SafetyComponent.cc.

◆ requiresSetup()

bool SafetyComponent::requiresSetup ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 24 of file SafetyComponent.cc.

◆ setupComplete()

bool SafetyComponent::setupComplete ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 29 of file SafetyComponent.cc.

◆ setupCompleteChangedTriggerList()

QStringList SafetyComponent::setupCompleteChangedTriggerList ( void  ) const
overridevirtual

Returns an list of parameter names for which a change should cause the setupCompleteChanged signal to be emitted.

Implements VehicleComponent.

Definition at line 35 of file SafetyComponent.cc.

◆ setupSource()

QUrl SafetyComponent::setupSource ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 40 of file SafetyComponent.cc.

◆ summaryQmlSource()

QUrl SafetyComponent::summaryQmlSource ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 46 of file SafetyComponent.cc.

◆ vehicleConfigJson()

QString SafetyComponent::vehicleConfigJson ( void  ) const
overridevirtual

Resource path to a VehicleConfig.json page definition, or empty if none.

Reimplemented from VehicleComponent.

Definition at line 51 of file SafetyComponent.cc.


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