summaryrefslogtreecommitdiffstats
path: root/src/Common/RequestHandler.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-06-18 22:03:02 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-06-18 22:03:02 +0200
commit7234fe326d16d6bf9f4374a09ddc6ef790e6723f (patch)
tree437d4c40eeb1e9b34b369e4b82064a1572c7dac9 /src/Common/RequestHandler.h
parentbf561f8226e97f4ace4f04bddf198175e91ee7f0 (diff)
downloadmad-7234fe326d16d6bf9f4374a09ddc6ef790e6723f.tar
mad-7234fe326d16d6bf9f4374a09ddc6ef790e6723f.zip
Globale Variablen durch Application-Klasse ersetzt
Diffstat (limited to 'src/Common/RequestHandler.h')
-rw-r--r--src/Common/RequestHandler.h11
1 files changed, 6 insertions, 5 deletions
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 <Core/Signals.h>
#include <boost/cstdint.hpp>
-#include <boost/thread/locks.hpp>
-#include <boost/thread/mutex.hpp>
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();