X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fpeerfactory.h;h=da93667e47fb38d38d0f100ca420d6c3afd50184;hp=967371195ae1dc5967c98bb87b1fa9dd8217727e;hb=ce250a863bce3198096e65d4c7a68269495302dd;hpb=31414ddaa421b1f8091eab8149da74545f7c47ab diff --git a/src/common/peerfactory.h b/src/common/peerfactory.h index 96737119..da93667e 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-2018 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); };