mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
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:
committed by
Roland Winklmeier
parent
c5a1a6048b
commit
afc22397bb
@@ -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:
|
||||
|
||||
4
src/plugins/simulator/fs9/simulator_fs9.json
Normal file
4
src/plugins/simulator/fs9/simulator_fs9.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"short_name" : "FS9",
|
||||
"full_name" : "Microsoft Flight Simulator 2004"
|
||||
}
|
||||
4
src/plugins/simulator/fsx/simulator_fsx.json
Normal file
4
src/plugins/simulator/fsx/simulator_fsx.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"short_name" : "FSX",
|
||||
"full_name" : "Microsoft Flight Simulator X (2006)"
|
||||
}
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
4
src/plugins/simulator/xplane/simulator_xplane.json
Normal file
4
src/plugins/simulator/xplane/simulator_xplane.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"short_name" : "XP",
|
||||
"full_name" : "X-Plane"
|
||||
}
|
||||
Reference in New Issue
Block a user