diff options
Diffstat (limited to 'src/Common/Request.h')
-rw-r--r-- | src/Common/Request.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Common/Request.h b/src/Common/Request.h index 7ab2816..3979e0c 100644 --- a/src/Common/Request.h +++ b/src/Common/Request.h @@ -24,7 +24,8 @@ #include <Net/Exception.h> #include <memory> -#include <sigc++/adaptors/hide.h> + +#include <boost/bind.hpp> namespace Mad { namespace Common { @@ -33,19 +34,19 @@ class Request : public RequestHandler { private: friend class RequestManager; - sigc::signal<void,const Request&> finished; + boost::signal1<void, const Request&> finished; std::auto_ptr<XmlPacket> res; Net::Exception exp; public: - typedef sigc::slot<void,const Request&> slot_type; + typedef boost::function1<void, const Request&> slot_type; protected: Request(Connection *connection, uint16_t requestId, slot_type slot) : RequestHandler(connection, requestId), exp(Net::Exception::NOT_FINISHED) { finished.connect(slot); - finished.connect(sigc::hide(signalFinished().make_slot())); + finished.connect(boost::bind((void(boost::signal0<void>::*)())&boost::signal0<void>::operator(), &signalFinished())); } void finish(std::auto_ptr<XmlPacket> result) {res = result; finished(*this);} |