version 0.3.0
[fms.git] / include / http / pages / homepage.h
1 #ifndef _homepage_\r
2 #define _homepage_\r
3 \r
4 #include "../ipagehandler.h"\r
5 #include "../../idatabase.h"\r
6 \r
7 class HomePage:public IPageHandler,public IDatabase\r
8 {\r
9 public:\r
10         HomePage(const std::string &templatestr):IPageHandler(templatestr) {}\r
11 \r
12         IPageHandler *New()     { return new HomePage(m_template); }\r
13 \r
14 private:\r
15         const bool WillHandleURI(const std::string &uri);\r
16         const std::string GeneratePage(const std::string &method, const std::map<std::string,std::string> &queryvars);\r
17 };\r
18 \r
19 #endif  // _homepage_\r