mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T111, moved registerHelp implementation to .cpp
This commit is contained in:
committed by
Mathew Sutcliffe
parent
654c35f666
commit
119351800c
@@ -31,7 +31,17 @@ namespace BlackCore
|
||||
return status;
|
||||
}
|
||||
|
||||
CSimulatorInfo ISimulator::getSimulatorInfo() const
|
||||
{
|
||||
return CSimulatorInfo(this->getSimulatorPluginInfo().getSimulatorInfo());
|
||||
}
|
||||
|
||||
void ISimulator::registerHelp()
|
||||
{
|
||||
if (BlackMisc::CSimpleCommandParser::registered("BlackCore::ISimulator")) { return; }
|
||||
BlackMisc::CSimpleCommandParser::registerCommand({".drv", "alias: .driver .plugin"});
|
||||
BlackMisc::CSimpleCommandParser::registerCommand({".drv unload", "unload driver"});
|
||||
if (BlackConfig::CBuildConfig::isCompiledWithFsuipcSupport())
|
||||
{
|
||||
BlackMisc::CSimpleCommandParser::registerCommand({".drv fsuipc on|off", "enable/disable FSUIPC (if applicable)"});
|
||||
}
|
||||
|
||||
@@ -170,16 +170,7 @@ namespace BlackCore
|
||||
virtual bool parseCommandLine(const QString &commandLine, const BlackMisc::CIdentifier &originator) = 0;
|
||||
|
||||
//! Register help
|
||||
static void registerHelp()
|
||||
{
|
||||
if (BlackMisc::CSimpleCommandParser::registered("BlackCore::ISimulator")) { return; }
|
||||
BlackMisc::CSimpleCommandParser::registerCommand({".drv", "alias: .driver .plugin"});
|
||||
BlackMisc::CSimpleCommandParser::registerCommand({".drv unload", "unload driver"});
|
||||
if (BlackConfig::CBuildConfig::isCompiledWithFsuipcSupport())
|
||||
{
|
||||
BlackMisc::CSimpleCommandParser::registerCommand({".drv fsuipc on|off", "enable/disable FSUIPC (if applicable)"});
|
||||
}
|
||||
}
|
||||
static void registerHelp();
|
||||
|
||||
//! Status to string
|
||||
static QString statusToString(SimulatorStatus status);
|
||||
|
||||
Reference in New Issue
Block a user