Add ContextSimulator classes to CoreRuntime

refs #135
This commit is contained in:
Roland Winklmeier
2014-02-10 22:36:13 +01:00
parent c7d35d29a4
commit ab21a9ba28
2 changed files with 32 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
#include "blackcore/context_network.h"
#include "blackcore/context_settings.h"
#include "blackcore/context_voice.h"
#include "blackcore/context_simulator_impl.h"
namespace BlackCore
{
@@ -14,7 +15,8 @@ namespace BlackCore
CCoreRuntime::CCoreRuntime(bool withDbus, QObject *parent) :
QObject(parent), m_init(false), m_dbusServer(nullptr),
m_contextNetwork(nullptr), m_contextVoice(nullptr),
m_contextSettings(nullptr), m_contextApplication(nullptr)
m_contextSettings(nullptr), m_contextApplication(nullptr),
m_contextSimulator(nullptr)
{
this->init(withDbus);
}
@@ -47,6 +49,9 @@ void CCoreRuntime::init(bool withDbus)
this->m_contextVoice = new CContextVoice(this);
if (withDbus) this->m_contextVoice->registerWithDBus(this->m_dbusServer);
this->m_contextSimulator = new CContextSimulator(this);
if (withDbus) this->m_contextSimulator->registerWithDBus(this->m_dbusServer);
// flag
m_init = true;
}
@@ -90,4 +95,14 @@ IContextApplication *CCoreRuntime::getIContextApplication()
{
return this->m_contextApplication;
}
const IContextSimulator *CCoreRuntime::getIContextSimulator() const
{
return this->m_contextSimulator;
}
IContextSimulator *CCoreRuntime::getIContextSimulator()
{
return this->m_contextSimulator;
}
}