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

#include <PowerComponent.h>

+ Inheritance diagram for PowerComponent:
+ Collaboration diagram for PowerComponent:

Public Member Functions

 PowerComponent (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
 
- 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 bool allowSetupWhileFlying () const
 
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 PowerComponent.h.

Constructor & Destructor Documentation

◆ PowerComponent()

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

Definition at line 5 of file PowerComponent.cc.

Member Function Documentation

◆ allowSetupWhileArmed()

bool PowerComponent::allowSetupWhileArmed ( void  ) const
inlineoverridevirtual

Reimplemented from VehicleComponent.

Definition at line 24 of file PowerComponent.h.

◆ description()

QString PowerComponent::description ( void  ) const
overridevirtual

Reimplemented from VehicleComponent.

Definition at line 16 of file PowerComponent.cc.

◆ iconResource()

QString PowerComponent::iconResource ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 21 of file PowerComponent.cc.

◆ name()

QString PowerComponent::name ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 11 of file PowerComponent.cc.

◆ requiresSetup()

bool PowerComponent::requiresSetup ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 26 of file PowerComponent.cc.

◆ setupComplete()

bool PowerComponent::setupComplete ( void  ) const
overridevirtual

◆ setupCompleteChangedTriggerList()

QStringList PowerComponent::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 45 of file PowerComponent.cc.

◆ setupSource()

QUrl PowerComponent::setupSource ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 50 of file PowerComponent.cc.

◆ summaryQmlSource()

QUrl PowerComponent::summaryQmlSource ( void  ) const
overridevirtual

Implements VehicleComponent.

Definition at line 56 of file PowerComponent.cc.

◆ vehicleConfigJson()

QString PowerComponent::vehicleConfigJson ( void  ) const
overridevirtual

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

Reimplemented from VehicleComponent.

Definition at line 61 of file PowerComponent.cc.


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