X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.h;h=d29236cb809f7e4147f772bfca3f970729c79f38;hb=d4b81a6d777de45611034b26bd89973d19e60c96;hp=5650120ebccdbdc6dab20164b7ddb8229708bfdc;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b;p=quassel.git diff --git a/src/common/remotepeer.h b/src/common/remotepeer.h index 5650120e..d29236cb 100644 --- a/src/common/remotepeer.h +++ b/src/common/remotepeer.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 * @@ -18,8 +18,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef REMOTEPEER_H -#define REMOTEPEER_H +#pragma once + +#include "common-export.h" #include @@ -32,7 +33,7 @@ class QTimer; class AuthHandler; -class RemotePeer : public Peer +class COMMON_EXPORT RemotePeer : public Peer { Q_OBJECT @@ -45,11 +46,13 @@ public: void setSignalProxy(SignalProxy *proxy); - virtual Protocol::Type protocol() const = 0; virtual QString protocolName() const = 0; virtual QString description() const; virtual quint16 enabledFeatures() const { return 0; } + virtual QString address() const; + virtual quint16 port() const; + bool isOpen() const; bool isSecure() const; bool isLocal() const; @@ -104,5 +107,3 @@ private: int _lag; quint32 _msgSize; }; - -#endif