refactor: Move common dbus function to IContext

This commit is contained in:
Lars Toenning
2024-12-30 09:33:57 +01:00
parent 51ae5805b2
commit 7fbf48ca3a
17 changed files with 17 additions and 52 deletions

View File

@@ -106,12 +106,6 @@ namespace swift::core::context
else { m_validator->setCurrentSimulator(CSimulatorInfo::None, {}, {}); }
}
void CContextSimulator::registerWithDBus(CDBusServer *server)
{
if (!server || getMode() != CCoreFacadeConfig::LocalInDBusServer) { return; }
server->addObject(CContextSimulator::ObjectPath(), this);
}
bool CContextSimulator::isSimulatorPluginAvailable() const
{
return m_simulatorPlugin.second && IContextSimulator::isSimulatorAvailable();