X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Fcontrolboardpage.h;h=3021edcc2f80a8882aa900e6050d047624853e3a;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=6471ada3f4d0cfbb20f405af53be49bb906f8ecb;hpb=b9c3763a932cebaa015a27fe111017f6f34dfbaa;p=fms.git diff --git a/include/http/pages/controlboardpage.h b/include/http/pages/controlboardpage.h index 6471ada..3021edc 100644 --- a/include/http/pages/controlboardpage.h +++ b/include/http/pages/controlboardpage.h @@ -2,12 +2,13 @@ #define _controlboardpage_ #include "../ipagehandler.h" -#include "../../idatabase.h" -class ControlBoardPage:public IPageHandler,public IDatabase +class ControlBoardPage:public IPageHandler { public: - ControlBoardPage(const std::string &templatestr):IPageHandler(templatestr) {} + ControlBoardPage(SQLite3DB::DB *db, const std::string &templatestr):IPageHandler(db,templatestr,"controlboard.htm") {} + + IPageHandler *New() { return new ControlBoardPage(m_db,m_template); } private: const bool WillHandleURI(const std::string &uri);