From: Manuel Nickschas Date: Thu, 23 Jan 2014 19:32:25 +0000 (+0100) Subject: Allow overriding of socket handling methods X-Git-Tag: 0.10-beta1~38 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=e55d141896130c9b82bfae60e23078b8b765d85e Allow overriding of socket handling methods This is primarily needed for ClientAuthHandler, which does not want to throw error messages to the outside during protocol detection. --- diff --git a/src/common/authhandler.h b/src/common/authhandler.h index 3cf50598..cfed51e4 100644 --- a/src/common/authhandler.h +++ b/src/common/authhandler.h @@ -62,8 +62,8 @@ protected: void setSocket(QTcpSocket *socket); protected slots: - void onSocketError(QAbstractSocket::SocketError error); - void onSocketDisconnected(); + virtual void onSocketError(QAbstractSocket::SocketError error); + virtual void onSocketDisconnected(); private: void invalidMessage();