summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-03-27 21:45:09 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-03-27 21:45:09 +0100
commit686836f0fc23838878da872b0f1eab258a6271e7 (patch)
tree5008d4fee42e60e687ca66f498ecf16b92a4f4c9 /services
parenta821a54d6b8c5f844623cbabc7a26843dbadccdf (diff)
downloadskin-flatplus-686836f0fc23838878da872b0f1eab258a6271e7.tar.gz
skin-flatplus-686836f0fc23838878da872b0f1eab258a6271e7.tar.bz2
tvscraper support for displaychannel
Diffstat (limited to 'services')
-rw-r--r--services/tvscraper.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/services/tvscraper.h b/services/tvscraper.h
new file mode 100644
index 00000000..fc278add
--- /dev/null
+++ b/services/tvscraper.h
@@ -0,0 +1,56 @@
+enum tvMediaType {
+ typeSeries,
+ typeMovie,
+ typeNone,
+};
+
+struct tvMedia {
+ std::string path;
+ int width;
+ int height;
+};
+
+struct tvActor {
+ std::string name;
+ std::string role;
+ tvMedia thumb;
+};
+
+// Data structure for service "TVScraper-GetPosterOrBanner"
+struct TVScraperGetPosterOrBanner
+{
+// in
+ const cEvent *event; // search image for this event
+//out
+ tvMediaType type; //typeSeries or typeMovie
+ tvMedia media; //banner or poster
+};
+
+// Data structure for service "TVScraper-GetPoster"
+struct TVScraperGetPoster
+{
+// in
+ const cEvent *event; // search image for this event
+ bool isRecording; // search in current EPG or recordings
+//out
+ tvMedia media; //poster
+};
+
+
+/* Data structure for service "TVScraper-GetFullEPGInformation"
+if type == typeMovie a poster and a fanart image is delivered
+if type == typeSeries a banner and up to three posters and fanarts are delivered
+*/
+struct TVScraperGetFullInformation
+{
+// in
+ const cEvent *event; // search all media for this event
+ bool isRecording; // search in current EPG or recordings
+//out
+ tvMediaType type;
+ tvMedia banner;
+ std::vector<tvMedia> posters;
+ std::vector<tvMedia> fanart;
+ std::vector<tvActor> actors;
+ std::string description;
+}; \ No newline at end of file