version 0.1.6
[fms.git] / include / http / httpthread.h
1 #ifndef _httpthread_\r
2 #define _httpthread_\r
3 \r
4 #include "../pthreadwrapper/runnable.h"\r
5 #include "../ilogger.h"\r
6 #include "../idatabase.h"\r
7 #include "ipagehandler.h"\r
8 #include "httpdefs.h"\r
9 \r
10 #include <shttpd.h>\r
11 \r
12 class HTTPThread:public PThread::Runnable,public ILogger, public IDatabase\r
13 {\r
14 public:\r
15         HTTPThread();\r
16         ~HTTPThread();\r
17         \r
18         void Run();\r
19 \r
20 private:\r
21         static void PageCallback(shttpd_arg *arg);\r
22 \r
23         struct shttpd_ctx *m_ctx;\r
24 \r
25         std::vector<IPageHandler *> m_pagehandlers;\r
26 \r
27 };\r
28 \r
29 #endif  // _httpthread_\r