/home/bradarant/barant/HTTPServer/HTTPPageList.h
#ifndef __HTTPPageList_h__
#define __HTTPPageList_h__
#include "Session.h"
#include "HTTPRequest.h"
#include "__index.h"
#include "__script.h"
#include "__editview.h"
#include "__style.h"
#include "__setupadmin.h"
#include "__favicon_ico.h"
#include "__welcome.h"
#include "__mainmenu.h"
#include "__newview.h"
#include "__configure.h"
#include "__viewlist.h"
namespace http {
class HTTPPageList {
public:
HTTPPageList() {
add(index, "/");
add(script, "/script");
add(editview, "/editview");
add(style, "/style");
add(setupadmin, "/setupadmin");
add(favicon_ico, "/favicon.ico");
add(welcome, "/welcome");
add(mainmenu, "/mainmenu");
add(newview, "/newview");
add(configure, "/configure");
add(viewlist, "/viewlist");
}
bool processRequest(HTTPRequest &httpRequest, core::Session *session, HTTPSession *httpSession, std::stringstream &data);
void add(HTTPPage &page, std::string name = "");
void remove(HTTPPage &page);
protected:
std::vector<HTTPPage *> pages;
private:
__index index;
__script script;
__style style;
__editview editview;
__setupadmin setupadmin;
__favicon_ico favicon_ico;
__welcome welcome;
__mainmenu mainmenu;
__newview newview;
__configure configure;
__viewlist viewlist;
};
}
#endif
http::__script
Definition: __script.h:8
http::__viewlist
Definition: __viewlist.h:9
http::HTTPSession
Definition: HTTPSession.h:9
http::__index
Definition: __index.h:9
http::__favicon_ico
Definition: __favicon_ico.h:8
http
Definition: __configure.h:4
http::__style
Definition: __style.h:8
http::__mainmenu
Definition: __mainmenu.h:8
http::HTTPPage
Definition: HTTPPage.h:11
http::__editview
Definition: __editview.h:8
http::HTTPRequest
Definition: HTTPRequest.h:11
http::__newview
Definition: __newview.h:8
http::HTTPPageList
Definition: HTTPPageList.h:20
http::__setupadmin
Definition: __setupadmin.h:6
http::__configure
Definition: __configure.h:6
http::__welcome
Definition: __welcome.h:9