mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
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:
committed by
Mathew Sutcliffe
parent
0179e6e757
commit
988a4791ab
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user