X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeerfactory.h;h=1ec589092e2145b121953b5d3f2b68e1994d8984;hb=169266ea6b484f8876679854998cdd6dac6b9e90;hp=967371195ae1dc5967c98bb87b1fa9dd8217727e;hpb=31414ddaa421b1f8091eab8149da74545f7c47ab;p=quassel.git diff --git a/src/common/peerfactory.h b/src/common/peerfactory.h index 96737119..1ec58909 100644 --- a/src/common/peerfactory.h +++ b/src/common/peerfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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); };