mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Added shutting down function
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a492fe4806
commit
2eef9288b9
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user