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

Maintains a list of MissionCommandUIInfo objects loaded from a json file. More...

#include <MissionCommandList.h>

Inheritance diagram for MissionCommandList:
Collaboration diagram for MissionCommandList:

Public Member Functions

 MissionCommandList (const QString &jsonFilename, bool baseCommandList, QObject *parent=nullptr)
QStringList & categories (void)
 Returns list of categories in this list.
MissionCommandUIInfo * getUIInfo (MAV_CMD command) const
 Returns the ui info for specified command, NULL if command not found.
const QList< MAV_CMD > & commandIds (void) const

Static Public Attributes

static constexpr const char * qgcFileType = "MavCmdInfo"

Detailed Description

Maintains a list of MissionCommandUIInfo objects loaded from a json file.

Definition at line 13 of file MissionCommandList.h.

Constructor & Destructor Documentation

◆ MissionCommandList()

MissionCommandList::MissionCommandList ( const QString & jsonFilename,
bool baseCommandList,
QObject * parent = nullptr )
Parameters
baseCommandListtrue: bottomost level of mission command hierarchy (partial spec allowed), false: override level of hierarchy

Definition at line 10 of file MissionCommandList.cc.

References MissionCommandList().

Referenced by MissionCommandList().

Member Function Documentation

◆ categories()

QStringList & MissionCommandList::categories ( void )
inline

Returns list of categories in this list.

Definition at line 22 of file MissionCommandList.h.

◆ commandIds()

const QList< MAV_CMD > & MissionCommandList::commandIds ( void ) const
inline

Definition at line 27 of file MissionCommandList.h.

◆ getUIInfo()

MissionCommandUIInfo * MissionCommandList::getUIInfo ( MAV_CMD command) const

Returns the ui info for specified command, NULL if command not found.

Definition at line 74 of file MissionCommandList.cc.

Referenced by MissionCommandTree::friendlyName(), MissionCommandTree::isLandCommand(), MissionCommandTree::isTakeoffCommand(), and MissionCommandTree::rawName().

Member Data Documentation

◆ qgcFileType

const char* MissionCommandList::qgcFileType = "MavCmdInfo"
staticconstexpr

Definition at line 29 of file MissionCommandList.h.


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