39 lines
777 B
C++
39 lines
777 B
C++
#ifndef __HTTPPageList_h__
|
|
#define __HTTPPageList_h__
|
|
|
|
#include "Session.h"
|
|
#include "__index.h"
|
|
#include "__setupadmin.h"
|
|
#include "__favicon_ico.h"
|
|
|
|
namespace http {
|
|
|
|
class HTTPPageList {
|
|
|
|
public:
|
|
HTTPPageList() {
|
|
add(index, "/ ");
|
|
add(setupadmin, "/setupadmin ");
|
|
add(favicon_ico, "/favicon.ico");
|
|
}
|
|
|
|
bool processRequest(std::string request, 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;
|
|
__setupadmin setupadmin;
|
|
__favicon_ico favicon_ico;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|