refs #507, checks if URLs / DBus can be connected / reached

* new class CFailoverUrlList
* improved utility methods
* CDBusServer: utility function to check server / DBus can be connected
* check in swift GUI if DBus is available
This commit is contained in:
Klaus Basan
2015-11-17 01:22:29 +01:00
committed by Mathew Sutcliffe
parent b24cd2e9c7
commit 6dd8fb333e
7 changed files with 271 additions and 62 deletions

View File

@@ -81,6 +81,11 @@ CommandLineParseResult parseCommandLine(QCommandLineParser &parser,
{
QString v(parser.value(dBusOption).trimmed());
dBusAddress = CDBusServer::fixAddressToDBusAddress(v);
if (!CDBusServer::isDBusAvailable(dBusAddress))
{
errorMessage = "DBus server at " + dBusAddress + " can not be reached";
return CommandLineError;
}
}
if (parser.isSet(windowOption))