summaryrefslogtreecommitdiff
path: root/PlexReqHandlerFactory.h
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2014-11-15 19:43:07 +0100
committerchriszero <zerov83@gmail.com>2014-11-15 19:43:07 +0100
commit23f9f7712bfa33b5a488a447a6fabe6035cc3240 (patch)
tree06bbe8e0bc52496c5ad3c41accc7524aa597e670 /PlexReqHandlerFactory.h
parenta40adaf76fb1267d38b4c5e6386933ddb2d0d328 (diff)
downloadvdr-plugin-plex-23f9f7712bfa33b5a488a447a6fabe6035cc3240.tar.gz
vdr-plugin-plex-23f9f7712bfa33b5a488a447a6fabe6035cc3240.tar.bz2
initial commit
Diffstat (limited to 'PlexReqHandlerFactory.h')
-rw-r--r--PlexReqHandlerFactory.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/PlexReqHandlerFactory.h b/PlexReqHandlerFactory.h
new file mode 100644
index 0000000..82ceb8a
--- /dev/null
+++ b/PlexReqHandlerFactory.h
@@ -0,0 +1,28 @@
+#ifndef PLEXREQHANDLERFACTORY_H
+#define PLEXREQHANDLERFACTORY_H
+
+#include <Poco/Net/HTTPRequestHandlerFactory.h> // Base class: Poco::Net::HTTPRequestHandlerFactory
+#include <Poco/Net/HTTPRequestHandler.h>
+#include <Poco/Net/HTTPServerRequest.h>
+
+#include "PlexHTTPRequestHandler.h"
+
+#include "Config.h"
+
+namespace plexclient
+{
+
+class PlexReqHandlerFactory : public Poco::Net::HTTPRequestHandlerFactory
+{
+public:
+ PlexReqHandlerFactory();
+ ~PlexReqHandlerFactory();
+
+public:
+ virtual Poco::Net::HTTPRequestHandler* createRequestHandler(const Poco::Net::HTTPServerRequest& request);
+};
+
+}
+
+
+#endif // PLEXREQHANDLERFACTORY_H