Ref T192, improved display/log of DBus connection

* log level
* more detailed messages
This commit is contained in:
Klaus Basan
2017-11-18 18:50:45 +01:00
parent 9375a27c92
commit 2c2e850668
3 changed files with 47 additions and 22 deletions

View File

@@ -107,6 +107,9 @@ namespace BlackMisc
//! Return the server mode of the given address
static ServerMode modeOfAddress(QString address);
//! Mode to string
static const QString &modeToString(ServerMode mode);
//! True if a valid Qt DBus address, e.g. "unix:tmpdir=/tmp", "tcp:host=127.0.0.1,port=45000"
static bool isQtDBusAddress(const QString &address);
@@ -143,10 +146,7 @@ namespace BlackMisc
static QString getDBusInterfaceFromClassInfo(QObject *object);
//! Register options with connection
static QDBusConnection::RegisterOptions registerOptions()
{
return QDBusConnection::ExportAdaptors | QDBusConnection::ExportAllSignals | QDBusConnection::ExportAllSlots;
}
static QDBusConnection::RegisterOptions registerOptions();
//! Called when a new DBus client has connected in P2P mode
bool registerObjectsWithP2PConnection(QDBusConnection connection);