mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
refs #403 add BlackMisc shared library build
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_AIRCRAFTMODEL_H
|
||||
#define BLACKMISC_SIMULATION_AIRCRAFTMODEL_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/aviation/aircraft.h"
|
||||
#include "blackmisc/aviation/aircrafticao.h"
|
||||
#include "blackmisc/network/user.h"
|
||||
@@ -23,7 +24,7 @@ namespace BlackMisc
|
||||
{
|
||||
//! Aircraft model (other pilot, my models on disk)
|
||||
//! \remarks Simulator independent class, supposed to be common denominator
|
||||
class CAircraftModel : public CValueObject<CAircraftModel>
|
||||
class BLACKMISC_EXPORT CAircraftModel : public CValueObject<CAircraftModel>
|
||||
{
|
||||
public:
|
||||
//! Model type
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_AIRCRAFTMODELLIST_H
|
||||
#define BLACKMISC_SIMULATION_AIRCRAFTMODELLIST_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/simulation/aircraftmodel.h"
|
||||
#include "blackmisc/collection.h"
|
||||
#include "blackmisc/sequence.h"
|
||||
@@ -23,7 +24,7 @@ namespace BlackMisc
|
||||
/*!
|
||||
* Value object encapsulating a list of aircraft models
|
||||
*/
|
||||
class CAircraftModelList : public CSequence<CAircraftModel>
|
||||
class BLACKMISC_EXPORT CAircraftModelList : public CSequence<CAircraftModel>
|
||||
{
|
||||
public:
|
||||
//! Empty constructor.
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_FSCOMMON_AIRCRAFTCFGENTRY_H
|
||||
#define BLACKMISC_SIMULATION_FSCOMMON_AIRCRAFTCFGENTRY_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/simulation/aircraftmodel.h"
|
||||
#include "blackmisc/propertyindex.h"
|
||||
#include "blackmisc/variant.h"
|
||||
@@ -27,7 +28,7 @@ namespace BlackMisc
|
||||
* \remarks an entry in the aircraft.cfg is title, atc type, ... This class already bundles
|
||||
* relevant entries, hence the class is named Entries (plural)
|
||||
*/
|
||||
class CAircraftCfgEntries: public BlackMisc::CValueObject<CAircraftCfgEntries>
|
||||
class BLACKMISC_EXPORT CAircraftCfgEntries: public BlackMisc::CValueObject<CAircraftCfgEntries>
|
||||
{
|
||||
public:
|
||||
//! Properties by index
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_FSCOMMON_AIRCRAFTCFGLIST_H
|
||||
#define BLACKMISC_SIMULATION_FSCOMMON_AIRCRAFTCFGLIST_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/simulation/fscommon/aircraftcfgentries.h"
|
||||
#include "blackmisc/simulation/aircraftmodellist.h"
|
||||
#include "blackmisc/sequence.h"
|
||||
@@ -29,7 +30,7 @@ namespace BlackMisc
|
||||
{
|
||||
|
||||
//! Utility, providing FS aircraft.cfg entries
|
||||
class CAircraftCfgEntriesList : public BlackMisc::CSequence<CAircraftCfgEntries>
|
||||
class BLACKMISC_EXPORT CAircraftCfgEntriesList : public BlackMisc::CSequence<CAircraftCfgEntries>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_FSCOMMON_AIRCRAFTMAPPER_H
|
||||
#define BLACKMISC_SIMULATION_FSCOMMON_AIRCRAFTMAPPER_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "aircraftcfgentrieslist.h"
|
||||
#include "../simulatormodelmappings.h"
|
||||
#include "blackmisc/worker.h"
|
||||
@@ -34,7 +35,7 @@ namespace BlackMisc
|
||||
//! Thereafter all existing models and mappings can be obtained from here.
|
||||
//! \sa CAircraftCfgEntries
|
||||
//! \sa CAircraftCfgEntriesList
|
||||
class CAircraftMapper : public QObject
|
||||
class BLACKMISC_EXPORT CAircraftMapper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_FSCOMMON_BCDCONVERSIONS_H
|
||||
#define BLACKMISC_SIMULATION_FSCOMMON_BCDCONVERSIONS_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/pq/frequency.h"
|
||||
#include "blackmisc/aviation/transponder.h"
|
||||
#include <QtGlobal>
|
||||
@@ -24,7 +25,7 @@ namespace BlackMisc
|
||||
{
|
||||
|
||||
//! BCD conversions for FS
|
||||
class CBcdConversions
|
||||
class BLACKMISC_EXPORT CBcdConversions
|
||||
{
|
||||
public:
|
||||
//! BCD -> decimal
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_FSCOMMONUTIL_H
|
||||
#define BLACKMISC_SIMULATION_FSCOMMONUTIL_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include <QString>
|
||||
|
||||
namespace BlackMisc
|
||||
@@ -21,7 +22,7 @@ namespace BlackMisc
|
||||
namespace FsCommon
|
||||
{
|
||||
//! FS9/X utils
|
||||
class CFsCommonUtil
|
||||
class BLACKMISC_EXPORT CFsCommonUtil
|
||||
{
|
||||
public:
|
||||
CFsCommonUtil();
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_FSCOMMON_VPILOTMODELMAPPINGS_H
|
||||
#define BLACKMISC_SIMULATION_FSCOMMON_VPILOTMODELMAPPINGS_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "../simulatormodelmappings.h"
|
||||
#include <QStringList>
|
||||
|
||||
@@ -22,7 +23,7 @@ namespace BlackMisc
|
||||
namespace FsCommon
|
||||
{
|
||||
//! Model mappings
|
||||
class CVPilotModelMappings : public ISimulatorModelMappings
|
||||
class BLACKMISC_EXPORT CVPilotModelMappings : public ISimulatorModelMappings
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_FSX_SIMSETUP_H
|
||||
#define BLACKMISC_SIMULATION_FSX_SIMSETUP_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "../simulatorsetup.h"
|
||||
#include <QString>
|
||||
|
||||
@@ -22,7 +23,7 @@ namespace BlackMisc
|
||||
namespace Fsx
|
||||
{
|
||||
//! Simulator settings for FSX Flight simulators
|
||||
class CFsxSimulatorSetup
|
||||
class BLACKMISC_EXPORT CFsxSimulatorSetup
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_FSX_SIMCONNECTUTILITIES_H
|
||||
#define BLACKMISC_SIMULATION_FSX_SIMCONNECTUTILITIES_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include <QString>
|
||||
#include <QMetaEnum>
|
||||
|
||||
@@ -34,7 +35,7 @@ namespace BlackMisc
|
||||
namespace Fsx
|
||||
{
|
||||
//! Utilities for SimConnect
|
||||
class CSimConnectUtilities : public QObject
|
||||
class BLACKMISC_EXPORT CSimConnectUtilities : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(SIMCONNECT_EXCEPTION)
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_OWNAIRCRAFTPROVIDER_H
|
||||
#define BLACKMISC_SIMULATION_OWNAIRCRAFTPROVIDER_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/simulation/simulatedaircraft.h"
|
||||
|
||||
namespace BlackMisc
|
||||
@@ -19,7 +20,7 @@ namespace BlackMisc
|
||||
namespace Simulation
|
||||
{
|
||||
//! Direct in memory access to own aircraft
|
||||
class IOwnAircraftProviderReadOnly
|
||||
class BLACKMISC_EXPORT IOwnAircraftProviderReadOnly
|
||||
{
|
||||
public:
|
||||
//! Own aircraft as reference
|
||||
@@ -35,7 +36,7 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
//! Direct in memory access to own aircraft
|
||||
class IOwnAircraftProvider : public IOwnAircraftProviderReadOnly
|
||||
class BLACKMISC_EXPORT IOwnAircraftProvider : public IOwnAircraftProviderReadOnly
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -58,7 +59,7 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
//! For testing
|
||||
class COwnAircraftProviderDummy : public QObject, public IOwnAircraftProvider
|
||||
class BLACKMISC_EXPORT COwnAircraftProviderDummy : public QObject, public IOwnAircraftProvider
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -93,7 +94,7 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
//! Delegating class which can be directly used to access an \sa IOwnAircraftProviderReadOnly instance
|
||||
class COwnAircraftAwareReadOnly
|
||||
class BLACKMISC_EXPORT COwnAircraftAwareReadOnly
|
||||
{
|
||||
public:
|
||||
//! \copydoc IOwnAircraftProviderReadOnly::ownAircraft
|
||||
@@ -106,7 +107,7 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
//! Delegating class which can be directly used to access an \sa IOwnAircraftProvider instance
|
||||
class COwnAircraftAware
|
||||
class BLACKMISC_EXPORT COwnAircraftAware
|
||||
{
|
||||
public:
|
||||
//! \copydoc IOwnAircraftProviderReadOnly::ownAircraft
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_REMOTEAIRCRAFTPROVIDER_H
|
||||
#define BLACKMISC_SIMULATION_REMOTEAIRCRAFTPROVIDER_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/simulation/simulatedaircraftlist.h"
|
||||
#include "blackmisc/aviation/aircraftsituationlist.h"
|
||||
#include "blackmisc/aviation/aircraftpartslist.h"
|
||||
@@ -24,7 +25,7 @@ namespace BlackMisc
|
||||
//! Direct in memory access to remote aircraft
|
||||
//! \note Can not be derived from QObject (as for the signals), as this would create multiple
|
||||
//! inheritance. Hence Q_DECLARE_INTERFACE is used.
|
||||
class IRemoteAircraftProviderReadOnly
|
||||
class BLACKMISC_EXPORT IRemoteAircraftProviderReadOnly
|
||||
{
|
||||
public:
|
||||
//! All rendered aircraft
|
||||
@@ -60,7 +61,7 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
//! Direct in memory access to own aircraft
|
||||
class IRemoteAircraftProvider : public IRemoteAircraftProviderReadOnly
|
||||
class BLACKMISC_EXPORT IRemoteAircraftProvider : public IRemoteAircraftProviderReadOnly
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -90,7 +91,7 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
//! Class which can be directly used to access an \sa IRemoteAircraftProviderReadOnly object
|
||||
class CRemoteAircraftAwareReadOnly
|
||||
class BLACKMISC_EXPORT CRemoteAircraftAwareReadOnly
|
||||
{
|
||||
public:
|
||||
//! \copydoc IRemoteAircraftProviderReadOnly::renderedAircraft
|
||||
@@ -112,7 +113,7 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
//! Class which can be directly used to access an \sa IRemoteAircraftProvider object
|
||||
class CRemoteAircraftAware
|
||||
class BLACKMISC_EXPORT CRemoteAircraftAware
|
||||
{
|
||||
public:
|
||||
//! \copydoc IRemoteAircraftProviderReadOnly::renderedAircraft
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_REMOTEAIRCRAFTPROVIDERDUMMY_H
|
||||
#define BLACKMISC_SIMULATION_REMOTEAIRCRAFTPROVIDERDUMMY_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/simulation/remoteaircraftprovider.h"
|
||||
|
||||
namespace BlackMisc
|
||||
@@ -20,7 +21,7 @@ namespace BlackMisc
|
||||
{
|
||||
|
||||
//! Dummy implementation for testing purpose
|
||||
class CRemoteAircraftProviderDummy :
|
||||
class BLACKMISC_EXPORT CRemoteAircraftProviderDummy :
|
||||
public QObject,
|
||||
public IRemoteAircraftProvider
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SETTINGS_SIMULATOR_H
|
||||
#define BLACKMISC_SETTINGS_SIMULATOR_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/settingutilities.h"
|
||||
@@ -26,7 +27,7 @@ namespace BlackMisc
|
||||
{
|
||||
//! Value object encapsulating information of simulator related settings.
|
||||
//! \deprecated will be removed with new MS settings
|
||||
class CSettingsSimulator : public BlackMisc::CValueObject<CSettingsSimulator>
|
||||
class BLACKMISC_EXPORT CSettingsSimulator : public BlackMisc::CValueObject<CSettingsSimulator>
|
||||
{
|
||||
public:
|
||||
//! Default constructor.
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_SIMULATEDAIRCRAFT_H
|
||||
#define BLACKMISC_SIMULATION_SIMULATEDAIRCRAFT_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/aviation/aircraft.h"
|
||||
#include "aircraftmodel.h"
|
||||
#include "blackmisc/network/client.h"
|
||||
@@ -22,7 +23,7 @@ namespace BlackMisc
|
||||
{
|
||||
//! Comprehensive information of an aircraft
|
||||
//! \sa CAircraft
|
||||
class CSimulatedAircraft : public CValueObject<CSimulatedAircraft, BlackMisc::Aviation::CAircraft>
|
||||
class BLACKMISC_EXPORT CSimulatedAircraft : public CValueObject<CSimulatedAircraft, BlackMisc::Aviation::CAircraft>
|
||||
{
|
||||
public:
|
||||
//! Properties by index
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_SIMULATEDNAIRCRAFTLIST_H
|
||||
#define BLACKMISC_SIMULATION_SIMULATEDNAIRCRAFTLIST_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/simulation/simulatedaircraft.h"
|
||||
#include "blackmisc/aviation/callsignobjectlist.h"
|
||||
#include "blackmisc/aviation/aircraftlist.h"
|
||||
@@ -28,7 +29,7 @@ namespace BlackMisc
|
||||
namespace Simulation
|
||||
{
|
||||
//! Value object encapsulating a list of aircraft.
|
||||
class CSimulatedAircraftList :
|
||||
class BLACKMISC_EXPORT CSimulatedAircraftList :
|
||||
public BlackMisc::CSequence<CSimulatedAircraft>,
|
||||
public BlackMisc::Aviation::ICallsignObjectList<CSimulatedAircraft, CSimulatedAircraftList>,
|
||||
public BlackMisc::Geo::IGeoObjectWithRelativePositionList<CSimulatedAircraft, CSimulatedAircraftList>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#define BLACKMISC_SIMULATION_SIMULATORINFOLIST_H
|
||||
|
||||
#include "simulatorplugininfo.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/sequence.h"
|
||||
#include "blackmisc/collection.h"
|
||||
#include <QStringList>
|
||||
@@ -22,7 +23,7 @@ namespace BlackMisc
|
||||
namespace Simulation
|
||||
{
|
||||
//! Value object encapsulating a list of SimulatorInfo objects.
|
||||
class CSimulatorPluginInfoList : public BlackMisc::CSequence<CSimulatorPluginInfo>
|
||||
class BLACKMISC_EXPORT CSimulatorPluginInfoList : public BlackMisc::CSequence<CSimulatorPluginInfo>
|
||||
{
|
||||
public:
|
||||
//! Default constructor
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_MODELMAPPINGS_H
|
||||
#define BLACKMISC_SIMULATION_MODELMAPPINGS_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/network/aircraftmappinglist.h"
|
||||
#include <QObject>
|
||||
|
||||
@@ -21,7 +22,7 @@ namespace BlackMisc
|
||||
{
|
||||
//! Model mappings interface, different mapping readers (e.g. from database, from vPilot data files)
|
||||
//! can implement this, but provide the same mapping list.
|
||||
class ISimulatorModelMappings : public QObject
|
||||
class BLACKMISC_EXPORT ISimulatorModelMappings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKMISC_SIMULATION_SIMULATORPLUGININFO_H
|
||||
#define BLACKMISC_SIMULATION_SIMULATORPLUGININFO_H
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
|
||||
@@ -20,7 +21,7 @@ namespace BlackMisc
|
||||
namespace Simulation
|
||||
{
|
||||
//! Describing a simulator plugin
|
||||
class CSimulatorPluginInfo : public BlackMisc::CValueObject<CSimulatorPluginInfo>
|
||||
class BLACKMISC_EXPORT CSimulatorPluginInfo : public BlackMisc::CValueObject<CSimulatorPluginInfo>
|
||||
{
|
||||
//! The _identifier_ property identifies the plugin itself and must be uniqe.
|
||||
Q_PROPERTY(QString identifier READ getIdentifier)
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#define BLACKMISC_SIMULATION_SIMULATORSETUP_H
|
||||
|
||||
#include "blackmisc/namevariantpairlist.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
|
||||
@@ -22,7 +23,7 @@ namespace BlackMisc
|
||||
{
|
||||
//! Simulator settings for flight simulators.
|
||||
//! Those are set up at runtime and represent information about the simulator (like a small registry)
|
||||
class CSimulatorSetup : public CValueObject<CSimulatorSetup>
|
||||
class BLACKMISC_EXPORT CSimulatorSetup : public CValueObject<CSimulatorSetup>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user