#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
public slots:
void close(const QString &reason = QString());
-signals:
-
- void disconnected();
- void error(QAbstractSocket::SocketError);
-
protected:
void customEvent(QEvent *event);
template<class T>
void dispatch(EventType eventType, const T &msg);
- template<class T>
- void handle(const T &msg);
-
private:
SignalProxy *_proxy;
InternalPeer *_peer;