From 7234fe326d16d6bf9f4374a09ddc6ef790e6723f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 18 Jun 2009 22:03:02 +0200 Subject: Globale Variablen durch Application-Klasse ersetzt --- src/Common/RequestHandler.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/Common/RequestHandler.h') diff --git a/src/Common/RequestHandler.h b/src/Common/RequestHandler.h index 3deb8c0..096ff45 100644 --- a/src/Common/RequestHandler.h +++ b/src/Common/RequestHandler.h @@ -20,31 +20,32 @@ #ifndef MAD_COMMON_REQUESTHANDLER_H_ #define MAD_COMMON_REQUESTHANDLER_H_ +#include "Application.h" #include "Connection.h" #include "XmlPacket.h" #include #include -#include -#include namespace Mad { namespace Common { class Connection; -class RequestManager; class RequestHandler : private boost::noncopyable { private: friend class RequestManager; - boost::mutex mutex; + Application *application; Core::Signals::Signal0 finished; protected: - RequestHandler() {} + Application* getApplication() const {return application;} + RequestManager* getRequestManager() const {return application->getRequestManager();} + + RequestHandler(Application *application0); void signalFinished() { finished.emit(); -- cgit v1.2.3