From fd2cdacf49b101658de7e0a624c84897a398e62e Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 12 Sep 2013 14:28:32 +0100 Subject: thumbnail function --- rotord/src/rotord.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rotord/src/rotord.h') diff --git a/rotord/src/rotord.h b/rotord/src/rotord.h index 25ff3e3..ecdfefc 100644 --- a/rotord/src/rotord.h +++ b/rotord/src/rotord.h @@ -86,6 +86,13 @@ class RenderContextHandler: public HTTPRequestHandler class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory { public: + RotorRequestHandlerFactory(){ + xmlIO xml; + if(xml.loadFile("settings.xml") ){ + media_dir=xml.getAttribute("Rotor","media_dir","",0); + thumbnail_dir=xml.getAttribute("Rotor","thumbnail_dir","",0); + } + } HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request); private: @@ -93,6 +100,8 @@ class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory std::unordered_map renders; Poco::UUIDGenerator idGen; Poco::TaskManager manager; + std::string media_dir; + std::string thumbnail_dir; }; class RotorServer: public Poco::Util::ServerApplication -- cgit v1.2.3