X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fauthhandler.h;h=4b6a41beba3628d25b8af4e29ca7d84853f8ef81;hb=61aac1868f15babb7086d8bc6bbcff530346f438;hp=3cf505987c2dd3c9b737386354cd37618b714370;hpb=b654b2f908590b6f69a7edadf9dacf1277a4493b;p=quassel.git diff --git a/src/common/authhandler.h b/src/common/authhandler.h index 3cf50598..4b6a41be 100644 --- a/src/common/authhandler.h +++ b/src/common/authhandler.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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();