X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeerfactory.h;h=0cf22a764c4a3dd0e53d56fc60e9662f36ebecf3;hb=8f92b3f08df9f4eb8fd243ccec6aa9d4b563ec23;hp=ca6639aa18ecc6eb45b8bb3971b024093f393aa3;hpb=80950b87640acfb2a75902f8aabf3419da094bf4;p=quassel.git diff --git a/src/common/peerfactory.h b/src/common/peerfactory.h index ca6639aa..0cf22a76 100644 --- a/src/common/peerfactory.h +++ b/src/common/peerfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -35,7 +35,6 @@ class RemotePeer; class COMMON_EXPORT PeerFactory { - public: // second value is the protocol-specific features using ProtoDescriptor = QPair; @@ -43,7 +42,14 @@ public: static ProtoList supportedProtocols(); - static RemotePeer *createPeer(const ProtoDescriptor &protocol, AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = nullptr); - static RemotePeer *createPeer(const ProtoList &protocols, AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = nullptr); - + static RemotePeer* createPeer(const ProtoDescriptor& protocol, + AuthHandler* authHandler, + QTcpSocket* socket, + Compressor::CompressionLevel level, + QObject* parent = nullptr); + static RemotePeer* createPeer(const ProtoList& protocols, + AuthHandler* authHandler, + QTcpSocket* socket, + Compressor::CompressionLevel level, + QObject* parent = nullptr); };