X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeer.h;h=c77c6bfa297505d90441f1181f5ca7a675e34115;hb=e375f7a6a6de045735a897ef05bf6dcc82770ff5;hp=34a566194f7db7db0415b1f985ef17fe413ad812;hpb=53861faa5551606eea31588b65ba501b24fb2e1a;p=quassel.git diff --git a/src/common/peer.h b/src/common/peer.h index 34a56619..c77c6bfa 100644 --- a/src/common/peer.h +++ b/src/common/peer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 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 * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef PEER_H -#define PEER_H +#pragma once #include #include @@ -27,8 +26,8 @@ #include "authhandler.h" #include "protocol.h" -#include "signalproxy.h" #include "quassel.h" +#include "signalproxy.h" class Peer : public QObject { @@ -52,6 +51,7 @@ public: QString clientVersion() const; void setClientVersion(const QString &clientVersion); + bool hasFeature(Quassel::Feature feature) const; Quassel::Features features() const; void setFeatures(Quassel::Features features); @@ -145,5 +145,3 @@ void Peer::handle(const T &protoMessage) return; } } - -#endif