Browse Source

QGCCorePlugin: new function getOfflineCameraDefinitionFile:

By default it returns false. It is meant to be overriden by custom
builds in case they provide camera definition files embedded in
resources
QGC4.4
davidsastresas 1 year ago committed by Julian Oes
parent
commit
3fd289f583
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 4
      src/api/QGCCorePlugin.h

4
src/api/QGCCorePlugin.h

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
#include <QObject>
#include <QVariantList>
#include <QFile>
/// @file
/// @brief Core Plugin Interface for QGroundControl
@ -179,6 +180,9 @@ public: @@ -179,6 +180,9 @@ public:
/// @return A list of QUrl with the indicators
virtual const QVariantList& toolBarIndicators(void);
/// Returns a true if xml definition file of a providen camera name exists, and loads it to file argument, to allow definition files to be loaded from resources
virtual bool getOfflineCameraDefinitionFile(QString cameraname, QFile& file) { Q_UNUSED(cameraname); Q_UNUSED(file); return false; }
/// Returns the list of first run prompt ids which need to be displayed according to current settings
Q_INVOKABLE QVariantList firstRunPromptsToShow(void);

Loading…
Cancel
Save