diff options
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/Request.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Common/Request.h b/src/Common/Request.h index fa6b619..229b8b8 100644 --- a/src/Common/Request.h +++ b/src/Common/Request.h @@ -36,9 +36,10 @@ template<typename T = void> class Request : public RequestBase { std::auto_ptr<T> res; Exception exp; - protected: + public: typedef sigc::slot<void,const Request<T>&> slot_type; + protected: Request(slot_type slot) : exp(Exception::NOT_FINISHED) { finished.connect(slot); finished.connect(sigc::hide(signalFinished().make_slot())); @@ -64,9 +65,10 @@ template<> class Request<void> : public RequestBase { bool isFinished; Exception exp; - protected: + public: typedef sigc::slot<void,const Request<void>&> slot_type; + protected: Request(slot_type slot) : isFinished(false), exp(Exception::NOT_FINISHED) { finished.connect(slot); finished.connect(sigc::hide(signalFinished().make_slot())); |