diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-22 18:24:26 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-22 18:24:26 +0200 |
commit | 1af3eab2b23c67795b188e5edaf83bf47a8879bd (patch) | |
tree | 949611a5591a20533db9526a66272c7a693a15fd /src/Common | |
parent | fe6d06a7df225e79756229131f128981bbb83b40 (diff) | |
download | mad-1af3eab2b23c67795b188e5edaf83bf47a8879bd.tar mad-1af3eab2b23c67795b188e5edaf83bf47a8879bd.zip |
NetworkLogger implementiert
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())); |