6 #ifndef SWIFT_MISC_SIMULATION_SIMULATORPLUGININFO_H
7 #define SWIFT_MISC_SIMULATION_SIMULATORPLUGININFO_H
20 namespace swift::misc::simulation
31 const QString &description,
bool valid);
34 void convertFromJson(
const QJsonObject &json);
37 bool isUnspecified()
const;
51 const QString &
getName()
const {
return m_name; }
60 bool isEmulatedPlugin()
const;
66 QString convertToQString(
bool i18n =
false)
const;
69 static const QString &identifierFromSimulatorInfo(
const CSimulatorInfo &);
72 static const QString &fsxPluginIdentifier();
75 static const QString &p3dPluginIdentifier();
78 static const QString &fs9PluginIdentifier();
81 static const QString &xplanePluginIdentifier();
84 static const QString &fgPluginIdentifier();
87 static const QString &msfsPluginIdentifier();
90 static const QString &msfs2024PluginIdentifier();
93 static const QString &emulatedPluginIdentifier();
96 static const QStringList &allIdentifiers();
99 static QStringList guessDefaultPlugins();
102 QString m_identifier;
105 QString m_description;
107 bool m_valid {
false };
110 CSimulatorPluginInfo,
Mix of the most commonly used mixin classes.
Simple hardcoded info about the corresponding simulator.
Describing a simulator plugin.
const QString & getSimulator() const
Simulator.
const QString & getIdentifier() const
Identifier.
const QString & getName() const
Name.
const QString & getDescription() const
Description.
const CSimulatorInfo & getSimulatorInfo() const
Simulator info object.
CSimulatorPluginInfo()=default
Default constructor.
bool isValid() const
Check if the provided plugin metadata is valid. Simulator plugin (driver) has to meet the following r...
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...