mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T528, test if simulator interface can be used (only possible in local UI, not in remote UI)
This commit is contained in:
committed by
Mat Sutcliffe
parent
9db56d3fd4
commit
ddd44edebd
@@ -1434,11 +1434,17 @@ namespace BlackCore
|
||||
|
||||
QPointer<ISimulator> CApplication::getISimulator() const
|
||||
{
|
||||
if (!this->getCoreFacade()) { return nullptr; }
|
||||
if (!this->getCoreFacade()->getCContextSimulator()) { return nullptr; }
|
||||
if (!this->hasSimulator()) { return nullptr; }
|
||||
return this->getCoreFacade()->getCContextSimulator()->simulator();
|
||||
}
|
||||
|
||||
bool CApplication::hasSimulator() const
|
||||
{
|
||||
if (!this->getCoreFacade()) { return false; }
|
||||
if (!this->getCoreFacade()->getIContextSimulator()->isUsingImplementingObject()) { return false; }
|
||||
return (this->getCoreFacade()->getCContextSimulator()); // should always be true
|
||||
}
|
||||
|
||||
void CApplication::cmdLineHelpMessage()
|
||||
{
|
||||
m_parser.showHelp(); // terminates
|
||||
|
||||
Reference in New Issue
Block a user