mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
63 lines
1.9 KiB
C++
63 lines
1.9 KiB
C++
/* Copyright (C) 2015
|
|
* swift Project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKMISC_SIMULATION_XPLANE_XPLANEUTIL_H
|
|
#define BLACKMISC_SIMULATION_XPLANE_XPLANEUTIL_H
|
|
|
|
#include "blackmisc/blackmiscexport.h"
|
|
|
|
#include <QString>
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Simulation
|
|
{
|
|
namespace XPlane
|
|
{
|
|
//! XPlane utils
|
|
class BLACKMISC_EXPORT CXPlaneUtil
|
|
{
|
|
public:
|
|
//! Constructor
|
|
CXPlaneUtil() = delete;
|
|
|
|
//! XPlane 9 directory
|
|
static QString xplane9Dir();
|
|
|
|
//! XPlane 10 directory
|
|
static QString xplane10Dir();
|
|
|
|
//! XPlane 11 directory
|
|
static QString xplane11Dir();
|
|
|
|
//! XPlane root directory
|
|
//! In case more then one XPlane version is found, the path to the highest version is used
|
|
static QString xplaneRootDir();
|
|
|
|
//! Directories with models
|
|
static QStringList xplaneModelDirectories();
|
|
|
|
//! Exclude directories for models
|
|
static QStringList xplaneModelExcludeDirectoryPatterns();
|
|
|
|
//! XBus legacy directory
|
|
static QString xbusLegacyDir(const QString &rootDir);
|
|
|
|
private:
|
|
//! Concatenates dirs for used OS
|
|
static QString xplaneDir(const QString &xplaneInstallFile);
|
|
};
|
|
} // namespace
|
|
} // namespace
|
|
} // namespace
|
|
|
|
#endif // guard
|