Output the chosen protocol type on connect
[quassel.git] / src / common / protocols / legacy / legacypeer.h
index 3bc93d3..a4c7a49 100644 (file)
@@ -44,6 +44,7 @@ public:
     LegacyPeer(AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0);
 
     Protocol::Type protocol() const { return Protocol::LegacyProtocol; }
+    QString protocolName() const { return "the legacy protocol"; }
 
     void setSignalProxy(SignalProxy *proxy);
 
@@ -82,6 +83,9 @@ private:
     void handlePackedFunc(const QVariant &packedFunc);
     void dispatchPackedFunc(const QVariantList &packedFunc);
 
+    void toLegacyIrcUsersAndChannels(QVariantMap &initData);
+    void fromLegacyIrcUsersAndChannels(QVariantMap &initData);
+
     QDataStream _stream;
     quint32 _blockSize;
     bool _useCompression;