X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fprotocols%2Flegacy%2Flegacypeer.h;h=47cadcc15d32ceb79e5321b125b977601113f8c4;hp=0fe1328a9ed99e8baa78ddc026b43e083c49ef80;hb=6eefdfc697067d184a589fc8a231b16316c09106;hpb=1cb02004ee5973b89368bd84f234d4652794690d diff --git a/src/common/protocols/legacy/legacypeer.h b/src/common/protocols/legacy/legacypeer.h index 0fe1328a..47cadcc1 100644 --- a/src/common/protocols/legacy/legacypeer.h +++ b/src/common/protocols/legacy/legacypeer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -37,42 +37,39 @@ public: HeartBeatReply }; - LegacyPeer(AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = 0); + LegacyPeer(AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = nullptr); - Protocol::Type protocol() const { return Protocol::LegacyProtocol; } - QString protocolName() const { return "the legacy protocol"; } + Protocol::Type protocol() const override { return Protocol::LegacyProtocol; } + QString protocolName() const override { return "the legacy protocol"; } - void setSignalProxy(SignalProxy *proxy); + void setSignalProxy(SignalProxy *proxy) override; - void dispatch(const Protocol::RegisterClient &msg); - void dispatch(const Protocol::ClientDenied &msg); - void dispatch(const Protocol::ClientRegistered &msg); - void dispatch(const Protocol::SetupData &msg); - void dispatch(const Protocol::SetupFailed &msg); - void dispatch(const Protocol::SetupDone &msg); - void dispatch(const Protocol::Login &msg); - void dispatch(const Protocol::LoginFailed &msg); - void dispatch(const Protocol::LoginSuccess &msg); - void dispatch(const Protocol::SessionState &msg); + void dispatch(const Protocol::RegisterClient &msg) override; + void dispatch(const Protocol::ClientDenied &msg) override; + void dispatch(const Protocol::ClientRegistered &msg) override; + void dispatch(const Protocol::SetupData &msg) override; + void dispatch(const Protocol::SetupFailed &msg) override; + void dispatch(const Protocol::SetupDone &msg) override; + void dispatch(const Protocol::Login &msg) override; + void dispatch(const Protocol::LoginFailed &msg) override; + void dispatch(const Protocol::LoginSuccess &msg) override; + void dispatch(const Protocol::SessionState &msg) override; - void dispatch(const Protocol::SyncMessage &msg); - void dispatch(const Protocol::RpcCall &msg); - void dispatch(const Protocol::InitRequest &msg); - void dispatch(const Protocol::InitData &msg); + void dispatch(const Protocol::SyncMessage &msg) override; + void dispatch(const Protocol::RpcCall &msg) override; + void dispatch(const Protocol::InitRequest &msg) override; + void dispatch(const Protocol::InitData &msg) override; - void dispatch(const Protocol::HeartBeat &msg); - void dispatch(const Protocol::HeartBeatReply &msg); + void dispatch(const Protocol::HeartBeat &msg) override; + void dispatch(const Protocol::HeartBeatReply &msg) override; signals: void protocolError(const QString &errorString); - // only used in compat mode - void protocolVersionMismatch(int actual, int expected); - private: using RemotePeer::writeMessage; void writeMessage(const QVariant &item); - void processMessage(const QByteArray &msg); + void processMessage(const QByteArray &msg) override; void handleHandshakeMessage(const QVariant &msg); void handlePackedFunc(const QVariant &packedFunc);