X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Fpeermaintenancepage.h;h=90225041809cf16f525396c4b9be69196dec08ff;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=80f74f181743df54ef20c4abd88ec9be0cfa4ab0;hpb=df316253862dc50e8e5a790d9634ef90be37badb;p=fms.git diff --git a/include/http/pages/peermaintenancepage.h b/include/http/pages/peermaintenancepage.h index 80f74f1..9022504 100644 --- a/include/http/pages/peermaintenancepage.h +++ b/include/http/pages/peermaintenancepage.h @@ -2,12 +2,13 @@ #define _peermaintenancepage_ #include "../ipagehandler.h" -#include "../../idatabase.h" -class PeerMaintenancePage:public IPageHandler,public IDatabase +class PeerMaintenancePage:public IPageHandler { public: - PeerMaintenancePage(const std::string &templatestr):IPageHandler(templatestr) {} + PeerMaintenancePage(SQLite3DB::DB *db, const std::string &templatestr):IPageHandler(db,templatestr,"peermaintenance.htm") {} + + IPageHandler *New() { return new PeerMaintenancePage(m_db,m_template); } private: const bool WillHandleURI(const std::string &uri);