JSON plugin metadata initial

* Added json files along with FILE macro for all drivers
* Get CSimulatorInfo from JSON rather than from ISimulatorFactory
This commit is contained in:
Michał Garapich
2015-02-11 18:54:11 +01:00
committed by Roland Winklmeier
parent c5a1a6048b
commit afc22397bb
10 changed files with 30 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ namespace BlackSimPlugin
class CSimulatorFs9Factory : public QObject, public BlackCore::ISimulatorFactory
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.swift.pilotclient.BlackCore.SimulatorInterface")
Q_PLUGIN_METADATA(IID "org.swift.pilotclient.BlackCore.SimulatorInterface" FILE "simulator_fs9.json")
Q_INTERFACES(BlackCore::ISimulatorFactory)
public:

View File

@@ -0,0 +1,4 @@
{
"short_name" : "FS9",
"full_name" : "Microsoft Flight Simulator 2004"
}

View File

@@ -0,0 +1,4 @@
{
"short_name" : "FSX",
"full_name" : "Microsoft Flight Simulator X (2006)"
}

View File

@@ -28,7 +28,7 @@ namespace BlackSimPlugin
{
Q_OBJECT
// TODO: @RW, move this string into CProject please
Q_PLUGIN_METADATA(IID "org.swift.pilotclient.BlackCore.SimulatorInterface")
Q_PLUGIN_METADATA(IID "org.swift.pilotclient.BlackCore.SimulatorInterface" FILE "simulator_fsx.json")
Q_INTERFACES(BlackCore::ISimulatorFactory)
public:

View File

@@ -201,7 +201,7 @@ namespace BlackSimPlugin
class CSimulatorXPlaneFactory : public QObject, public BlackCore::ISimulatorFactory
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.swift.pilotclient.BlackCore.SimulatorInterface")
Q_PLUGIN_METADATA(IID "org.swift.pilotclient.BlackCore.SimulatorInterface" FILE "simulator_xplane.json")
Q_INTERFACES(BlackCore::ISimulatorFactory)
public:

View File

@@ -0,0 +1,4 @@
{
"short_name" : "XP",
"full_name" : "X-Plane"
}