X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Flocalidentitiespage.h;h=bc0ae7cb86f444abe6898d8e694e3194eb12338d;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=bc687e12081e7d8476e33dd6f0e77e34fbaa225c;hpb=f208e33c29132aacaec448e74341edea1b925a2a;p=fms.git diff --git a/include/http/pages/localidentitiespage.h b/include/http/pages/localidentitiespage.h index bc687e1..bc0ae7c 100644 --- a/include/http/pages/localidentitiespage.h +++ b/include/http/pages/localidentitiespage.h @@ -2,17 +2,24 @@ #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); - const std::string CreateTrueFalseDropDown(const std::string &name, const std::string &selected); + void HandleUpdate(const std::map &queryvars); + void HandleDelete(const std::map &queryvars); + void HandleImport(const std::map &queryvars); + const std::string HandleExport(); };