X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fauthhandler.h;h=cc03588ed2479e3efc6531b9a1e1de2f8248c5d1;hb=bc544f569faedea50c7715844a2261872796c683;hp=3cf505987c2dd3c9b737386354cd37618b714370;hpb=b654b2f908590b6f69a7edadf9dacf1277a4493b;p=quassel.git diff --git a/src/common/authhandler.h b/src/common/authhandler.h index 3cf50598..cc03588e 100644 --- a/src/common/authhandler.h +++ b/src/common/authhandler.h @@ -36,6 +36,8 @@ public: QTcpSocket *socket() const; + bool isLocal() const; + virtual void handle(const Protocol::RegisterClient &) { invalidMessage(); } virtual void handle(const Protocol::ClientDenied &) { invalidMessage(); } virtual void handle(const Protocol::ClientRegistered &) { invalidMessage(); } @@ -62,8 +64,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();