mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #912, application description as functions
(can be reused in identifier)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
09b9ca5d50
commit
142bc82e03
@@ -27,4 +27,28 @@ namespace BlackMisc
|
||||
{
|
||||
return QString("{ %1, %2, %3, %4, %5 }").arg(QString::number(m_app), QString::number(m_mode), m_exePath, m_version, m_process.convertToQString(i18n));
|
||||
}
|
||||
|
||||
const QString &CApplicationInfo::swiftPilotClientGui()
|
||||
{
|
||||
static const QString s("swift pilot client GUI");
|
||||
return s;
|
||||
}
|
||||
|
||||
const QString &CApplicationInfo::swiftLauncher()
|
||||
{
|
||||
static const QString s("swift launcher");
|
||||
return s;
|
||||
}
|
||||
|
||||
const QString &CApplicationInfo::swiftMappingTool()
|
||||
{
|
||||
static const QString s("swift mapping tool");
|
||||
return s;
|
||||
}
|
||||
|
||||
const QString &CApplicationInfo::swiftCore()
|
||||
{
|
||||
static const QString s("swift core");
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,6 +83,18 @@ namespace BlackMisc
|
||||
//! \copydoc BlackMisc::Mixin::String::toQString
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
//! Name of pilot client GUI
|
||||
static const QString &swiftPilotClientGui();
|
||||
|
||||
//! Name of swift launcher
|
||||
static const QString &swiftLauncher();
|
||||
|
||||
//! Name of swift mapping tool
|
||||
static const QString &swiftMappingTool();
|
||||
|
||||
//! Name of swift core
|
||||
static const QString &swiftCore();
|
||||
|
||||
private:
|
||||
int m_app = static_cast<int>(Unknown);
|
||||
int m_mode = 0;
|
||||
|
||||
Reference in New Issue
Block a user