mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #475, added functions in project
* get some specific directories * detect if running on developer's machine
This commit is contained in:
committed by
Mathew Sutcliffe
parent
68d0b8cc98
commit
e336428822
@@ -7,6 +7,8 @@
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISC_CPROJECT_H
|
||||
#define BLACKMISC_CPROJECT_H
|
||||
|
||||
@@ -68,6 +70,9 @@ namespace BlackMisc
|
||||
//! System's name and version
|
||||
static const QString &swiftVersionString();
|
||||
|
||||
//! System's name and version + info if dev.environemnt
|
||||
static const QString &swiftVersionStringDevInfo();
|
||||
|
||||
//! System's name and version
|
||||
static const char *swiftVersionChar();
|
||||
|
||||
@@ -86,6 +91,18 @@ namespace BlackMisc
|
||||
//! Running on Windows NT platform?
|
||||
static bool isRunningOnWindowsNtPlatform();
|
||||
|
||||
//! Running in dev.environment, so on a programmers machine
|
||||
static bool isRunningInDeveloperEnvironment();
|
||||
|
||||
//! Application directory where current application is located
|
||||
static QString getApplicationDir();
|
||||
|
||||
//! Where resource files (static DB files, ...) etc are located
|
||||
static QString getSwiftResourceDir();
|
||||
|
||||
//! Where resource files (static DB files, ...) etc are located
|
||||
static QString getSwiftStaticDbFilesDir();
|
||||
|
||||
private:
|
||||
//! Constructor
|
||||
CProject() {}
|
||||
|
||||
Reference in New Issue
Block a user