-void MonolithicApplication::startInternalCore() {
- if(!_internalInitDone) {
- _internal->init();
- }
- Core *core = Core::instance();
- ClientSyncer *syncer = static_cast<ClientSyncer *>(sender());
- connect(syncer, SIGNAL(connectToInternalCore(SignalProxy *)), core, SLOT(setupInternalClientSession(SignalProxy *)));
- connect(core, SIGNAL(sessionState(const QVariant &)), syncer, SLOT(internalSessionStateReceived(const QVariant &)));
+
+void MonolithicApplication::startInternalCore()
+{
+ if (!_internalInitDone) {
+ _internal->init();
+ _internalInitDone = true;
+ }
+ Core *core = Core::instance();
+ CoreConnection *connection = Client::coreConnection();
+ connect(connection, SIGNAL(connectToInternalCore(InternalPeer*)), core, SLOT(setupInternalClientSession(InternalPeer*)));
+ connect(core, SIGNAL(sessionState(QVariant)), connection, SLOT(internalSessionStateReceived(QVariant)));