X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fhttp%2Fpages%2Frecentlyaddedpage.h;h=1ed00e164273bb8eef06e87edd48dcbda7d61994;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=ec9c1cc12de652f8d0c48a14506801cee99e79ad;hpb=fcb124f8d6d3f5678e82049fb8e5e23c8cfaec6d;p=fms.git diff --git a/include/http/pages/recentlyaddedpage.h b/include/http/pages/recentlyaddedpage.h index ec9c1cc..1ed00e1 100644 --- a/include/http/pages/recentlyaddedpage.h +++ b/include/http/pages/recentlyaddedpage.h @@ -2,17 +2,15 @@ #define _recentlyaddedpage_ #include "../ipagehandler.h" -#include "../../idatabase.h" -class RecentlyAddedPage:public IPageHandler,public IDatabase +class RecentlyAddedPage:public IPageHandler { public: - RecentlyAddedPage(const std::string &templatestr):IPageHandler(templatestr) {} + RecentlyAddedPage(SQLite3DB::DB *db, const std::string &templatestr):IPageHandler(db,templatestr,"recentlyadded.htm") {} - IPageHandler *New() { return new RecentlyAddedPage(m_template); } + IPageHandler *New() { return new RecentlyAddedPage(m_db,m_template); } private: - const bool WillHandleURI(const std::string &uri); const std::string GeneratePage(const std::string &method, const std::map &queryvars); };