diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-09-12 14:28:32 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-09-12 14:28:32 +0100 |
| commit | fd2cdacf49b101658de7e0a624c84897a398e62e (patch) | |
| tree | 6ced81a91b56e20182d5dff77a1e09cffb2a0e29 /rotord/src/rotord.h | |
| parent | 119dbdb43b859b529112d49dbeb3e05831372f68 (diff) | |
thumbnail function
Diffstat (limited to 'rotord/src/rotord.h')
| -rw-r--r-- | rotord/src/rotord.h | 9 |
1 files changed, 9 insertions, 0 deletions
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<std::string,std::string> renders; Poco::UUIDGenerator idGen; Poco::TaskManager manager; + std::string media_dir; + std::string thumbnail_dir; }; class RotorServer: public Poco::Util::ServerApplication |
