Mutate SignalProxy::AbstractPeer into a separate class Peer
[quassel.git] / src / common / internalpeer.h
index 4c82ceb..ada5f09 100644 (file)
 #ifndef INTERNALPEER_H
 #define INTERNALPEER_H
 
-#include <QTcpSocket>
-
+#include "peer.h"
 #include "protocol.h"
 #include "signalproxy.h"
 
 class QEvent;
 
-class InternalPeer : public SignalProxy::AbstractPeer
+class InternalPeer : public Peer
 {
     Q_OBJECT
 
@@ -65,11 +64,6 @@ public:
 public slots:
     void close(const QString &reason = QString());
 
-signals:
-
-    void disconnected();
-    void error(QAbstractSocket::SocketError);
-
 protected:
     void customEvent(QEvent *event);
 
@@ -80,9 +74,6 @@ private:
     template<class T>
     void dispatch(EventType eventType, const T &msg);
 
-    template<class T>
-    void handle(const T &msg);
-
 private:
     SignalProxy *_proxy;
     InternalPeer *_peer;