projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't actually build miniz if we have zlib
[quassel.git]
/
src
/
common
/
remotepeer.h
diff --git
a/src/common/remotepeer.h
b/src/common/remotepeer.h
index
b1c5bf4
..
4489829
100644
(file)
--- a/
src/common/remotepeer.h
+++ b/
src/common/remotepeer.h
@@
-23,11
+23,11
@@
#include <QDateTime>
#include <QDateTime>
+#include "compressor.h"
#include "peer.h"
#include "protocol.h"
#include "signalproxy.h"
#include "peer.h"
#include "protocol.h"
#include "signalproxy.h"
-class QTcpSocket;
class QTimer;
class AuthHandler;
class QTimer;
class AuthHandler;
@@
-41,7
+41,7
@@
public:
using Peer::handle;
using Peer::dispatch;
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);
void setSignalProxy(SignalProxy *proxy);
@@
-87,6
+87,7
@@
protected slots:
private slots:
void onReadyRead();
private slots:
void onReadyRead();
+ void onCompressionError(Compressor::Error error);
void sendHeartBeat();
void changeHeartBeatInterval(int secs);
void sendHeartBeat();
void changeHeartBeatInterval(int secs);
@@
-96,6
+97,7
@@
private:
private:
QTcpSocket *_socket;
private:
QTcpSocket *_socket;
+ Compressor *_compressor;
SignalProxy *_signalProxy;
QTimer *_heartBeatTimer;
int _heartBeatCount;
SignalProxy *_signalProxy;
QTimer *_heartBeatTimer;
int _heartBeatCount;