Issue #15 Classes for sharing the history of log messages

This commit is contained in:
Mat Sutcliffe
2020-04-15 18:18:43 +01:00
parent 151810d6fc
commit 7382564633
7 changed files with 144 additions and 1 deletions

View File

@@ -26,6 +26,8 @@
namespace BlackMisc
{
class CDBusServer;
class CLogHistory;
class CLogHistorySource;
namespace SharedState
{
@@ -68,6 +70,9 @@ namespace BlackCore
//! Destructor
virtual ~CCoreFacade() override { this->gracefulShutdown(); }
//! Transport mechanism for sharing state between applications
BlackMisc::SharedState::CDataLinkDBus *getDataLinkDBus() { return this->m_dataLinkDBus; }
//! DBus server (if applicable)
const BlackMisc::CDBusServer *getDBusServer() const { return this->m_dbusServer; }
@@ -191,6 +196,8 @@ namespace BlackCore
// shared state infrastructure
BlackMisc::SharedState::CDataLinkDBus *m_dataLinkDBus = nullptr;
BlackMisc::CLogHistory *m_logHistory = nullptr;
BlackMisc::CLogHistorySource *m_logHistorySource = nullptr;
// contexts:
// There is a reason why we do not use smart pointers here. When the context is deleted