mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
committed by
Mathew Sutcliffe
parent
0bad7bb2e8
commit
ee43f5598d
@@ -12,7 +12,9 @@ namespace BlackCore
|
||||
* Constructor
|
||||
*/
|
||||
CCoreRuntime::CCoreRuntime(bool withDbus, QObject *parent) :
|
||||
QObject(parent), m_init(false), m_dbusServer(nullptr), m_contextNetwork(nullptr), m_settings(nullptr)
|
||||
QObject(parent), m_init(false), m_dbusServer(nullptr),
|
||||
m_contextNetwork(nullptr), m_contextVoice(nullptr),
|
||||
m_contextSettings(nullptr), m_contextApplication(nullptr)
|
||||
{
|
||||
this->init(withDbus);
|
||||
}
|
||||
@@ -34,11 +36,17 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
// contexts
|
||||
this->m_settings = new CContextSettings(this);
|
||||
if (withDbus) this->m_settings->registerWithDBus(this->m_dbusServer);
|
||||
this->m_contextSettings = new CContextSettings(this);
|
||||
if (withDbus) this->m_contextSettings->registerWithDBus(this->m_dbusServer);
|
||||
|
||||
this->m_contextNetwork = new CContextNetwork(this);
|
||||
if (withDbus) this->m_contextNetwork->registerWithDBus(this->m_dbusServer); // complete object after init
|
||||
if (withDbus) this->m_contextNetwork->registerWithDBus(this->m_dbusServer);
|
||||
|
||||
this->m_contextApplication = new CContextApplication(this);
|
||||
if (withDbus) this->m_contextApplication->registerWithDBus(this->m_dbusServer);
|
||||
|
||||
this->m_contextVoice = new CContextVoice(this);
|
||||
if (withDbus) this->m_contextVoice->registerWithDBus(this->m_dbusServer);
|
||||
|
||||
// flag
|
||||
m_init = true;
|
||||
|
||||
Reference in New Issue
Block a user