mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #520 Should be able to register objects on a P2P connection already established.
This commit is contained in:
@@ -205,6 +205,19 @@ namespace BlackMisc
|
||||
}
|
||||
break;
|
||||
case SERVERMODE_P2P:
|
||||
{
|
||||
for (QDBusConnection connection : m_connections)
|
||||
{
|
||||
if (connection.registerObject(path, object, registerOptions()))
|
||||
{
|
||||
CLogMessage(this).debug() << "Adding" << path << getDBusInterfaceFromClassInfo(object) << "to" << connection.name();
|
||||
}
|
||||
else
|
||||
{
|
||||
CLogMessage(this).error("Error, no success with %1 registration") << connection.name();
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Q_ASSERT_X(false, "CDBusServer::addObject", "Wrong server mode");
|
||||
|
||||
Reference in New Issue
Block a user