refs #777 CApplication methods for detecting already running applications.

This commit is contained in:
Mathew Sutcliffe
2016-10-17 21:36:25 +01:00
committed by Klaus Basan
parent 7f422eb3e4
commit fa76b5411e
2 changed files with 50 additions and 6 deletions

View File

@@ -108,6 +108,15 @@ namespace BlackCore
//! Destructor
virtual ~CApplication();
//! Application information
BlackMisc::CApplicationInfo getApplicationInfo() const;
//! Information about all running apps (including this one only if exec() has already been called)
static BlackMisc::CApplicationInfoList getRunningApplications();
//! True if this swift application is already running (including different versions)
bool isAlreadyRunning() const;
//! Application name and version
const QString &getApplicationNameAndVersion() const;