X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeerfactory.h;h=6b1bdf3c4951b4ab9c0eb6b6667e40438102aa07;hb=5a259061411e123d89059d815d1ea0f7cfcb3401;hp=967371195ae1dc5967c98bb87b1fa9dd8217727e;hpb=31414ddaa421b1f8091eab8149da74545f7c47ab;p=quassel.git diff --git a/src/common/peerfactory.h b/src/common/peerfactory.h index 96737119..6b1bdf3c 100644 --- a/src/common/peerfactory.h +++ b/src/common/peerfactory.h @@ -23,6 +23,7 @@ #include +#include "compressor.h" #include "protocol.h" class QObject; @@ -39,8 +40,10 @@ public: typedef QPair ProtoDescriptor; typedef QVector ProtoList; - static RemotePeer *createPeer(const ProtoDescriptor &protocol, AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0); - static RemotePeer *createPeer(const ProtoList &protocols, AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0); + static ProtoList supportedProtocols(); + + static RemotePeer *createPeer(const ProtoDescriptor &protocol, AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = 0); + static RemotePeer *createPeer(const ProtoList &protocols, AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = 0); };