mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #883, improved detection if core is running
* use proxy to really ping core (not only checking connection) * avoid closing Qt default connections -> crash * some refactoring
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d918ee4cfd
commit
6c72f8491c
@@ -74,6 +74,11 @@ namespace BlackCore
|
||||
virtual bool existsFile(const QString &fileName) const override;
|
||||
//! @}
|
||||
|
||||
//! Used to test if there is a core running?
|
||||
//! \note creates and connects via proxy object, so not meant for very frequent tests
|
||||
//! \sa CDBusServer::isDBusAvailable as lightweight, but less accurate alternative
|
||||
static bool isContextResponsive(const QString &dbusAddress, QString &msg, int timeoutMs = 1500);
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
CContextApplicationProxy(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) : IContextApplication(mode, runtime), m_dBusInterface(nullptr) {}
|
||||
|
||||
Reference in New Issue
Block a user