X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeer.h;h=32ee0b5f5eb1edcfa7842e344c3374401b8be070;hb=b1b970e71618cb2d2cf372ba55234000c6324d7f;hp=b9dfed1612d4c1ff38a2b190b398d4356233f915;hpb=d82f98b8cf9c7c83f3aab1d7f010ccf8bdd2c003;p=quassel.git diff --git a/src/common/peer.h b/src/common/peer.h index b9dfed16..32ee0b5f 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; @@ -48,6 +50,15 @@ public: virtual int lag() const = 0; + virtual QString address() const = 0; + virtual quint16 port() const = 0; + + int _id = -1; + + QDateTime _connectedSince; + QString _buildDate; + QString _clientVersion; + public slots: /* Handshake messages */ virtual void dispatch(const Protocol::RegisterClient &) = 0;