QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
CompInfoGeneral.h
Go to the documentation of this file.
1#pragma once
2
3#include "CompInfo.h"
4
5#include <QtCore/QObject>
6#include <QtCore/QMap>
7
8class FactMetaData;
9class Vehicle;
10class FirmwarePlugin;
11
13{
14 Q_OBJECT
15
16public:
17 CompInfoGeneral(uint8_t compId_, Vehicle* vehicle_, QObject* parent = nullptr);
18
19 bool isMetaDataTypeSupported(COMP_METADATA_TYPE metadataType) { return _supportedTypes.contains(metadataType); }
20
21 void setUris(CompInfo& compInfo) const;
22
23 // Overrides from CompInfo
24 void setJson(const QString& metadataJsonFileName) override;
25
26private:
27 QMap<COMP_METADATA_TYPE, Uris> _supportedTypes;
28
29 static constexpr const char* _jsonMetadataTypesKey = "metadataTypes";
30};
void setJson(const QString &metadataJsonFileName) override
bool isMetaDataTypeSupported(COMP_METADATA_TYPE metadataType)
void setUris(CompInfo &compInfo) const
Base class for all CompInfo types.
Definition CompInfo.h:15
friend class CompInfoGeneral
Definition CompInfo.h:41
Holds the meta data associated with a Fact.
The FirmwarePlugin class represents the methods and objects which are specific to a certain Firmware ...