refs #199 , fail safe method to register contexts with DBus server, easer way to initialize in runtime

This commit is contained in:
Klaus Basan
2014-04-08 14:42:46 +02:00
parent e7c9d7d294
commit 94ed481b25
5 changed files with 6 additions and 5 deletions

View File

@@ -27,13 +27,13 @@ namespace BlackCore
//! Constructor
CContextApplication(CRuntimeConfig::ContextMode mode, CRuntime *runtime);
//! Register myself in DBus
//! Register myself in DBus, fail safe
CContextApplication *registerWithDBus(CDBusServer *server)
{
if (!server || this->m_mode != CRuntimeConfig::LocalInDbusServer) return this;
server->addObject(IContextApplication::ObjectPath(), this);
return this;
}
public:
//! Destructor
virtual ~CContextApplication() {}