--- /dev/null
+#ifndef _httpthread_\r
+#define _httpthread_\r
+\r
+#include "../pthreadwrapper/runnable.h"\r
+#include "../ilogger.h"\r
+#include "../idatabase.h"\r
+#include "ipagehandler.h"\r
+#include "httpdefs.h"\r
+\r
+#include <shttpd.h>\r
+\r
+class HTTPThread:public PThread::Runnable,public ILogger, public IDatabase\r
+{\r
+public:\r
+ HTTPThread();\r
+ ~HTTPThread();\r
+ \r
+ void Run();\r
+\r
+private:\r
+ static void PageCallback(shttpd_arg *arg);\r
+\r
+ struct shttpd_ctx *m_ctx;\r
+\r
+ std::vector<IPageHandler *> m_pagehandlers;\r
+\r
+};\r
+\r
+#endif // _httpthread_\r