X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Fhttp%2Fipagehandler.h;fp=include%2Fhttp%2Fipagehandler.h;h=16afb7c25333d65ddb47c27a4b3c9f1ccf0470c2;hp=11bdc229ff2769813f9bab2a7bb8048b7c4b64ed;hb=221236a4d3aac4144529d418ce368db5c98facb0;hpb=d5c9f7e6c1dd263dfc85a3cb5941a378a5ddd923 diff --git a/include/http/ipagehandler.h b/include/http/ipagehandler.h index 11bdc22..16afb7c 100644 --- a/include/http/ipagehandler.h +++ b/include/http/ipagehandler.h @@ -16,9 +16,9 @@ class IPageHandler:public Poco::Net::HTTPRequestHandler,public ILogger { public: IPageHandler() {} - IPageHandler(const std::string &templatestr) { m_template=templatestr; } + IPageHandler(const std::string &templatestr, const std::string &pagename):m_template(templatestr),m_pagename(pagename) { } virtual ~IPageHandler() {} - virtual const bool WillHandleURI(const std::string &uri)=0; + virtual const bool WillHandleURI(const std::string &uri); virtual IPageHandler *New()=0; // returns a new instance of the object @@ -41,6 +41,7 @@ protected: const std::string SanitizeOutput(const std::string &input); std::string m_template; + std::string m_pagename; };