summaryrefslogtreecommitdiffstats
path: root/src/Common/RequestHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/RequestHandler.h')
-rw-r--r--src/Common/RequestHandler.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Common/RequestHandler.h b/src/Common/RequestHandler.h
index d4a591a..58ffeb7 100644
--- a/src/Common/RequestHandler.h
+++ b/src/Common/RequestHandler.h
@@ -23,6 +23,8 @@
#include "Connection.h"
#include "XmlPacket.h"
+#include <Net/Signals/Signals.h>
+
#include <boost/cstdint.hpp>
namespace Mad {
@@ -33,7 +35,7 @@ class RequestManager;
class RequestHandler {
private:
- boost::signal0<void> finished;
+ Net::Signals::Signal0<void> finished;
Connection *connection;
boost::uint16_t requestId;
@@ -45,7 +47,10 @@ class RequestHandler {
protected:
RequestHandler(Connection *connection0, boost::uint16_t requestId0) : connection(connection0), requestId(requestId0) {}
- boost::signal0<void>& signalFinished() {return finished;}
+ void signalFinished() {finished.emit();}
+ Net::Signals::Connection connectSignalFinished(const Net::Signals::Signal0<void>::slot_type &slot) {
+ return finished.connect(slot);
+ }
Connection* getConnection() const {
return connection;