X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.h;h=5650120ebccdbdc6dab20164b7ddb8229708bfdc;hb=d82f98b8cf9c7c83f3aab1d7f010ccf8bdd2c003;hp=b1c5bf4e9a2e97dc74f18f7e200d5e2ef534a94e;hpb=b2169e5f4cbd3ce724c4808b62ddc2b8941219a5;p=quassel.git diff --git a/src/common/remotepeer.h b/src/common/remotepeer.h index b1c5bf4e..5650120e 100644 --- a/src/common/remotepeer.h +++ b/src/common/remotepeer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -23,11 +23,11 @@ #include +#include "compressor.h" #include "peer.h" #include "protocol.h" #include "signalproxy.h" -class QTcpSocket; class QTimer; class AuthHandler; @@ -41,7 +41,7 @@ public: using Peer::handle; using Peer::dispatch; - RemotePeer(AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0); + RemotePeer(AuthHandler *authHandler, QTcpSocket *socket, Compressor::CompressionLevel level, QObject *parent = 0); void setSignalProxy(SignalProxy *proxy); @@ -87,6 +87,7 @@ protected slots: private slots: void onReadyRead(); + void onCompressionError(Compressor::Error error); void sendHeartBeat(); void changeHeartBeatInterval(int secs); @@ -96,6 +97,7 @@ private: private: QTcpSocket *_socket; + Compressor *_compressor; SignalProxy *_signalProxy; QTimer *_heartBeatTimer; int _heartBeatCount;