mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor: Rename remaining "black" identifiers
This commit is contained in:
@@ -82,6 +82,5 @@ WhitespaceSensitiveMacros:
|
|||||||
- BOOST_PP_STRINGIZE
|
- BOOST_PP_STRINGIZE
|
||||||
- NS_SWIFT_NAME
|
- NS_SWIFT_NAME
|
||||||
- CF_SWIFT_NAME
|
- CF_SWIFT_NAME
|
||||||
- BLACK_METACLASS
|
- SWIFT_METACLASS
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ endif()
|
|||||||
add_compile_definitions(QT_NO_DEPRECATED_WARNINGS)
|
add_compile_definitions(QT_NO_DEPRECATED_WARNINGS)
|
||||||
|
|
||||||
if(SWIFT_USE_CRASHPAD)
|
if(SWIFT_USE_CRASHPAD)
|
||||||
add_compile_definitions(BLACK_USE_CRASHPAD)
|
add_compile_definitions(SWIFT_USE_CRASHPAD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_WEATHERDATA_H
|
#ifndef SWIFT_SAMPLE_WEATHERDATA_H
|
||||||
#define BLACKSAMPLE_WEATHERDATA_H
|
#define SWIFT_SAMPLE_WEATHERDATA_H
|
||||||
|
|
||||||
// just a dummy header, documentation will go here
|
// just a dummy header, documentation will go here
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
//! \ingroup samplekmisc
|
//! \ingroup samplekmisc
|
||||||
|
|
||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace BlackSample;
|
using namespace swift::sample;
|
||||||
using namespace swift::core;
|
using namespace swift::core;
|
||||||
|
|
||||||
//! main
|
//! main
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_BLACKMISC_H
|
#ifndef SWIFT_SAMPLE_SWIFT_MISC_H
|
||||||
#define BLACKSAMPLE_BLACKMISC_H
|
#define SWIFT_SAMPLE_SWIFT_MISC_H
|
||||||
|
|
||||||
// just a dummy header, documentation will go here
|
// just a dummy header, documentation will go here
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesAlgorithm::samples()
|
int CSamplesAlgorithm::samples()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemisc
|
//! \ingroup samplemisc
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESALGORITHM_H
|
#ifndef SWIFT_SAMPLE_SAMPLESALGORITHM_H
|
||||||
#define BLACKSAMPLE_SAMPLESALGORITHM_H
|
#define SWIFT_SAMPLE_SAMPLESALGORITHM_H
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for our algorithms
|
//! Samples for our algorithms
|
||||||
class CSamplesAlgorithm
|
class CSamplesAlgorithm
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ using namespace swift::misc::physical_quantities;
|
|||||||
using namespace swift::misc::geo;
|
using namespace swift::misc::geo;
|
||||||
using namespace swift::misc::network;
|
using namespace swift::misc::network;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesChangeObject::samples()
|
int CSamplesChangeObject::samples()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemisc
|
//! \ingroup samplemisc
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESCHANGEDATA_H
|
#ifndef SWIFT_SAMPLE_SAMPLESCHANGEDATA_H
|
||||||
#define BLACKSAMPLE_SAMPLESCHANGEDATA_H
|
#define SWIFT_SAMPLE_SAMPLESCHANGEDATA_H
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for metadata
|
//! Samples for metadata
|
||||||
class CSamplesChangeObject
|
class CSamplesChangeObject
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ using namespace swift::misc::geo;
|
|||||||
using namespace swift::misc::network;
|
using namespace swift::misc::network;
|
||||||
using namespace swift::misc::test;
|
using namespace swift::misc::test;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesContainer::samples()
|
int CSamplesContainer::samples()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemisc
|
//! \ingroup samplemisc
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESCONTAINER_H
|
#ifndef SWIFT_SAMPLE_SAMPLESCONTAINER_H
|
||||||
#define BLACKSAMPLE_SAMPLESCONTAINER_H
|
#define SWIFT_SAMPLE_SAMPLESCONTAINER_H
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for our containers
|
//! Samples for our containers
|
||||||
class CSamplesContainer
|
class CSamplesContainer
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesFile::samples(QTextStream &out)
|
int CSamplesFile::samples(QTextStream &out)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemisc
|
//! \ingroup samplemisc
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESFILE_H
|
#ifndef SWIFT_SAMPLE_SAMPLESFILE_H
|
||||||
#define BLACKSAMPLE_SAMPLESFILE_H
|
#define SWIFT_SAMPLE_SAMPLESFILE_H
|
||||||
|
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for file/directory
|
//! Samples for file/directory
|
||||||
class CSamplesFile
|
class CSamplesFile
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ using namespace swift::misc::geo;
|
|||||||
using namespace swift::misc::network;
|
using namespace swift::misc::network;
|
||||||
using namespace swift::misc::test;
|
using namespace swift::misc::test;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesJson::samples()
|
int CSamplesJson::samples()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemisc
|
//! \ingroup samplemisc
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESJSON_H
|
#ifndef SWIFT_SAMPLE_SAMPLESJSON_H
|
||||||
#define BLACKSAMPLE_SAMPLESJSON_H
|
#define SWIFT_SAMPLE_SAMPLESJSON_H
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
|
|
||||||
//! Samples for metadata
|
//! Samples for metadata
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesMetadata::samples()
|
int CSamplesMetadata::samples()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemisc
|
//! \ingroup samplemisc
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESMETADATA_H
|
#ifndef SWIFT_SAMPLE_SAMPLESMETADATA_H
|
||||||
#define BLACKSAMPLE_SAMPLESMETADATA_H
|
#define SWIFT_SAMPLE_SAMPLESMETADATA_H
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
|
|
||||||
//! Samples for metadata
|
//! Samples for metadata
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ using namespace swift::misc::simulation;
|
|||||||
using namespace swift::misc::test;
|
using namespace swift::misc::test;
|
||||||
using namespace swift::core::db;
|
using namespace swift::core::db;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesPerformance::samplesMisc(QTextStream &out)
|
int CSamplesPerformance::samplesMisc(QTextStream &out)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemisc
|
//! \ingroup samplemisc
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESPERFORMANCE_H
|
#ifndef SWIFT_SAMPLE_SAMPLESPERFORMANCE_H
|
||||||
#define BLACKSAMPLE_SAMPLESPERFORMANCE_H
|
#define SWIFT_SAMPLE_SAMPLESPERFORMANCE_H
|
||||||
|
|
||||||
#include "misc/simulation/aircraftmodellist.h"
|
#include "misc/simulation/aircraftmodellist.h"
|
||||||
#include "misc/aviation/aircraftsituationlist.h"
|
#include "misc/aviation/aircraftsituationlist.h"
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for our containers
|
//! Samples for our containers
|
||||||
class CSamplesPerformance
|
class CSamplesPerformance
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
|
|||||||
// run tests
|
// run tests
|
||||||
if (cmdlineArgs.contains("testservice", Qt::CaseInsensitive))
|
if (cmdlineArgs.contains("testservice", Qt::CaseInsensitive))
|
||||||
{
|
{
|
||||||
BlackSample::ServiceTool::dataTransferTestClient(address);
|
swift::sample::ServiceTool::dataTransferTestClient(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
// loop
|
// loop
|
||||||
@@ -175,14 +175,14 @@ int main(int argc, char *argv[])
|
|||||||
// run tests
|
// run tests
|
||||||
if (mode == "testservice")
|
if (mode == "testservice")
|
||||||
{
|
{
|
||||||
BlackSample::ServiceTool::dataTransferTestServer(dBusServer, verbose);
|
swift::sample::ServiceTool::dataTransferTestServer(dBusServer, verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
// testing in new process
|
// testing in new process
|
||||||
CProcessCtrl::startDetached(executable, args, true);
|
CProcessCtrl::startDetached(executable, args, true);
|
||||||
|
|
||||||
// testing in same process
|
// testing in same process
|
||||||
// BlackSample::ServiceTool::dataTransferTestClient(address);
|
// swift::sample::ServiceTool::dataTransferTestClient(address);
|
||||||
|
|
||||||
// loop
|
// loop
|
||||||
return a.exec();
|
return a.exec();
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ qdbuscpp2xml datacontext.h -x misc_cpp2xml.dll -o MiscTest.Datacontext.xml
|
|||||||
Set search path for plugins: env.var. QT_PLUGIN_PATH
|
Set search path for plugins: env.var. QT_PLUGIN_PATH
|
||||||
|
|
||||||
Done automatically (qmake), but if required manually
|
Done automatically (qmake), but if required manually
|
||||||
Interface: qdbusxml2cpp blackbus.testservice.xml -p itestservice
|
Interface: qdbusxml2cpp swiftbus.testservice.xml -p itestservice
|
||||||
Adaptor: qdbusxml2cpp blackbus.testservice.xml -a atestservice
|
Adaptor: qdbusxml2cpp swiftbus.testservice.xml -a atestservice
|
||||||
|
|
||||||
-- Removed after changing to "handwritten" interface
|
-- Removed after changing to "handwritten" interface
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_BLACKMISCDBUS_H
|
#ifndef SWIFT_SAMPLE_SWIFT_MISCDBUS_H
|
||||||
#define BLACKSAMPLE_BLACKMISCDBUS_H
|
#define SWIFT_SAMPLE_SWIFT_MISCDBUS_H
|
||||||
|
|
||||||
// just a dummy header, documentation will go here
|
// just a dummy header, documentation will go here
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ using namespace swift::misc::simulation::fscommon;
|
|||||||
using namespace swift::misc::test;
|
using namespace swift::misc::test;
|
||||||
using namespace swift::core;
|
using namespace swift::core;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
void ServiceTool::dataTransferTestServer(CDBusServer *dBusServer, bool verbose)
|
void ServiceTool::dataTransferTestServer(CDBusServer *dBusServer, bool verbose)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscdbus
|
//! \ingroup samplemiscdbus
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SERVICETOOL_H
|
#ifndef SWIFT_SAMPLE_SERVICETOOL_H
|
||||||
#define BLACKSAMPLE_SERVICETOOL_H
|
#define SWIFT_SAMPLE_SERVICETOOL_H
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDBusArgument>
|
#include <QDBusArgument>
|
||||||
@@ -21,7 +21,7 @@ namespace swift::misc
|
|||||||
{
|
{
|
||||||
class CDBusServer;
|
class CDBusServer;
|
||||||
}
|
}
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
class Testservice; // forward declaration
|
class Testservice; // forward declaration
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace BlackSample;
|
using namespace swift::sample;
|
||||||
using namespace swift::core;
|
using namespace swift::core;
|
||||||
|
|
||||||
//! main
|
//! main
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_BLACKMISCQUANTITIES_H
|
#ifndef SWIFT_SAMPLE_SWIFT_MISCQUANTITIES_H
|
||||||
#define BLACKSAMPLE_BLACKMISCQUANTITIES_H
|
#define SWIFT_SAMPLE_SWIFT_MISCQUANTITIES_H
|
||||||
|
|
||||||
// just a dummy header, documentation will go here
|
// just a dummy header, documentation will go here
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ using namespace swift::misc::geo;
|
|||||||
using namespace swift::misc::network;
|
using namespace swift::misc::network;
|
||||||
using namespace swift::misc::test;
|
using namespace swift::misc::test;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesAviation::samples(QTextStream &out)
|
int CSamplesAviation::samples(QTextStream &out)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscquantities
|
//! \ingroup samplemiscquantities
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESAVIATION_H
|
#ifndef SWIFT_SAMPLE_SAMPLESAVIATION_H
|
||||||
#define BLACKSAMPLE_SAMPLESAVIATION_H
|
#define SWIFT_SAMPLE_SAMPLESAVIATION_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
|
|
||||||
//! Samples for aviation
|
//! Samples for aviation
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ using namespace swift::misc::aviation;
|
|||||||
using namespace swift::misc::physical_quantities;
|
using namespace swift::misc::physical_quantities;
|
||||||
using namespace swift::misc::geo;
|
using namespace swift::misc::geo;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesGeo::samples(QTextStream &out)
|
int CSamplesGeo::samples(QTextStream &out)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscquantities
|
//! \ingroup samplemiscquantities
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESGEO_H
|
#ifndef SWIFT_SAMPLE_SAMPLESGEO_H
|
||||||
#define BLACKSAMPLE_SAMPLESGEO_H
|
#define SWIFT_SAMPLE_SAMPLESGEO_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for physical quantities
|
//! Samples for physical quantities
|
||||||
class CSamplesGeo
|
class CSamplesGeo
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ using namespace swift::misc;
|
|||||||
using namespace swift::misc::aviation;
|
using namespace swift::misc::aviation;
|
||||||
using namespace swift::misc::physical_quantities;
|
using namespace swift::misc::physical_quantities;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
int CSamplesPhysicalQuantities::samples(QTextStream &out)
|
int CSamplesPhysicalQuantities::samples(QTextStream &out)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscquantities
|
//! \ingroup samplemiscquantities
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESPHYSICALQUANTITIES_H
|
#ifndef SWIFT_SAMPLE_SAMPLESPHYSICALQUANTITIES_H
|
||||||
#define BLACKSAMPLE_SAMPLESPHYSICALQUANTITIES_H
|
#define SWIFT_SAMPLE_SAMPLESPHYSICALQUANTITIES_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
|
|
||||||
//! Samples for physical quantities
|
//! Samples for physical quantities
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace BlackSample;
|
using namespace swift::sample;
|
||||||
|
|
||||||
//! main
|
//! main
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_BLACKMISCSIM_H
|
#ifndef SWIFT_SAMPLE_SWIFT_MISCSIM_H
|
||||||
#define BLACKSAMPLE_BLACKMISCSIM_H
|
#define SWIFT_SAMPLE_SWIFT_MISCSIM_H
|
||||||
|
|
||||||
// just a dummy header, documentation will go here
|
// just a dummy header, documentation will go here
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ using namespace swift::misc::simulation;
|
|||||||
using namespace swift::misc::simulation::fscommon;
|
using namespace swift::misc::simulation::fscommon;
|
||||||
using namespace swift::misc::simulation::settings;
|
using namespace swift::misc::simulation::settings;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
void CSamplesFsCommon::samples(QTextStream &streamOut, QTextStream &streamIn)
|
void CSamplesFsCommon::samples(QTextStream &streamOut, QTextStream &streamIn)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscsim
|
//! \ingroup samplemiscsim
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESFSCOMMON_H
|
#ifndef SWIFT_SAMPLE_SAMPLESFSCOMMON_H
|
||||||
#define BLACKSAMPLE_SAMPLESFSCOMMON_H
|
#define SWIFT_SAMPLE_SAMPLESFSCOMMON_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for FsCommon classes
|
//! Samples for FsCommon classes
|
||||||
class CSamplesFsCommon
|
class CSamplesFsCommon
|
||||||
|
|||||||
@@ -15,12 +15,12 @@
|
|||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace swift::misc::simulation;
|
using namespace swift::misc::simulation;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
void CSamplesFsuipc::samplesFsuipc(QTextStream &streamOut)
|
void CSamplesFsuipc::samplesFsuipc(QTextStream &streamOut)
|
||||||
{
|
{
|
||||||
using namespace BlackSimPlugin::FsCommon;
|
using namespace swift::simplugin::fscommon;
|
||||||
|
|
||||||
swift::misc::registerMetadata();
|
swift::misc::registerMetadata();
|
||||||
QScopedPointer<CFsuipc> fsuipc(new CFsuipc());
|
QScopedPointer<CFsuipc> fsuipc(new CFsuipc());
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscsim
|
//! \ingroup samplemiscsim
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESFSUIPC_H
|
#ifndef SWIFT_SAMPLE_SAMPLESFSUIPC_H
|
||||||
#define BLACKSAMPLE_SAMPLESFSUIPC_H
|
#define SWIFT_SAMPLE_SAMPLESFSUIPC_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for FSUIPC
|
//! Samples for FSUIPC
|
||||||
class CSamplesFsuipc
|
class CSamplesFsuipc
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
using namespace swift::misc::simulation::fsx;
|
using namespace swift::misc::simulation::fsx;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
void CSamplesFsx::samplesMisc(QTextStream &streamOut)
|
void CSamplesFsx::samplesMisc(QTextStream &streamOut)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscsim
|
//! \ingroup samplemiscsim
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESFSX_H
|
#ifndef SWIFT_SAMPLE_SAMPLESFSX_H
|
||||||
#define BLACKSAMPLE_SAMPLESFSX_H
|
#define SWIFT_SAMPLE_SAMPLESFSX_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for FSX classes
|
//! Samples for FSX classes
|
||||||
class CSamplesFsx
|
class CSamplesFsx
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ using namespace swift::misc::simulation::fscommon;
|
|||||||
using namespace swift::misc::simulation::settings;
|
using namespace swift::misc::simulation::settings;
|
||||||
using namespace swift::misc::aviation;
|
using namespace swift::misc::aviation;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
void CSamplesModelMapping::samples(QTextStream &streamOut, QTextStream &streamIn)
|
void CSamplesModelMapping::samples(QTextStream &streamOut, QTextStream &streamIn)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscsim
|
//! \ingroup samplemiscsim
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESMODELMAPPING_H
|
#ifndef SWIFT_SAMPLE_SAMPLESMODELMAPPING_H
|
||||||
#define BLACKSAMPLE_SAMPLESMODELMAPPING_H
|
#define SWIFT_SAMPLE_SAMPLESMODELMAPPING_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for model mapping classes
|
//! Samples for model mapping classes
|
||||||
class CSamplesModelMapping
|
class CSamplesModelMapping
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
using namespace swift::misc::simulation::fscommon;
|
using namespace swift::misc::simulation::fscommon;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
void CSamplesP3D::samplesMisc(QTextStream &streamOut)
|
void CSamplesP3D::samplesMisc(QTextStream &streamOut)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscsim
|
//! \ingroup samplemiscsim
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESP3D_H
|
#ifndef SWIFT_SAMPLE_SAMPLESP3D_H
|
||||||
#define BLACKSAMPLE_SAMPLESP3D_H
|
#define SWIFT_SAMPLE_SAMPLESP3D_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for P3D classes
|
//! Samples for P3D classes
|
||||||
class CSamplesP3D
|
class CSamplesP3D
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ using namespace swift::misc;
|
|||||||
using namespace swift::misc::simulation;
|
using namespace swift::misc::simulation;
|
||||||
using namespace swift::misc::simulation::fscommon;
|
using namespace swift::misc::simulation::fscommon;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
//! \file
|
//! \file
|
||||||
//! \ingroup samplemiscsim
|
//! \ingroup samplemiscsim
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLESVPILOTRULES_H
|
#ifndef SWIFT_SAMPLE_SAMPLESVPILOTRULES_H
|
||||||
#define BLACKSAMPLE_SAMPLESVPILOTRULES_H
|
#define SWIFT_SAMPLE_SAMPLESVPILOTRULES_H
|
||||||
|
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
||||||
namespace BlackSample
|
namespace swift::sample
|
||||||
{
|
{
|
||||||
//! Samples for vPilot rules
|
//! Samples for vPilot rules
|
||||||
class CSamplesVPilotRules
|
class CSamplesVPilotRules
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
//! \file
|
//! \file
|
||||||
|
|
||||||
#ifndef BLACKSAMPLE_SAMPLEUTILS_H
|
#ifndef SWIFT_SAMPLE_SAMPLEUTILS_H
|
||||||
#define BLACKSAMPLE_SAMPLEUTILS_H
|
#define SWIFT_SAMPLE_SAMPLEUTILS_H
|
||||||
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
//! \file
|
//! \file
|
||||||
|
|
||||||
#ifndef BLACKCONFIG_BUILDCONFIG_H
|
#ifndef SWIFT_CONFIG_BUILDCONFIG_H
|
||||||
#define BLACKCONFIG_BUILDCONFIG_H
|
#define SWIFT_CONFIG_BUILDCONFIG_H
|
||||||
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|||||||
@@ -109,11 +109,11 @@ namespace swift::core
|
|||||||
//! \remarks model list could be the model set
|
//! \remarks model list could be the model set
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
static swift::misc::aviation::CAirlineIcaoCode failoverValidAirlineIcaoDesignatorModelsFirst(const swift::misc::aviation::CCallsign &callsign,
|
static swift::misc::aviation::CAirlineIcaoCode failoverValidAirlineIcaoDesignatorModelsFirst(const swift::misc::aviation::CCallsign &callsign,
|
||||||
const QString &primaryIcao, const QString &secondaryIcao,
|
const QString &primaryIcao, const QString &secondaryIcao,
|
||||||
bool airlineFromCallsign,
|
bool airlineFromCallsign,
|
||||||
const QString &airlineName, const QString &airlineTelephony,
|
const QString &airlineName, const QString &airlineTelephony,
|
||||||
const swift::misc::simulation::CAircraftModelList &models,
|
const swift::misc::simulation::CAircraftModelList &models,
|
||||||
swift::misc::CStatusMessageList *log = nullptr);
|
swift::misc::CStatusMessageList *log = nullptr);
|
||||||
|
|
||||||
//! Run the network reverse lookup script
|
//! Run the network reverse lookup script
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
@@ -127,21 +127,21 @@ namespace swift::core
|
|||||||
//! Run the matching script
|
//! Run the matching script
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
static swift::misc::simulation::MatchingScriptReturnValues matchingScript(const QString &js,
|
static swift::misc::simulation::MatchingScriptReturnValues matchingScript(const QString &js,
|
||||||
const swift::misc::simulation::CAircraftModel &inModel, const swift::misc::simulation::CAircraftModel &matchedModel, const swift::misc::simulation::CAircraftMatcherSetup &setup,
|
const swift::misc::simulation::CAircraftModel &inModel, const swift::misc::simulation::CAircraftModel &matchedModel, const swift::misc::simulation::CAircraftMatcherSetup &setup,
|
||||||
const swift::misc::simulation::CAircraftModelList &modelSet, swift::misc::simulation::MatchingScript ms,
|
const swift::misc::simulation::CAircraftModelList &modelSet, swift::misc::simulation::MatchingScript ms,
|
||||||
swift::misc::CStatusMessageList *log);
|
swift::misc::CStatusMessageList *log);
|
||||||
|
|
||||||
//! Try to find the corresponding data in DB and get best information for given data
|
//! Try to find the corresponding data in DB and get best information for given data
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
//! \ingroup reverselookup
|
//! \ingroup reverselookup
|
||||||
//! \remark NOT running matching script
|
//! \remark NOT running matching script
|
||||||
static swift::misc::simulation::CAircraftModel reverseLookupModel(const swift::misc::aviation::CCallsign &callsign,
|
static swift::misc::simulation::CAircraftModel reverseLookupModel(const swift::misc::aviation::CCallsign &callsign,
|
||||||
const swift::misc::aviation::CAircraftIcaoCode &networkAircraftIcao,
|
const swift::misc::aviation::CAircraftIcaoCode &networkAircraftIcao,
|
||||||
const swift::misc::aviation::CAirlineIcaoCode &networkAirlineIcao, const QString &networkLiveryInfo, const QString &networkModelString,
|
const swift::misc::aviation::CAirlineIcaoCode &networkAirlineIcao, const QString &networkLiveryInfo, const QString &networkModelString,
|
||||||
const swift::misc::simulation::CAircraftMatcherSetup &setup,
|
const swift::misc::simulation::CAircraftMatcherSetup &setup,
|
||||||
const swift::misc::simulation::CAircraftModelList &modelSet,
|
const swift::misc::simulation::CAircraftModelList &modelSet,
|
||||||
swift::misc::simulation::CAircraftModel::ModelType type,
|
swift::misc::simulation::CAircraftModel::ModelType type,
|
||||||
swift::misc::CStatusMessageList *log);
|
swift::misc::CStatusMessageList *log);
|
||||||
|
|
||||||
//! Try to find the corresponding data in DB and get best information for following matching
|
//! Try to find the corresponding data in DB and get best information for following matching
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
|
|||||||
@@ -1384,7 +1384,7 @@ namespace swift::core
|
|||||||
|
|
||||||
bool CApplication::isSupportingCrashpad() const
|
bool CApplication::isSupportingCrashpad() const
|
||||||
{
|
{
|
||||||
#ifdef BLACK_USE_CRASHPAD
|
#ifdef SWIFT_USE_CRASHPAD
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ using namespace swift::misc;
|
|||||||
using namespace swift::misc::json;
|
using namespace swift::misc::json;
|
||||||
using namespace swift::misc::network;
|
using namespace swift::misc::network;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::core::data, CGlobalSetup)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::core::data, CGlobalSetup)
|
||||||
|
|
||||||
namespace swift::core::data
|
namespace swift::core::data
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::core::data, CGlobalSetup)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::core::data, CGlobalSetup)
|
||||||
|
|
||||||
namespace swift::core::data
|
namespace swift::core::data
|
||||||
{
|
{
|
||||||
@@ -179,26 +179,25 @@ namespace swift::core::data
|
|||||||
swift::misc::network::CUrl m_vatsimAuthUrl; //!< VATSIM Auth URL
|
swift::misc::network::CUrl m_vatsimAuthUrl; //!< VATSIM Auth URL
|
||||||
bool m_dbDebugFlag = false; //!< can trigger DEBUG on the server, so you need to know what you are doing. Only works with CBuildConfig::isLocalDeveloperDebugBuild
|
bool m_dbDebugFlag = false; //!< can trigger DEBUG on the server, so you need to know what you are doing. Only works with CBuildConfig::isLocalDeveloperDebugBuild
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CGlobalSetup,
|
CGlobalSetup,
|
||||||
BLACK_METAMEMBER(dbRootDirectoryUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(dbRootDirectoryUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(dbHttpsPort, 0, RequiredForJson),
|
SWIFT_METAMEMBER(dbHttpsPort, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(vatsimStatusFileUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(vatsimStatusFileUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(vatsimDataFileUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(vatsimDataFileUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(vatsimServerFileUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(vatsimServerFileUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(vatsimFsdHttpUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(vatsimFsdHttpUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(vatsimMetarsUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(vatsimMetarsUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(sharedUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(sharedUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(onlineHelpUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(onlineHelpUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(predefinedServers, 0, RequiredForJson),
|
SWIFT_METAMEMBER(predefinedServers, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(mappingMinimumVersion, 0, RequiredForJson),
|
SWIFT_METAMEMBER(mappingMinimumVersion, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(comNavEquipmentHelpUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(comNavEquipmentHelpUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(ssrEquipmentHelpUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(ssrEquipmentHelpUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(dbDebugFlag, 0, RequiredForJson),
|
SWIFT_METAMEMBER(dbDebugFlag, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(afvApiServerUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(afvApiServerUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(afvMapUrl, 0, RequiredForJson),
|
SWIFT_METAMEMBER(afvMapUrl, 0, RequiredForJson),
|
||||||
BLACK_METAMEMBER(vatsimAuthUrl, 0, RequiredForJson)
|
SWIFT_METAMEMBER(vatsimAuthUrl, 0, RequiredForJson));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
} // ns
|
} // ns
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::core::data, CLauncherSetup)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::core::data, CLauncherSetup)
|
||||||
|
|
||||||
namespace swift::core::data
|
namespace swift::core::data
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include "misc/valueobject.h"
|
#include "misc/valueobject.h"
|
||||||
#include "misc/variant.h"
|
#include "misc/variant.h"
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::core::data, CLauncherSetup)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::core::data, CLauncherSetup)
|
||||||
|
|
||||||
namespace swift::core::data
|
namespace swift::core::data
|
||||||
{
|
{
|
||||||
@@ -91,13 +91,12 @@ namespace swift::core::data
|
|||||||
int m_coreMode = static_cast<int>(Standalone); //!< core
|
int m_coreMode = static_cast<int>(Standalone); //!< core
|
||||||
int m_audioMode = static_cast<int>(AudioNothingDisabled);
|
int m_audioMode = static_cast<int>(AudioNothingDisabled);
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CLauncherSetup,
|
CLauncherSetup,
|
||||||
BLACK_METAMEMBER(dBusAddress),
|
SWIFT_METAMEMBER(dBusAddress),
|
||||||
BLACK_METAMEMBER(windowFrameless),
|
SWIFT_METAMEMBER(windowFrameless),
|
||||||
BLACK_METAMEMBER(coreMode),
|
SWIFT_METAMEMBER(coreMode),
|
||||||
BLACK_METAMEMBER(audioMode)
|
SWIFT_METAMEMBER(audioMode));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Trait for global setup data
|
//! Trait for global setup data
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace swift::misc::network;
|
using namespace swift::misc::network;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::core::data, CVatsimSetup)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::core::data, CVatsimSetup)
|
||||||
|
|
||||||
namespace swift::core::data
|
namespace swift::core::data
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::core::data, CVatsimSetup)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::core::data, CVatsimSetup)
|
||||||
|
|
||||||
namespace swift::core::data
|
namespace swift::core::data
|
||||||
{
|
{
|
||||||
@@ -98,15 +98,14 @@ namespace swift::core::data
|
|||||||
swift::misc::network::CServerList m_fsdServers; //!< FSD test servers
|
swift::misc::network::CServerList m_fsdServers; //!< FSD test servers
|
||||||
swift::misc::network::CServerList m_voiceServers; //!< voice servers
|
swift::misc::network::CServerList m_voiceServers; //!< voice servers
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CVatsimSetup,
|
CVatsimSetup,
|
||||||
BLACK_METAMEMBER(serverFileUrl),
|
SWIFT_METAMEMBER(serverFileUrl),
|
||||||
BLACK_METAMEMBER(dataFileUrl),
|
SWIFT_METAMEMBER(dataFileUrl),
|
||||||
BLACK_METAMEMBER(metarFileUrl),
|
SWIFT_METAMEMBER(metarFileUrl),
|
||||||
BLACK_METAMEMBER(fsdServers),
|
SWIFT_METAMEMBER(fsdServers),
|
||||||
BLACK_METAMEMBER(voiceServers),
|
SWIFT_METAMEMBER(voiceServers),
|
||||||
BLACK_METAMEMBER(timestampMSecsSinceEpoch)
|
SWIFT_METAMEMBER(timestampMSecsSinceEpoch));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Trait for global setup data
|
//! Trait for global setup data
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ using namespace swift::misc::db;
|
|||||||
using namespace swift::misc::network;
|
using namespace swift::misc::network;
|
||||||
using namespace swift::misc::physical_quantities;
|
using namespace swift::misc::physical_quantities;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::core::db, CDatabaseReaderConfig)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::core::db, CDatabaseReaderConfig)
|
||||||
BLACK_DEFINE_SEQUENCE_MIXINS(swift::core::db, CDatabaseReaderConfig, CDatabaseReaderConfigList)
|
SWIFT_DEFINE_SEQUENCE_MIXINS(swift::core::db, CDatabaseReaderConfig, CDatabaseReaderConfigList)
|
||||||
|
|
||||||
namespace swift::core::db
|
namespace swift::core::db
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::core::db, CDatabaseReaderConfig)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::core::db, CDatabaseReaderConfig)
|
||||||
|
|
||||||
namespace swift::core::db
|
namespace swift::core::db
|
||||||
{
|
{
|
||||||
@@ -76,15 +76,15 @@ namespace swift::core::db
|
|||||||
int m_retrievalMode = swift::misc::db::CDbFlags::DbReading; //!< swift::misc::db::CDbFlags::DataRetrievalMode
|
int m_retrievalMode = swift::misc::db::CDbFlags::DbReading; //!< swift::misc::db::CDbFlags::DataRetrievalMode
|
||||||
swift::misc::physical_quantities::CTime m_cacheLifetime;
|
swift::misc::physical_quantities::CTime m_cacheLifetime;
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CDatabaseReaderConfig,
|
CDatabaseReaderConfig,
|
||||||
BLACK_METAMEMBER(entities),
|
SWIFT_METAMEMBER(entities),
|
||||||
BLACK_METAMEMBER(retrievalMode),
|
SWIFT_METAMEMBER(retrievalMode),
|
||||||
BLACK_METAMEMBER(cacheLifetime));
|
SWIFT_METAMEMBER(cacheLifetime));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
BLACK_DECLARE_SEQUENCE_MIXINS(swift::core::db, CDatabaseReaderConfig, CDatabaseReaderConfigList)
|
SWIFT_DECLARE_SEQUENCE_MIXINS(swift::core::db, CDatabaseReaderConfig, CDatabaseReaderConfigList)
|
||||||
|
|
||||||
namespace swift::core::db
|
namespace swift::core::db
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,20 +16,20 @@ namespace swift::core::fsd
|
|||||||
EuroscopeSimData::EuroscopeSimData(const QString &sender, const QString &model, const QString &livery, quint64 timestamp,
|
EuroscopeSimData::EuroscopeSimData(const QString &sender, const QString &model, const QString &livery, quint64 timestamp,
|
||||||
double latitude, double longitude, double altitude, double heading, int bank, int pitch,
|
double latitude, double longitude, double altitude, double heading, int bank, int pitch,
|
||||||
int groundSpeed, bool onGround, double gearPercent, double thrustPercent, const swift::misc::aviation::CAircraftLights &lights) : MessageBase(sender, {}),
|
int groundSpeed, bool onGround, double gearPercent, double thrustPercent, const swift::misc::aviation::CAircraftLights &lights) : MessageBase(sender, {}),
|
||||||
m_model(model),
|
m_model(model),
|
||||||
m_livery(livery),
|
m_livery(livery),
|
||||||
m_timestamp(timestamp),
|
m_timestamp(timestamp),
|
||||||
m_latitude(latitude),
|
m_latitude(latitude),
|
||||||
m_longitude(longitude),
|
m_longitude(longitude),
|
||||||
m_altitude(altitude),
|
m_altitude(altitude),
|
||||||
m_heading(heading),
|
m_heading(heading),
|
||||||
m_bank(bank),
|
m_bank(bank),
|
||||||
m_pitch(pitch),
|
m_pitch(pitch),
|
||||||
m_groundSpeed(groundSpeed),
|
m_groundSpeed(groundSpeed),
|
||||||
m_onGround(onGround),
|
m_onGround(onGround),
|
||||||
m_gearPercent(gearPercent),
|
m_gearPercent(gearPercent),
|
||||||
m_thrustPercent(thrustPercent),
|
m_thrustPercent(thrustPercent),
|
||||||
m_lights(lights)
|
m_lights(lights)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
QStringList EuroscopeSimData::toTokens() const
|
QStringList EuroscopeSimData::toTokens() const
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
class QNetworkReply;
|
class QNetworkReply;
|
||||||
|
|
||||||
namespace BlackFsdTest
|
namespace SwiftFsdTest
|
||||||
{
|
{
|
||||||
class CTestFSDClient;
|
class CTestFSDClient;
|
||||||
}
|
}
|
||||||
@@ -321,7 +321,7 @@ namespace swift::core::fsd
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
//! \cond
|
//! \cond
|
||||||
friend BlackFsdTest::CTestFSDClient;
|
friend SwiftFsdTest::CTestFSDClient;
|
||||||
//! \endcond
|
//! \endcond
|
||||||
|
|
||||||
//! @{
|
//! @{
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ namespace swift::core
|
|||||||
//! .drv aircraft readd callsign re-add (add again) aircraft swift::core::ISimulator
|
//! .drv aircraft readd callsign re-add (add again) aircraft swift::core::ISimulator
|
||||||
//! .drv aircraft readd all re-add all aircraft swift::core::ISimulator
|
//! .drv aircraft readd all re-add all aircraft swift::core::ISimulator
|
||||||
//! .drv aircraft rm callsign remove aircraft swift::core::ISimulator
|
//! .drv aircraft rm callsign remove aircraft swift::core::ISimulator
|
||||||
//! .drv fsuipc on|off enable/disable FSUIPC (if applicable) BlackSimPlugin::FsCommon::CSimulatorFsCommon
|
//! .drv fsuipc on|off enable/disable FSUIPC (if applicable) swift::simplugin::fscommon::CSimulatorFsCommon
|
||||||
//! </pre>
|
//! </pre>
|
||||||
//! Parse command line for simulator drivers, derived classes can add specific parsing by overriding ISimulator::parseDetails
|
//! Parse command line for simulator drivers, derived classes can add specific parsing by overriding ISimulator::parseDetails
|
||||||
virtual bool parseCommandLine(const QString &commandLine, const swift::misc::CIdentifier &originator);
|
virtual bool parseCommandLine(const QString &commandLine, const swift::misc::CIdentifier &originator);
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace swift::misc::physical_quantities;
|
using namespace swift::misc::physical_quantities;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::core::vatsim, CReaderSettings)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::core::vatsim, CReaderSettings)
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::core::vatsim, CRawFsdMessageSettings)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::core::vatsim, CRawFsdMessageSettings)
|
||||||
|
|
||||||
namespace swift::core::vatsim
|
namespace swift::core::vatsim
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
#include "misc/directoryutils.h"
|
#include "misc/directoryutils.h"
|
||||||
#include "misc/fileutils.h"
|
#include "misc/fileutils.h"
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::core::vatsim, CReaderSettings)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::core::vatsim, CReaderSettings)
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::core::vatsim, CRawFsdMessageSettings)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::core::vatsim, CRawFsdMessageSettings)
|
||||||
|
|
||||||
namespace swift::core::vatsim
|
namespace swift::core::vatsim
|
||||||
{
|
{
|
||||||
@@ -72,12 +72,11 @@ namespace swift::core::vatsim
|
|||||||
swift::misc::physical_quantities::CTime m_periodicTime { 30.0, swift::misc::physical_quantities::CTimeUnit::s() };
|
swift::misc::physical_quantities::CTime m_periodicTime { 30.0, swift::misc::physical_quantities::CTimeUnit::s() };
|
||||||
bool m_neverUpdate = false;
|
bool m_neverUpdate = false;
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CReaderSettings,
|
CReaderSettings,
|
||||||
BLACK_METAMEMBER(initialTime),
|
SWIFT_METAMEMBER(initialTime),
|
||||||
BLACK_METAMEMBER(periodicTime),
|
SWIFT_METAMEMBER(periodicTime),
|
||||||
BLACK_METAMEMBER(neverUpdate)
|
SWIFT_METAMEMBER(neverUpdate));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Reader settings
|
//! Reader settings
|
||||||
@@ -172,12 +171,11 @@ namespace swift::core::vatsim
|
|||||||
QString m_FileDir;
|
QString m_FileDir;
|
||||||
FileWriteMode m_fileWriteMode = None;
|
FileWriteMode m_fileWriteMode = None;
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CRawFsdMessageSettings,
|
CRawFsdMessageSettings,
|
||||||
BLACK_METAMEMBER(rawFsdMessagesEnabled),
|
SWIFT_METAMEMBER(rawFsdMessagesEnabled),
|
||||||
BLACK_METAMEMBER(FileDir),
|
SWIFT_METAMEMBER(FileDir),
|
||||||
BLACK_METAMEMBER(fileWriteMode)
|
SWIFT_METAMEMBER(fileWriteMode));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Raw FSD message settings
|
//! Raw FSD message settings
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ namespace swift::gui::components
|
|||||||
//! \copydoc swift::core::ISimulator::resetAircraftStatistics
|
//! \copydoc swift::core::ISimulator::resetAircraftStatistics
|
||||||
void resetStatistics();
|
void resetStatistics();
|
||||||
|
|
||||||
//! \copydoc Blackswift::coreCore::ISimulator::resetLastSentValues
|
//! \copydoc swift::core::ISimulator::resetLastSentValues
|
||||||
void resetLastSentValues();
|
void resetLastSentValues();
|
||||||
|
|
||||||
//! Clear
|
//! Clear
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ namespace swift::gui::models
|
|||||||
CLiveryFilter::CLiveryFilter(int id, const QString &combinedCode, const QString &descriptiom,
|
CLiveryFilter::CLiveryFilter(int id, const QString &combinedCode, const QString &descriptiom,
|
||||||
const QString &airlineDesignator,
|
const QString &airlineDesignator,
|
||||||
const swift::misc::CRgbColor &fuselageColor, const swift::misc::CRgbColor &tailColor, double maxColorDistance, bool colorLiveries, bool airlineLiveries) : m_id(id),
|
const swift::misc::CRgbColor &fuselageColor, const swift::misc::CRgbColor &tailColor, double maxColorDistance, bool colorLiveries, bool airlineLiveries) : m_id(id),
|
||||||
m_combinedCode(combinedCode.trimmed().toUpper()), m_description(descriptiom),
|
m_combinedCode(combinedCode.trimmed().toUpper()), m_description(descriptiom),
|
||||||
m_airlineIcaoDesignator(airlineDesignator.trimmed().toUpper()),
|
m_airlineIcaoDesignator(airlineDesignator.trimmed().toUpper()),
|
||||||
m_fuselageColor(fuselageColor), m_tailColor(tailColor), m_maxColorDistance(maxColorDistance),
|
m_fuselageColor(fuselageColor), m_tailColor(tailColor), m_maxColorDistance(maxColorDistance),
|
||||||
m_colorLiveries(colorLiveries), m_airlineLiveries(airlineLiveries)
|
m_colorLiveries(colorLiveries), m_airlineLiveries(airlineLiveries)
|
||||||
{
|
{
|
||||||
m_valid = valid();
|
m_valid = valid();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace swift::gui;
|
using namespace swift::gui;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CDockWidgetSettings)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CDockWidgetSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CDockWidgetSettings)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CDockWidgetSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
@@ -100,15 +100,14 @@ namespace swift::gui::settings
|
|||||||
bool m_floating = false; //!< floating
|
bool m_floating = false; //!< floating
|
||||||
bool m_frameless = false; //!< frameless
|
bool m_frameless = false; //!< frameless
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CDockWidgetSettings,
|
CDockWidgetSettings,
|
||||||
BLACK_METAMEMBER(floatingMargins),
|
SWIFT_METAMEMBER(floatingMargins),
|
||||||
BLACK_METAMEMBER(floatingFramelessMargins),
|
SWIFT_METAMEMBER(floatingFramelessMargins),
|
||||||
BLACK_METAMEMBER(dockedMargins),
|
SWIFT_METAMEMBER(dockedMargins),
|
||||||
BLACK_METAMEMBER(floating),
|
SWIFT_METAMEMBER(floating),
|
||||||
BLACK_METAMEMBER(frameless),
|
SWIFT_METAMEMBER(frameless),
|
||||||
BLACK_METAMEMBER(geometry)
|
SWIFT_METAMEMBER(geometry));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Trait for settings for dock widget
|
//! Trait for settings for dock widget
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CGeneralGuiSettings)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CGeneralGuiSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QAbstractItemView>
|
#include <QAbstractItemView>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CGeneralGuiSettings)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CGeneralGuiSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
@@ -60,11 +60,10 @@ namespace swift::gui::settings
|
|||||||
QString m_widgetStyle { "Fusion" };
|
QString m_widgetStyle { "Fusion" };
|
||||||
int m_preferredSelection = static_cast<int>(QAbstractItemView::ExtendedSelection);
|
int m_preferredSelection = static_cast<int>(QAbstractItemView::ExtendedSelection);
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CGeneralGuiSettings,
|
CGeneralGuiSettings,
|
||||||
BLACK_METAMEMBER(widgetStyle),
|
SWIFT_METAMEMBER(widgetStyle),
|
||||||
BLACK_METAMEMBER(preferredSelection)
|
SWIFT_METAMEMBER(preferredSelection));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! General GUI settings
|
//! General GUI settings
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace swift::gui;
|
using namespace swift::gui;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CNavigatorSettings)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CNavigatorSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CNavigatorSettings)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CNavigatorSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
@@ -83,13 +83,12 @@ namespace swift::gui::settings
|
|||||||
bool m_frameless = false; //!< frameless
|
bool m_frameless = false; //!< frameless
|
||||||
int m_columns = 1; //!< number of columns
|
int m_columns = 1; //!< number of columns
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CNavigatorSettings,
|
CNavigatorSettings,
|
||||||
BLACK_METAMEMBER(margins),
|
SWIFT_METAMEMBER(margins),
|
||||||
BLACK_METAMEMBER(frameless),
|
SWIFT_METAMEMBER(frameless),
|
||||||
BLACK_METAMEMBER(columns),
|
SWIFT_METAMEMBER(columns),
|
||||||
BLACK_METAMEMBER(geometry)
|
SWIFT_METAMEMBER(geometry));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Trait for settings for navigator
|
//! Trait for settings for navigator
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using namespace swift::misc;
|
|||||||
using namespace swift::misc::network;
|
using namespace swift::misc::network;
|
||||||
using namespace swift::misc::simulation;
|
using namespace swift::misc::simulation;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CTextMessageSettings)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CTextMessageSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "misc/settingscache.h"
|
#include "misc/settingscache.h"
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CTextMessageSettings)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CTextMessageSettings)
|
||||||
|
|
||||||
namespace swift::misc
|
namespace swift::misc
|
||||||
{
|
{
|
||||||
@@ -137,17 +137,16 @@ namespace swift::gui::settings
|
|||||||
bool m_latestFirst = false; //!< latest messages first
|
bool m_latestFirst = false; //!< latest messages first
|
||||||
QString m_styleSheet;
|
QString m_styleSheet;
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CTextMessageSettings,
|
CTextMessageSettings,
|
||||||
BLACK_METAMEMBER(popupPrivateMessages),
|
SWIFT_METAMEMBER(popupPrivateMessages),
|
||||||
BLACK_METAMEMBER(popupSupervisorMessages),
|
SWIFT_METAMEMBER(popupSupervisorMessages),
|
||||||
BLACK_METAMEMBER(popupFrequencyMessages),
|
SWIFT_METAMEMBER(popupFrequencyMessages),
|
||||||
BLACK_METAMEMBER(popupAllMessages),
|
SWIFT_METAMEMBER(popupAllMessages),
|
||||||
BLACK_METAMEMBER(popupSelcalMessages),
|
SWIFT_METAMEMBER(popupSelcalMessages),
|
||||||
BLACK_METAMEMBER(focus),
|
SWIFT_METAMEMBER(focus),
|
||||||
BLACK_METAMEMBER(latestFirst),
|
SWIFT_METAMEMBER(latestFirst),
|
||||||
BLACK_METAMEMBER(styleSheet)
|
SWIFT_METAMEMBER(styleSheet));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Text message settings
|
//! Text message settings
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using namespace swift::misc;
|
|||||||
using namespace swift::misc::physical_quantities;
|
using namespace swift::misc::physical_quantities;
|
||||||
using namespace swift::gui;
|
using namespace swift::gui;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CViewUpdateSettings)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::gui::settings, CViewUpdateSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CViewUpdateSettings)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::gui::settings, CViewUpdateSettings)
|
||||||
|
|
||||||
namespace swift::gui::settings
|
namespace swift::gui::settings
|
||||||
{
|
{
|
||||||
@@ -82,13 +82,12 @@ namespace swift::gui::settings
|
|||||||
swift::misc::physical_quantities::CTime m_updateRendering { 10.0, swift::misc::physical_quantities::CTimeUnit::s() };
|
swift::misc::physical_quantities::CTime m_updateRendering { 10.0, swift::misc::physical_quantities::CTimeUnit::s() };
|
||||||
swift::misc::physical_quantities::CTime m_updateUser { 10.0, swift::misc::physical_quantities::CTimeUnit::s() };
|
swift::misc::physical_quantities::CTime m_updateUser { 10.0, swift::misc::physical_quantities::CTimeUnit::s() };
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CViewUpdateSettings,
|
CViewUpdateSettings,
|
||||||
BLACK_METAMEMBER(updateAtc),
|
SWIFT_METAMEMBER(updateAtc),
|
||||||
BLACK_METAMEMBER(updateAircraft),
|
SWIFT_METAMEMBER(updateAircraft),
|
||||||
BLACK_METAMEMBER(updateRendering),
|
SWIFT_METAMEMBER(updateRendering),
|
||||||
BLACK_METAMEMBER(updateUser)
|
SWIFT_METAMEMBER(updateUser));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Trait for settings about update rates
|
//! Trait for settings about update rates
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
using namespace swift::config;
|
using namespace swift::config;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::misc, CApplicationInfo)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc, CApplicationInfo)
|
||||||
|
|
||||||
namespace swift::misc
|
namespace swift::misc
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QFlags>
|
#include <QFlags>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::misc, CApplicationInfo)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::misc, CApplicationInfo)
|
||||||
|
|
||||||
namespace swift::misc
|
namespace swift::misc
|
||||||
{
|
{
|
||||||
@@ -176,17 +176,16 @@ namespace swift::misc
|
|||||||
//! Guess Application
|
//! Guess Application
|
||||||
static Application guessApplication();
|
static Application guessApplication();
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CApplicationInfo,
|
CApplicationInfo,
|
||||||
BLACK_METAMEMBER(app),
|
SWIFT_METAMEMBER(app),
|
||||||
BLACK_METAMEMBER(wordSize),
|
SWIFT_METAMEMBER(wordSize),
|
||||||
BLACK_METAMEMBER(exePath),
|
SWIFT_METAMEMBER(exePath),
|
||||||
BLACK_METAMEMBER(applicationDataDir),
|
SWIFT_METAMEMBER(applicationDataDir),
|
||||||
BLACK_METAMEMBER(version),
|
SWIFT_METAMEMBER(version),
|
||||||
BLACK_METAMEMBER(compileInfo),
|
SWIFT_METAMEMBER(compileInfo),
|
||||||
BLACK_METAMEMBER(platform),
|
SWIFT_METAMEMBER(platform),
|
||||||
BLACK_METAMEMBER(process)
|
SWIFT_METAMEMBER(process));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
} // ns
|
} // ns
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
using namespace swift::config;
|
using namespace swift::config;
|
||||||
|
|
||||||
BLACK_DEFINE_SEQUENCE_MIXINS(swift::misc, CApplicationInfo, CApplicationInfoList)
|
SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc, CApplicationInfo, CApplicationInfoList)
|
||||||
|
|
||||||
namespace swift::misc
|
namespace swift::misc
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "misc/sequence.h"
|
#include "misc/sequence.h"
|
||||||
#include "misc/collection.h"
|
#include "misc/collection.h"
|
||||||
|
|
||||||
BLACK_DECLARE_SEQUENCE_MIXINS(swift::misc, CApplicationInfo, CApplicationInfoList)
|
SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc, CApplicationInfo, CApplicationInfoList)
|
||||||
|
|
||||||
namespace swift::misc
|
namespace swift::misc
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <QAudioDevice>
|
#include <QAudioDevice>
|
||||||
#include <QMediaDevices>
|
#include <QMediaDevices>
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::misc::audio, CAudioDeviceInfo)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::audio, CAudioDeviceInfo)
|
||||||
|
|
||||||
namespace swift::misc::audio
|
namespace swift::misc::audio
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::misc::audio, CAudioDeviceInfo)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::misc::audio, CAudioDeviceInfo)
|
||||||
|
|
||||||
namespace swift::misc::audio
|
namespace swift::misc::audio
|
||||||
{
|
{
|
||||||
@@ -108,12 +108,11 @@ namespace swift::misc::audio
|
|||||||
QString m_deviceName; //!< Device name
|
QString m_deviceName; //!< Device name
|
||||||
CIdentifier m_identifier; //!< We use a DBus based system. Hence an audio device can reside on a different computers, this here is its name
|
CIdentifier m_identifier; //!< We use a DBus based system. Hence an audio device can reside on a different computers, this here is its name
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CAudioDeviceInfo,
|
CAudioDeviceInfo,
|
||||||
BLACK_METAMEMBER(type),
|
SWIFT_METAMEMBER(type),
|
||||||
BLACK_METAMEMBER(deviceName),
|
SWIFT_METAMEMBER(deviceName),
|
||||||
BLACK_METAMEMBER(identifier)
|
SWIFT_METAMEMBER(identifier));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#include <QMediaDevices>
|
#include <QMediaDevices>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
BLACK_DEFINE_SEQUENCE_MIXINS(swift::misc::audio, CAudioDeviceInfo, CAudioDeviceInfoList)
|
SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::audio, CAudioDeviceInfo, CAudioDeviceInfoList)
|
||||||
|
|
||||||
namespace swift::misc::audio
|
namespace swift::misc::audio
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#include <QAudioDevice>
|
#include <QAudioDevice>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
BLACK_DECLARE_SEQUENCE_MIXINS(swift::misc::audio, CAudioDeviceInfo, CAudioDeviceInfoList)
|
SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::audio, CAudioDeviceInfo, CAudioDeviceInfoList)
|
||||||
|
|
||||||
namespace swift::misc::audio
|
namespace swift::misc::audio
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
using namespace swift::misc::audio;
|
using namespace swift::misc::audio;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::misc::audio, CSettings)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::audio, CSettings)
|
||||||
|
|
||||||
namespace swift::misc::audio
|
namespace swift::misc::audio
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::misc::audio, CSettings)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::misc::audio, CSettings)
|
||||||
|
|
||||||
namespace swift::misc::audio
|
namespace swift::misc::audio
|
||||||
{
|
{
|
||||||
@@ -131,17 +131,16 @@ namespace swift::misc::audio
|
|||||||
int m_inVolume = 50; //!< AFV range
|
int m_inVolume = 50; //!< AFV range
|
||||||
bool m_audioEffects = true; //!< Audio effects en
|
bool m_audioEffects = true; //!< Audio effects en
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CSettings,
|
CSettings,
|
||||||
BLACK_METAMEMBER(notificationSoundDir),
|
SWIFT_METAMEMBER(notificationSoundDir),
|
||||||
BLACK_METAMEMBER(notification),
|
SWIFT_METAMEMBER(notification),
|
||||||
BLACK_METAMEMBER(notificationVolume),
|
SWIFT_METAMEMBER(notificationVolume),
|
||||||
BLACK_METAMEMBER(outVolume),
|
SWIFT_METAMEMBER(outVolume),
|
||||||
BLACK_METAMEMBER(outVolumeCom1),
|
SWIFT_METAMEMBER(outVolumeCom1),
|
||||||
BLACK_METAMEMBER(outVolumeCom2),
|
SWIFT_METAMEMBER(outVolumeCom2),
|
||||||
BLACK_METAMEMBER(inVolume),
|
SWIFT_METAMEMBER(inVolume),
|
||||||
BLACK_METAMEMBER(audioEffects)
|
SWIFT_METAMEMBER(audioEffects));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Audio related settings
|
//! Audio related settings
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
using namespace swift::misc;
|
using namespace swift::misc;
|
||||||
using namespace swift::misc::db;
|
using namespace swift::misc::db;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftCategory)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftCategory)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftCategory)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftCategory)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
@@ -160,18 +160,17 @@ namespace swift::misc::aviation
|
|||||||
int m_l1 = 0;
|
int m_l1 = 0;
|
||||||
int m_l2 = 0;
|
int m_l2 = 0;
|
||||||
int m_l3 = 0;
|
int m_l3 = 0;
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CAircraftCategory,
|
CAircraftCategory,
|
||||||
BLACK_METAMEMBER(dbKey),
|
SWIFT_METAMEMBER(dbKey),
|
||||||
BLACK_METAMEMBER(timestampMSecsSinceEpoch),
|
SWIFT_METAMEMBER(timestampMSecsSinceEpoch),
|
||||||
BLACK_METAMEMBER(name),
|
SWIFT_METAMEMBER(name),
|
||||||
BLACK_METAMEMBER(l1),
|
SWIFT_METAMEMBER(l1),
|
||||||
BLACK_METAMEMBER(l2),
|
SWIFT_METAMEMBER(l2),
|
||||||
BLACK_METAMEMBER(l3),
|
SWIFT_METAMEMBER(l3),
|
||||||
BLACK_METAMEMBER(description),
|
SWIFT_METAMEMBER(description),
|
||||||
BLACK_METAMEMBER(path),
|
SWIFT_METAMEMBER(path),
|
||||||
BLACK_METAMEMBER(assignable)
|
SWIFT_METAMEMBER(assignable));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Category/id map
|
//! Category/id map
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#include <Qt>
|
#include <Qt>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
|
|
||||||
BLACK_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftCategory, CAircraftCategoryList)
|
SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftCategory, CAircraftCategoryList)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include <QList>
|
#include <QList>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
|
||||||
BLACK_DECLARE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftCategory, CAircraftCategoryList)
|
SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftCategory, CAircraftCategoryList)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftEngine)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftEngine)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftEngine)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftEngine)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
@@ -49,11 +49,10 @@ namespace swift::misc::aviation
|
|||||||
int m_number = 1;
|
int m_number = 1;
|
||||||
bool m_on = true;
|
bool m_on = true;
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CAircraftEngine,
|
CAircraftEngine,
|
||||||
BLACK_METAMEMBER(number, 0, DisabledForJson),
|
SWIFT_METAMEMBER(number, 0, DisabledForJson),
|
||||||
BLACK_METAMEMBER(on)
|
SWIFT_METAMEMBER(on));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
BLACK_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftEngine, CAircraftEngineList)
|
SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftEngine, CAircraftEngineList)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include <initializer_list>
|
#include <initializer_list>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
|
||||||
BLACK_DECLARE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftEngine, CAircraftEngineList)
|
SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftEngine, CAircraftEngineList)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ using namespace swift::misc;
|
|||||||
using namespace swift::misc::db;
|
using namespace swift::misc::db;
|
||||||
using namespace swift::misc::physical_quantities;
|
using namespace swift::misc::physical_quantities;
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftIcaoCode)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftIcaoCode)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftIcaoCode)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftIcaoCode)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
@@ -390,25 +390,24 @@ namespace swift::misc::aviation
|
|||||||
//! Create a combined string like L2J
|
//! Create a combined string like L2J
|
||||||
static QString createdCombinedString(const QString &type, int engineCount, const QString &engine);
|
static QString createdCombinedString(const QString &type, int engineCount, const QString &engine);
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CAircraftIcaoCode,
|
CAircraftIcaoCode,
|
||||||
BLACK_METAMEMBER(dbKey),
|
SWIFT_METAMEMBER(dbKey),
|
||||||
BLACK_METAMEMBER(timestampMSecsSinceEpoch),
|
SWIFT_METAMEMBER(timestampMSecsSinceEpoch),
|
||||||
BLACK_METAMEMBER(designator),
|
SWIFT_METAMEMBER(designator),
|
||||||
BLACK_METAMEMBER(iataCode),
|
SWIFT_METAMEMBER(iataCode),
|
||||||
BLACK_METAMEMBER(family),
|
SWIFT_METAMEMBER(family),
|
||||||
BLACK_METAMEMBER(combinedType),
|
SWIFT_METAMEMBER(combinedType),
|
||||||
BLACK_METAMEMBER(manufacturer),
|
SWIFT_METAMEMBER(manufacturer),
|
||||||
BLACK_METAMEMBER(modelDescription),
|
SWIFT_METAMEMBER(modelDescription),
|
||||||
BLACK_METAMEMBER(modelIataDescription),
|
SWIFT_METAMEMBER(modelIataDescription),
|
||||||
BLACK_METAMEMBER(modelSwiftDescription),
|
SWIFT_METAMEMBER(modelSwiftDescription),
|
||||||
BLACK_METAMEMBER(category),
|
SWIFT_METAMEMBER(category),
|
||||||
BLACK_METAMEMBER(wtc),
|
SWIFT_METAMEMBER(wtc),
|
||||||
BLACK_METAMEMBER(military),
|
SWIFT_METAMEMBER(military),
|
||||||
BLACK_METAMEMBER(realWorld),
|
SWIFT_METAMEMBER(realWorld),
|
||||||
BLACK_METAMEMBER(legacy),
|
SWIFT_METAMEMBER(legacy),
|
||||||
BLACK_METAMEMBER(rank)
|
SWIFT_METAMEMBER(rank));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Id/CAircraftIcaoCode map
|
//! Id/CAircraftIcaoCode map
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#include <QJsonValue>
|
#include <QJsonValue>
|
||||||
#include <Qt>
|
#include <Qt>
|
||||||
|
|
||||||
BLACK_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftIcaoCode, CAircraftIcaoCodeList)
|
SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftIcaoCode, CAircraftIcaoCodeList)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
|
||||||
BLACK_DECLARE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftIcaoCode, CAircraftIcaoCodeList)
|
SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftIcaoCode, CAircraftIcaoCodeList)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include "misc/comparefunctions.h"
|
#include "misc/comparefunctions.h"
|
||||||
#include <QStringBuilder>
|
#include <QStringBuilder>
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftLights)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftLights)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftLights)
|
SWIFT_DECLARE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftLights)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
@@ -137,17 +137,17 @@ namespace swift::misc::aviation
|
|||||||
bool m_recognition = false; //!< not supported by aircraft config (VATSIM)
|
bool m_recognition = false; //!< not supported by aircraft config (VATSIM)
|
||||||
bool m_cabin = false; //!< not supported by aircraft config (VATSIM)
|
bool m_cabin = false; //!< not supported by aircraft config (VATSIM)
|
||||||
|
|
||||||
BLACK_METACLASS(
|
SWIFT_METACLASS(
|
||||||
CAircraftLights,
|
CAircraftLights,
|
||||||
BLACK_METAMEMBER(isNull, 0, DisabledForJson), // disable since JSON is used for network
|
SWIFT_METAMEMBER(isNull, 0, DisabledForJson), // disable since JSON is used for network
|
||||||
BLACK_METAMEMBER_NAMED(strobeOn, "strobe_on"),
|
SWIFT_METAMEMBER_NAMED(strobeOn, "strobe_on"),
|
||||||
BLACK_METAMEMBER_NAMED(landingOn, "landing_on"),
|
SWIFT_METAMEMBER_NAMED(landingOn, "landing_on"),
|
||||||
BLACK_METAMEMBER_NAMED(taxiOn, "taxi_on"),
|
SWIFT_METAMEMBER_NAMED(taxiOn, "taxi_on"),
|
||||||
BLACK_METAMEMBER_NAMED(beaconOn, "beacon_on"),
|
SWIFT_METAMEMBER_NAMED(beaconOn, "beacon_on"),
|
||||||
BLACK_METAMEMBER_NAMED(navOn, "nav_on"),
|
SWIFT_METAMEMBER_NAMED(navOn, "nav_on"),
|
||||||
BLACK_METAMEMBER_NAMED(logoOn, "logo_on"),
|
SWIFT_METAMEMBER_NAMED(logoOn, "logo_on"),
|
||||||
BLACK_METAMEMBER(recognition, 0, DisabledForJson), // disable since JSON is used for network
|
SWIFT_METAMEMBER(recognition, 0, DisabledForJson), // disable since JSON is used for network
|
||||||
BLACK_METAMEMBER(cabin, 0, DisabledForJson) // disable since JSON is used for network
|
SWIFT_METAMEMBER(cabin, 0, DisabledForJson) // disable since JSON is used for network
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "QStringBuilder"
|
#include "QStringBuilder"
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftParts)
|
SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAircraftParts)
|
||||||
|
|
||||||
namespace swift::misc::aviation
|
namespace swift::misc::aviation
|
||||||
{
|
{
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user