/***************************************************************************
- * 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 *
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(); }
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();