Issue #15 CCoreFacade owns an instance of CDataLinkDBus

This commit is contained in:
Mat Sutcliffe
2020-04-15 18:17:52 +01:00
parent 2ddc5d51f7
commit ee4e41d0a6
4 changed files with 47 additions and 2 deletions

View File

@@ -23,7 +23,15 @@
#include <QObject>
#include <QString>
namespace BlackMisc { class CDBusServer; }
namespace BlackMisc
{
class CDBusServer;
namespace SharedState
{
class CDataLinkDBus;
}
}
namespace BlackCore
{
namespace Context
@@ -181,6 +189,9 @@ namespace BlackCore
bool m_initDBusConnection = false;
QDBusConnection m_dbusConnection { "default" };
// shared state infrastructure
BlackMisc::SharedState::CDataLinkDBus *m_dataLinkDBus = nullptr;
// contexts:
// There is a reason why we do not use smart pointers here. When the context is deleted
// we need to use deleteLater to gracefully shut the context