From 3fd289f5836aad17349582fd71e291306448b151 Mon Sep 17 00:00:00 2001 From: davidsastresas Date: Wed, 4 Oct 2023 17:41:58 +0200 Subject: [PATCH] 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 --- src/api/QGCCorePlugin.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/QGCCorePlugin.h b/src/api/QGCCorePlugin.h index a6c64dd..bebd4be 100644 --- a/src/api/QGCCorePlugin.h +++ b/src/api/QGCCorePlugin.h @@ -16,6 +16,7 @@ #include #include +#include /// @file /// @brief Core Plugin Interface for QGroundControl @@ -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);