void CoreConnection::internalSessionStateReceived(const Protocol::SessionState &sessionState) { updateProgress(100, 100); Client::setCoreFeatures(Quassel::features()); // mono connection... setState(Synchronizing); syncToCore(sessionState); }
void CoreConnection::onHandshakeComplete(RemotePeer *peer, const Protocol::SessionState &sessionState) { updateProgress(100, 100); disconnect(_authHandler, 0, this, 0); _authHandler->deleteLater(); _authHandler = 0; _peer = peer; connect(peer, SIGNAL(disconnected()), SLOT(coreSocketDisconnected())); connect(peer, SIGNAL(statusMessage(QString)), SIGNAL(connectionMsg(QString))); connect(peer, SIGNAL(socketError(QAbstractSocket::SocketError,QString)), SLOT(coreSocketError(QAbstractSocket::SocketError,QString))); Client::signalProxy()->addPeer(_peer); // sigproxy takes ownership of the peer! syncToCore(sessionState); }
void CoreConnection::internalSessionStateReceived(const Protocol::SessionState &sessionState) { updateProgress(100, 100); setState(Synchronizing); syncToCore(sessionState); }