X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeerfactory.h;h=6b1bdf3c4951b4ab9c0eb6b6667e40438102aa07;hb=5a259061411e123d89059d815d1ea0f7cfcb3401;hp=79a0c3554bbd29b4fd404c320ca682f202b2b996;hpb=9c0ca310ca1b6938cf100c9f7772d39ede630b31;p=quassel.git diff --git a/src/common/peerfactory.h b/src/common/peerfactory.h index 79a0c355..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; @@ -41,8 +42,8 @@ public: static ProtoList supportedProtocols(); - 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 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); };