X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpeerfactory.h;h=79a0c3554bbd29b4fd404c320ca682f202b2b996;hb=b2169e5f4cbd3ce724c4808b62ddc2b8941219a5;hp=c753bd40ee7c9aed28bd3fd13fec3f4d60e312ec;hpb=9c6f27c7bf7cb9dee234383ed9347c077aa2bce9;p=quassel.git diff --git a/src/common/peerfactory.h b/src/common/peerfactory.h index c753bd40..79a0c355 100644 --- a/src/common/peerfactory.h +++ b/src/common/peerfactory.h @@ -37,9 +37,13 @@ class PeerFactory public: // second value is the protocol-specific features typedef QPair ProtoDescriptor; + typedef QVector ProtoList; + + static ProtoList supportedProtocols(); static RemotePeer *createPeer(const ProtoDescriptor &protocol, AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0); - static RemotePeer *createPeer(const QVector &protocols, AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0); + static RemotePeer *createPeer(const ProtoList &protocols, AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0); + }; #endif