|
swift
|
Describing a simulator plugin. More...
#include <simulatorplugininfo.h>
Public Member Functions | |
| CSimulatorPluginInfo ()=default | |
| Default constructor. | |
| CSimulatorPluginInfo (const QString &identifier, const QString &name, const QString &simulator, const QString &description, bool valid) | |
| Constructor (used with unit tests). | |
| void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object. | |
| bool | isUnspecified () const |
| Unspecified simulator. | |
| bool | isValid () const |
| Check if the provided plugin metadata is valid. Simulator plugin (driver) has to meet the following requirements: | |
| const QString & | getIdentifier () const |
| Identifier. | |
| const QString & | getName () const |
| Name. | |
| const QString & | getSimulator () const |
| Simulator. | |
| const CSimulatorInfo & | getSimulatorInfo () const |
| Simulator info object. | |
| bool | isEmulatedPlugin () const |
| Is this the emulated driver? | |
| const QString & | getDescription () const |
| Description. | |
| QString | convertToQString (bool i18n=false) const |
| Cast as QString. | |
| Public Member Functions inherited from swift::misc::mixin::MetaType< CSimulatorPluginInfo > | |
| int | getMetaTypeId () const |
| Returns the Qt meta type ID of this object. | |
| QString | getClassName () const |
| Class name. | |
| bool | isA (int metaTypeId) const |
| Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
| Public Member Functions inherited from swift::misc::mixin::DBusByMetaClass< CSimulatorPluginInfo > | |
| void | marshallToDbus (QDBusArgument &arg, Tags...) const |
| Marshall without begin/endStructure, for when composed within another object. | |
| void | unmarshallFromDbus (const QDBusArgument &arg, Tags...) |
| Unmarshall without begin/endStructure, for when composed within another object. | |
| Public Member Functions inherited from swift::misc::mixin::DataStreamByMetaClass< CSimulatorPluginInfo > | |
| void | marshalToDataStream (QDataStream &stream) const |
| Marshal a value to a QDataStream. | |
| void | unmarshalFromDataStream (QDataStream &stream) |
| Unmarshal a value from a QDataStream. | |
| Public Member Functions inherited from swift::misc::mixin::JsonByMetaClass< CSimulatorPluginInfo > | |
| QJsonObject | toJson () const |
| Cast to JSON object. | |
| QString | toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const |
| Convenience function JSON as string. | |
| void | convertFromJson (const QJsonObject &json) |
| Assign from JSON object. | |
| Public Member Functions inherited from swift::misc::mixin::String< CSimulatorPluginInfo > | |
| QString | toQString (bool i18n=false) const |
| Cast as QString. | |
| std::string | toStdString (bool i18n=false) const |
| To std string. | |
| QString | stringForStreaming () const |
| String for streaming operators. | |
| Public Member Functions inherited from swift::misc::mixin::Index< CSimulatorPluginInfo > | |
| CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
| Update by variant map. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const CSimulatorPluginInfo &compareValue) const |
| Compare for index. | |
| bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
| Is given variant equal to value of property index? | |
| Public Member Functions inherited from swift::misc::mixin::Icon< CSimulatorPluginInfo > | |
| CIcons::CIcons::StandardIconUnknown16 | toIcon () const |
| As icon, not implemented by all classes. | |
Static Public Member Functions | |
| static const QString & | identifierFromSimulatorInfo (const CSimulatorInfo &) |
| Simulator info to plugin indentifier, empty string if not single simulator. | |
| static const QString & | p3dPluginIdentifier () |
| Plugin identifier (P3D). | |
| static const QString & | xplanePluginIdentifier () |
| Plugin identifier (XPlane). | |
| static const QString & | fgPluginIdentifier () |
| Plugin identifier (FlightGear). | |
| static const QString & | msfsPluginIdentifier () |
| Plugin identifier (MSFS 2020). | |
| static const QString & | msfs2024PluginIdentifier () |
| Plugin identifier (MSFS 2024). | |
| static const QString & | emulatedPluginIdentifier () |
| Plugin identifier (emulated simulator plugin). | |
| static const QStringList & | allIdentifiers () |
| All valid identifiers. | |
| static QStringList | guessDefaultPlugins () |
| Guess default plugins. | |
| Static Public Member Functions inherited from swift::misc::mixin::MetaType< CSimulatorPluginInfo > | |
| static void | registerMetadata () |
| Register metadata. | |
| Static Public Member Functions inherited from swift::misc::mixin::JsonByMetaClass< CSimulatorPluginInfo > | |
| static DerivedObj | fromJson (const QJsonObject &json) |
| Get object from QJsonObject. | |
| static DerivedObj | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
| Get object from JSON string. | |
Additional Inherited Members | |
| Public Types inherited from swift::misc::CValueObject< CSimulatorPluginInfo > | |
| using | base_type |
| Base class. | |
| Public Types inherited from swift::misc::CEmpty | |
| using | base_type = CEmpty |
| Base class is alias of itself. | |
| Public Types inherited from swift::misc::mixin::Index< CSimulatorPluginInfo > | |
| enum | ColumnIndex |
| Base class enums. More... | |
| Protected Member Functions inherited from swift::misc::CValueObject< CSimulatorPluginInfo > | |
| CEmpty ()=default | |
| Inheriting constructors. | |
| CEmpty (const CEmpty &)=default | |
| Inheriting constructors. | |
| CValueObject ()=default | |
| Default constructor. | |
| CValueObject & | operator= (const CValueObject &)=default |
| Copy assignment operator. | |
| ~CValueObject ()=default | |
| Destructor. | |
| Protected Member Functions inherited from swift::misc::CEmpty | |
| CEmpty ()=default | |
| Protected default constructor. | |
| CEmpty (const CEmpty &)=default | |
| Protected copy constructor. | |
| CEmpty & | operator= (const CEmpty &)=default |
| Protected copy assignment operator. | |
| ~CEmpty ()=default | |
| Non-virtual protected destructor. | |
Describing a simulator plugin.
Definition at line 23 of file simulatorplugininfo.h.
| swift::misc::simulation::CSimulatorPluginInfo::CSimulatorPluginInfo | ( | const QString & | identifier, |
| const QString & | name, | ||
| const QString & | simulator, | ||
| const QString & | description, | ||
| bool | valid ) |
Constructor (used with unit tests).
Definition at line 18 of file simulatorplugininfo.cpp.
|
static |
All valid identifiers.
Definition at line 134 of file simulatorplugininfo.cpp.
| void swift::misc::simulation::CSimulatorPluginInfo::convertFromJson | ( | const QJsonObject & | json | ) |
Assign from JSON object.
Definition at line 26 of file simulatorplugininfo.cpp.
| QString swift::misc::simulation::CSimulatorPluginInfo::convertToQString | ( | bool | i18n = false | ) | const |
Cast as QString.
Definition at line 60 of file simulatorplugininfo.cpp.
|
static |
Plugin identifier (emulated simulator plugin).
Definition at line 128 of file simulatorplugininfo.cpp.
|
static |
Plugin identifier (FlightGear).
Definition at line 110 of file simulatorplugininfo.cpp.
|
inline |
Description.
Definition at line 63 of file simulatorplugininfo.h.
|
inline |
Identifier.
Definition at line 48 of file simulatorplugininfo.h.
|
inline |
Name.
Definition at line 51 of file simulatorplugininfo.h.
|
inline |
Simulator.
Definition at line 54 of file simulatorplugininfo.h.
|
inline |
Simulator info object.
Definition at line 57 of file simulatorplugininfo.h.
|
static |
Guess default plugins.
Definition at line 142 of file simulatorplugininfo.cpp.
|
static |
Simulator info to plugin indentifier, empty string if not single simulator.
Definition at line 66 of file simulatorplugininfo.cpp.
| bool swift::misc::simulation::CSimulatorPluginInfo::isEmulatedPlugin | ( | ) | const |
Is this the emulated driver?
Definition at line 58 of file simulatorplugininfo.cpp.
| bool swift::misc::simulation::CSimulatorPluginInfo::isUnspecified | ( | ) | const |
Unspecified simulator.
Definition at line 56 of file simulatorplugininfo.cpp.
|
inline |
Check if the provided plugin metadata is valid. Simulator plugin (driver) has to meet the following requirements:
Definition at line 45 of file simulatorplugininfo.h.
|
static |
Plugin identifier (MSFS 2024).
Definition at line 122 of file simulatorplugininfo.cpp.
|
static |
Plugin identifier (MSFS 2020).
Definition at line 116 of file simulatorplugininfo.cpp.
|
static |
Plugin identifier (P3D).
Definition at line 98 of file simulatorplugininfo.cpp.
|
static |
Plugin identifier (XPlane).
Definition at line 104 of file simulatorplugininfo.cpp.