mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #485 removed some dependencies from CDBusServer
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a0b7f741ee
commit
1b587c2ee8
@@ -15,6 +15,7 @@
|
||||
#include "pluginmanagersimulator.h"
|
||||
#include "corefacade.h"
|
||||
#include "blackcore/registermetadata.h"
|
||||
#include "blackmisc/dbusserver.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/loghandler.h"
|
||||
@@ -40,6 +41,13 @@ namespace BlackCore
|
||||
m_plugins->collectPlugins();
|
||||
}
|
||||
|
||||
CContextSimulator *CContextSimulator::registerWithDBus(CDBusServer *server)
|
||||
{
|
||||
if (!server || this->m_mode != CCoreFacadeConfig::LocalInDbusServer) return this;
|
||||
server->addObject(CContextSimulator::ObjectPath(), this);
|
||||
return this;
|
||||
}
|
||||
|
||||
CContextSimulator::~CContextSimulator()
|
||||
{
|
||||
this->gracefulShutdown();
|
||||
|
||||
Reference in New Issue
Block a user