X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fprotocols%2Flegacy%2Flegacypeer.h;h=a063616cec74fd66eebb3f1f8311f48c71eee338;hp=a4c7a490b87aaea78a11d1679713d1b125a72341;hb=b2169e5f4cbd3ce724c4808b62ddc2b8941219a5;hpb=02cfb595a6b78faf332ddbe2d7b997eb0e0293fb diff --git a/src/common/protocols/legacy/legacypeer.h b/src/common/protocols/legacy/legacypeer.h index a4c7a490..a063616c 100644 --- a/src/common/protocols/legacy/legacypeer.h +++ b/src/common/protocols/legacy/legacypeer.h @@ -21,12 +21,8 @@ #ifndef LEGACYPEER_H #define LEGACYPEER_H -#include - #include "../../remotepeer.h" -class QDataStream; - class LegacyPeer : public RemotePeer { Q_OBJECT @@ -73,12 +69,11 @@ signals: // only used in compat mode void protocolVersionMismatch(int actual, int expected); -protected slots: - void onSocketDataAvailable(); - private: - bool readSocketData(QVariant &item); - void writeSocketData(const QVariant &item); + using RemotePeer::writeMessage; + void writeMessage(const QVariant &item); + void processMessage(const QByteArray &msg); + void handleHandshakeMessage(const QVariant &msg); void handlePackedFunc(const QVariant &packedFunc); void dispatchPackedFunc(const QVariantList &packedFunc); @@ -86,8 +81,6 @@ private: void toLegacyIrcUsersAndChannels(QVariantMap &initData); void fromLegacyIrcUsersAndChannels(QVariantMap &initData); - QDataStream _stream; - quint32 _blockSize; bool _useCompression; };