mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 09:45:44 +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;
|
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)"});
|
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;
|
virtual bool parseCommandLine(const QString &commandLine, const BlackMisc::CIdentifier &originator) = 0;
|
||||||
|
|
||||||
//! Register help
|
//! Register help
|
||||||
static void registerHelp()
|
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)"});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//! Status to string
|
//! Status to string
|
||||||
static QString statusToString(SimulatorStatus status);
|
static QString statusToString(SimulatorStatus status);
|
||||||
|
|||||||
Reference in New Issue
Block a user