X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Finternalpeer.h;h=103c47d33b3b7312aacb4c49c08c0b01d5532610;hb=d0e9b7a1d5e73041ade519189eea012500440ba9;hp=ada5f099a2ee19a1c8a994b3d4cd1e5a8129e6cd;hpb=fd25e92f19d6afd4eb02844bcbf20ba132868303;p=quassel.git diff --git a/src/common/internalpeer.h b/src/common/internalpeer.h index ada5f099..103c47d3 100644 --- a/src/common/internalpeer.h +++ b/src/common/internalpeer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -42,6 +42,7 @@ public: InternalPeer(QObject *parent = 0); virtual ~InternalPeer(); + Protocol::Type protocol() const { return Protocol::InternalProtocol; } QString description() const; SignalProxy *signalProxy() const; @@ -61,6 +62,18 @@ public: void dispatch(const Protocol::InitRequest &msg); void dispatch(const Protocol::InitData &msg); + /* These are not needed for InternalPeer */ + void dispatch(const Protocol::RegisterClient &) {} + void dispatch(const Protocol::ClientDenied &) {} + void dispatch(const Protocol::ClientRegistered &) {} + void dispatch(const Protocol::SetupData &) {} + void dispatch(const Protocol::SetupFailed &) {} + void dispatch(const Protocol::SetupDone &) {} + void dispatch(const Protocol::Login &) {} + void dispatch(const Protocol::LoginFailed &) {} + void dispatch(const Protocol::LoginSuccess &) {} + void dispatch(const Protocol::SessionState &) {} + public slots: void close(const QString &reason = QString());