X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeer.h;h=2bbbf72c683b82b42f7c52967756a59fabdc3d29;hb=258d157a228d2b2b46b01d3b33ab932b9979436a;hp=a21e9c1bea7e79fd4f8b85b6a64ec56da63eeeed;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/common/peer.h b/src/common/peer.h index a21e9c1b..2bbbf72c 100644 --- a/src/common/peer.h +++ b/src/common/peer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 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 * @@ -22,6 +22,7 @@ #define PEER_H #include +#include #include #include "authhandler.h" @@ -35,6 +36,7 @@ class Peer : public QObject public: Peer(AuthHandler *authHandler, QObject *parent = 0); + virtual Protocol::Type protocol() const = 0; virtual QString description() const = 0; virtual SignalProxy *signalProxy() const = 0; @@ -86,6 +88,9 @@ private: typedef Peer * PeerPtr; Q_DECLARE_METATYPE(PeerPtr) +QDataStream &operator<<(QDataStream &out, PeerPtr ptr); +QDataStream &operator>>(QDataStream &in, PeerPtr &ptr); + // Template method needed in the header template inline