mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 07:05:38 +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;
|
break;
|
||||||
case SERVERMODE_P2P:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
Q_ASSERT_X(false, "CDBusServer::addObject", "Wrong server mode");
|
Q_ASSERT_X(false, "CDBusServer::addObject", "Wrong server mode");
|
||||||
|
|||||||
Reference in New Issue
Block a user