Ref T167, improved tryToReconnectWithDBus

* use exit to abort (close might fail)
* core facade init() now private
* CCoreFacade::getDBusAddress
* display DBusAddress
This commit is contained in:
Klaus Basan
2017-09-29 03:37:10 +02:00
committed by Mathew Sutcliffe
parent 0179e6e757
commit 988a4791ab
3 changed files with 53 additions and 24 deletions

View File

@@ -64,7 +64,7 @@ namespace BlackCore
const BlackMisc::CDBusServer *getDBusServer() const { return this->m_dbusServer; }
//! In case connection between DBus parties is lost, try to reconnect
bool tryToReconnectWithDBus();
BlackMisc::CStatusMessage tryToReconnectWithDBus();
//! DBus connection (if applicable)
const QDBusConnection &getDBusConnection() const { return this->m_dbusConnection; }
@@ -149,8 +149,8 @@ namespace BlackCore
//! \remarks only applicable for local object
const Context::CContextSimulator *getCContextSimulator() const;
//! Init
void init();
//! DBus address if any
QString getDBusAddress() const;
//! Remote application context, indicates distributed environment
bool hasRemoteApplicationContext() const;
@@ -182,6 +182,9 @@ namespace BlackCore
Context::IContextOwnAircraft *m_contextOwnAircraft = nullptr;
Context::IContextSimulator *m_contextSimulator = nullptr;
//! Init
void init();
//! initialization of DBus connection (where applicable)
void initDBusConnection(const QString &address);