X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeerfactory.h;h=6b1bdf3c4951b4ab9c0eb6b6667e40438102aa07;hb=0094d9ce512ca2e10500f079c489fc4c45970813;hp=79a0c3554bbd29b4fd404c320ca682f202b2b996;hpb=238fb432360269a5e31075b2a203967078a06231;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); };