Application info: Checking if directory exists (swift version exists) plus fixes in property functions

This commit is contained in:
Klaus Basan
2018-08-17 02:25:43 +02:00
parent dc534fc88c
commit 6807eb8d35
3 changed files with 24 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ namespace BlackMisc
IndexApplicationDataPath,
IndexCompileInfo,
IndexExecutablePath,
IndexExecutablePathExisting,
IndexPlatformInfo,
IndexProcessInfo,
IndexVersionString,
@@ -74,6 +75,11 @@ namespace BlackMisc
//! Get executable path.
const QString &getExecutablePath() const { return m_exePath; }
//! Is the executable path existing?
//! \remark this indicates if the swift version is still existing
//! \remark file check, relatively slow
bool isExecutablePathExisting() const;
//! Set application data dir
//! \remark rootdir of settings, cache and logs
void setApplicationDataDirectory(const QString &appDataDir) { m_applicationDataDir = appDataDir; }