X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=0a19351e8cf12da975da946a0a9d686a4aebbb27;hp=343ad8545edf2445a46d0eff828f2b25bdc9d4f1;hb=c1722505b4906fe59c48aad54e6545a17afb78d7;hpb=45affd4fa815bb21d0b2e46ac80114bb9174f801 diff --git a/src/client/client.cpp b/src/client/client.cpp index 343ad854..0a19351e 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -160,6 +160,8 @@ void Client::init() p->attachSignal(this, SIGNAL(requestPasswordChange(PeerPtr,QString,QString,QString)), SIGNAL(changePassword(PeerPtr,QString,QString,QString))); p->attachSlot(SIGNAL(passwordChanged(PeerPtr,bool)), this, SLOT(corePasswordChanged(PeerPtr,bool))); + p->attachSignal(this, SIGNAL(requestKickClient(int)), SIGNAL(kickClient(int))); + //connect(mainUi(), SIGNAL(connectToCore(const QVariantMap &)), this, SLOT(connectToCore(const QVariantMap &))); connect(mainUi(), SIGNAL(disconnectFromCore()), this, SLOT(disconnectFromCore())); connect(this, SIGNAL(connected()), mainUi(), SLOT(connectedToCore())); @@ -685,6 +687,11 @@ void Client::changePassword(const QString &oldPassword, const QString &newPasswo } +void Client::kickClient(int peerId) { + emit instance()->requestKickClient(peerId); +} + + void Client::corePasswordChanged(PeerPtr, bool success) { if (success)