summaryrefslogtreecommitdiff
path: root/libtmdb/tmdb-proxy.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-09-19 23:52:30 +0000
committerrandomdan <randomdan@localhost>2014-09-19 23:52:30 +0000
commit28691c29e93fbc4fdb5ae4866287282840fba021 (patch)
tree8b83ca80afc3f3a5d11b04a56c440d2aa38f4e16 /libtmdb/tmdb-proxy.h
parentSupport muxing directly in storage (diff)
downloadp2pvr-28691c29e93fbc4fdb5ae4866287282840fba021.tar.bz2
p2pvr-28691c29e93fbc4fdb5ae4866287282840fba021.tar.xz
p2pvr-28691c29e93fbc4fdb5ae4866287282840fba021.zip
First bash at a slicer ice proxy for TMDb and an untested instantiation in p2pvr's core adapter
Diffstat (limited to 'libtmdb/tmdb-proxy.h')
-rw-r--r--libtmdb/tmdb-proxy.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libtmdb/tmdb-proxy.h b/libtmdb/tmdb-proxy.h
new file mode 100644
index 0000000..6ff8b38
--- /dev/null
+++ b/libtmdb/tmdb-proxy.h
@@ -0,0 +1,17 @@
+#include <tmdb-api.h>
+#include "httpClient.h"
+
+namespace TMDb {
+ class Proxy : public API, private HttpClient {
+ public:
+ Proxy(const std::string & baseUrl, const std::string & apikey);
+
+ SearchMultiResultsPtr SearchMulti(const std::string&, const IceUtil::Optional<int>&, const Ice::Current&) override;
+ SearchMovieResultsPtr SearchMovies(const std::string&, const IceUtil::Optional<int>&, const IceUtil::Optional<int>&, const Ice::Current&) override;
+ SearchPersonResultsPtr SearchPersons(const std::string&, const IceUtil::Optional<int>&, const Ice::Current&) override;
+ SearchTvResultsPtr SearchTv(const std::string&, const IceUtil::Optional<int>&, const Ice::Current&) override;
+ MoviePtr GetMovie(Ice::Int, const Ice::Current&) override;
+ TvSeriesPtr GetTvSeries(Ice::Int, const Ice::Current&) override;
+ };
+};
+