X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Flocalidentitiespage.h;h=bc0ae7cb86f444abe6898d8e694e3194eb12338d;hp=71e0caaef6731b1451fb321d65cfad22b9bfd337;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hpb=14fff12d9df0ee30e2df4bf9d22c2e83065816df diff --git a/include/http/pages/localidentitiespage.h b/include/http/pages/localidentitiespage.h index 71e0caa..bc0ae7c 100644 --- a/include/http/pages/localidentitiespage.h +++ b/include/http/pages/localidentitiespage.h @@ -2,16 +2,25 @@ #define _localidentitiespage_ #include "../ipagehandler.h" -#include "../../idatabase.h" -class LocalIdentitiesPage:public IPageHandler,public IDatabase +class LocalIdentitiesPage:public IPageHandler { public: - LocalIdentitiesPage(const std::string &templatestr):IPageHandler(templatestr) {} + LocalIdentitiesPage(SQLite3DB::DB *db, const std::string &templatestr):IPageHandler(db,templatestr,"localidentities.htm") {} + + IPageHandler *New() { return new LocalIdentitiesPage(m_db,m_template); } + + void handleRequest(Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response); + private: const bool WillHandleURI(const std::string &uri); const std::string GeneratePage(const std::string &method, const std::map &queryvars); + void HandleUpdate(const std::map &queryvars); + void HandleDelete(const std::map &queryvars); + void HandleImport(const std::map &queryvars); + const std::string HandleExport(); + }; #endif // _localidentitiespage_