Added shutting down function

This commit is contained in:
Klaus Basan
2017-03-04 19:23:41 +01:00
committed by Mathew Sutcliffe
parent a492fe4806
commit 2eef9288b9
2 changed files with 8 additions and 0 deletions

View File

@@ -201,6 +201,11 @@ namespace BlackCore
return getRunningApplications().containsBy([this](const CApplicationInfo & info) { return info.application() == getSwiftApplication(); });
}
bool CApplication::isShuttingDown() const
{
return m_shutdown;
}
const QString &CApplication::getApplicationNameAndVersion() const
{
static const QString s(QCoreApplication::instance()->applicationName() + " " + CVersion::version());

View File

@@ -119,6 +119,9 @@ namespace BlackCore
//! True if this swift application is already running (including different versions)
bool isAlreadyRunning() const;
//! Is application shutting down?
bool isShuttingDown() const;
//! Application name and version
const QString &getApplicationNameAndVersion() const;