/***************************************************************************
- * Copyright (C) 2005-2013 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 *
InternalPeer::InternalPeer(QObject *parent)
- : SignalProxy::AbstractPeer(parent),
+ : Peer(0, parent),
_proxy(0),
_peer(0),
_isOpen(true)
}
+::SignalProxy *InternalPeer::signalProxy() const
+{
+ return _proxy;
+}
+
+
void InternalPeer::setSignalProxy(::SignalProxy *proxy)
{
if (!proxy && _proxy) {
}
-template<class T>
-void InternalPeer::handle(const T &msg)
-{
- if (!_proxy) {
- qWarning() << Q_FUNC_INFO << "Cannot handle a message without having a signal proxy set!";
- return;
- }
-
- _proxy->handle(this, msg);
-}
-
-
void InternalPeer::customEvent(QEvent *event)
{
switch ((int)event->type()) {