fix typo
[enigma2.git] / lib / network / http.h
1 #ifndef __http_h
2 #define __http_h
3
4 #include <lib/network/httpd.h>
5 #include <lib/network/http_file.h>
6 #include <lib/network/http_dyn.h>
7
8 class eHTTPDynPathResolver;
9 class eHTTPFilePathResolver;
10
11 typedef ePtr<eHTTPDynPathResolver> eHTTPDynPathResolverPtr;
12 typedef ePtr<eHTTPFilePathResolver> eHTTPFilePathResolverPtr;
13
14 class eHTTPServer
15 {
16         eHTTPD m_httpd;
17         static eHTTPServer *m_instance;
18         eHTTPDynPathResolverPtr m_dyn;
19         eHTTPFilePathResolverPtr m_file;
20 public:
21         RESULT getDynResolver(eHTTPDynPathResolverPtr &ptr);
22         RESULT getFileResolver(eHTTPFilePathResolverPtr &ptr);
23         
24         eHTTPServer();
25         static eHTTPServer *getInstance() { return m_instance; }
26 };
27
28 #endif