projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Let RemotePeer(s) tell their protocol type and features
[quassel.git]
/
src
/
common
/
remotepeer.h
diff --git
a/src/common/remotepeer.h
b/src/common/remotepeer.h
index
14d49f9
..
191439e
100644
(file)
--- a/
src/common/remotepeer.h
+++ b/
src/common/remotepeer.h
@@
-42,11
+42,12
@@
public:
using Peer::dispatch;
RemotePeer(AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0);
using Peer::dispatch;
RemotePeer(AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0);
- virtual ~RemotePeer() {};
void setSignalProxy(SignalProxy *proxy);
void setSignalProxy(SignalProxy *proxy);
- QString description() const;
+ virtual Protocol::Type protocol() const = 0;
+ virtual QString description() const;
+ virtual quint16 enabledFeatures() const { return 0; }
bool isOpen() const;
bool isSecure() const;
bool isOpen() const;
bool isSecure() const;