mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
* changed .pro / .pri as required * Used info from project class in network_vatlib * Checks / info in GUI/core (e.g. console) * const * versions of systemNameAndVersion / simulators, as mentioned in https://dev.vatsim-germany.org/issues/217#note-4
67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
#ifndef BLACKMISC_CPROJECT_H
|
|
#define BLACKMISC_CPROJECT_H
|
|
|
|
#include <QString>
|
|
|
|
namespace BlackMisc
|
|
{
|
|
|
|
/*!
|
|
* \brief Metadata about the project
|
|
*/
|
|
class CProject
|
|
{
|
|
public:
|
|
//! with BlackCore?
|
|
static bool isCompiledWithBlackCore();
|
|
|
|
//! with BlackSound?
|
|
static bool isCompiledWithBlackSound();
|
|
|
|
//! with FSX support?
|
|
static bool isCompiledWithFsxSupport();
|
|
|
|
//! with XPlane support?
|
|
static bool isCompiledWithXPlaneSupport();
|
|
|
|
//! with any simulator libraries
|
|
static bool isCompiledWithFlightSimulatorSupport();
|
|
|
|
//! with GUI?
|
|
static bool isCompiledWithGui();
|
|
|
|
//! Compiled with as info string
|
|
static const QString &compiledInfo();
|
|
|
|
//! Simulator String info
|
|
static const QString &simulators();
|
|
|
|
//! Simulator String info
|
|
static const char *simulatorsChar();
|
|
|
|
//! Version info
|
|
static const QString &version();
|
|
|
|
//! System's name and version
|
|
static const QString &systemNameAndVersion();
|
|
|
|
//! System's name and version
|
|
static const char *systemNameAndVersionChar();
|
|
|
|
//! Version major
|
|
static int versionMajor();
|
|
|
|
//! Version minor
|
|
static int versionMinor();
|
|
|
|
private:
|
|
//! Constructor
|
|
CProject() {}
|
|
|
|
//! Split version
|
|
static int getMajorMinor(int index);
|
|
};
|
|
}
|
|
|
|
#endif // guard
|