X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoresession.cpp;h=d44cf2b5f2f426e8d94159cf6c1201e248b1410e;hb=4c80eeb2d07b5ca75fd399b51c939961fdff1670;hp=fb0aad8ef54c038d5621d88e9373dd87a9695853;hpb=4a5065255e652dd0c301bac0db41b7afb777ef49;p=quassel.git diff --git a/src/core/coresession.cpp b/src/core/coresession.cpp index fb0aad8e..d44cf2b5 100644 --- a/src/core/coresession.cpp +++ b/src/core/coresession.cpp @@ -37,7 +37,7 @@ #include "coreusersettings.h" #include "ctcpparser.h" #include "eventstringifier.h" -#include "internalconnection.h" +#include "internalpeer.h" #include "ircchannel.h" #include "ircparser.h" #include "ircuser.h" @@ -46,7 +46,7 @@ #include "storage.h" #include "util.h" -#include "protocols/legacy/legacyconnection.h" +#include "protocols/legacy/legacypeer.h" class ProcessMessagesEvent : public QEvent { @@ -206,28 +206,28 @@ void CoreSession::restoreSessionState() } -void CoreSession::addClient(RemoteConnection *connection) +void CoreSession::addClient(RemotePeer *peer) { QVariantMap reply; reply["MsgType"] = "SessionInit"; reply["SessionState"] = sessionState(); - connection->writeSocketData(reply); - signalProxy()->addPeer(connection); + peer->writeSocketData(reply); + signalProxy()->addPeer(peer); } -void CoreSession::addClient(InternalConnection *connection) +void CoreSession::addClient(InternalPeer *peer) { - signalProxy()->addPeer(connection); + signalProxy()->addPeer(peer); emit sessionState(sessionState()); } void CoreSession::removeClient(SignalProxy::AbstractPeer *peer) { - RemoteConnection *connection = qobject_cast(peer); - if (connection) - quInfo() << qPrintable(tr("Client")) << connection->description() << qPrintable(tr("disconnected (UserId: %1).").arg(user().toInt())); + RemotePeer *p = qobject_cast(peer); + if (p) + quInfo() << qPrintable(tr("Client")) << p->description() << qPrintable(tr("disconnected (UserId: %1).").arg(user().toInt())); }