diff options
author | louis <louis.braun@gmx.de> | 2013-08-21 10:28:37 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-08-21 10:28:37 +0200 |
commit | ac9ae79a214ca4707a83229d854c0ca5180be398 (patch) | |
tree | da48c40d055a942d8fc21c934b5c8208aa6a52b6 | |
parent | 9e1fcfc0bff753031617324b5244805080be9430 (diff) | |
download | skin-nopacity-ac9ae79a214ca4707a83229d854c0ca5180be398.tar.gz skin-nopacity-ac9ae79a214ca4707a83229d854c0ca5180be398.tar.bz2 |
Forgot tvscrapper service interface
-rw-r--r-- | services/tvscrapper.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/services/tvscrapper.h b/services/tvscrapper.h new file mode 100644 index 0000000..5541608 --- /dev/null +++ b/services/tvscrapper.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 "TVScrapper-GetPosterOrBanner" +struct TVScrapperGetPosterOrBanner +{ +// in + const cEvent *event; // search image for this event +//out + tvMediaType type; //typeSeries or typeMovie + tvMedia media; //banner or poster +}; + +// Data structure for service "TVScrapper-GetPoster" +struct TVScrapperGetPoster +{ +// 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 "TVScrapper-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 TVScrapperGetFullInformation +{ +// 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 |