X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.h;fp=src%2Fcommon%2Fremoteconnection.h;h=e41a6a3bc3d823a3631f59764860f7221ef6d1e7;hb=1cc49e5bd7542366995f501adf60da4ad90869e2;hp=6d12d70fef5c61087187a188887463666f151a06;hpb=8834ebbb9e03ed09bd3509e5f8634769ff68bb48;p=quassel.git diff --git a/src/common/remoteconnection.h b/src/common/remotepeer.h similarity index 92% rename from src/common/remoteconnection.h rename to src/common/remotepeer.h index 6d12d70f..e41a6a3b 100644 --- a/src/common/remoteconnection.h +++ b/src/common/remotepeer.h @@ -18,8 +18,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef REMOTECONNECTION_H -#define REMOTECONNECTION_H +#ifndef REMOTEPEER_H +#define REMOTEPEER_H #include #include @@ -29,13 +29,13 @@ class QTimer; -class RemoteConnection : public SignalProxy::AbstractPeer +class RemotePeer : public SignalProxy::AbstractPeer { Q_OBJECT public: - RemoteConnection(QTcpSocket *socket, QObject *parent = 0); - virtual ~RemoteConnection() {}; + RemotePeer(QTcpSocket *socket, QObject *parent = 0); + virtual ~RemotePeer() {}; void setSignalProxy(SignalProxy *proxy); @@ -91,10 +91,9 @@ private: int _lag; }; - // Template methods we need in the header template inline -void RemoteConnection::handle(const T &protoMessage) +void RemotePeer::handle(const T &protoMessage) { if (!signalProxy()) { qWarning() << Q_FUNC_INFO << "Cannot handle messages without a SignalProxy!";