kodi
InfoTagVideo.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "AddonClass.h"
12 #include "Tuple.h"
13 #include "utils/StreamDetails.h"
14 #include "video/VideoInfoTag.h"
15 
16 namespace XBMCAddon
17 {
18  namespace xbmc
19  {
42  class Actor : public AddonClass
43  {
44  public:
45 #ifdef DOXYGEN_SHOULD_USE_THIS
46  Actor(...);
68 #else
69  explicit Actor(const String& name = emptyString,
70  const String& role = emptyString,
71  int order = -1,
72  const String& thumbnail = emptyString);
73 #endif
74 
75 #ifdef DOXYGEN_SHOULD_USE_THIS
76  getName();
88 #else
89  String getName() const { return m_name; }
90 #endif
91 
92 #ifdef DOXYGEN_SHOULD_USE_THIS
93  getRole();
105 #else
106  String getRole() const { return m_role; }
107 #endif
108 
109 #ifdef DOXYGEN_SHOULD_USE_THIS
110  getOrder();
122 #else
123  int getOrder() const { return m_order; }
124 #endif
125 
126 #ifdef DOXYGEN_SHOULD_USE_THIS
127  getThumbnail();
139 #else
140  String getThumbnail() const { return m_thumbnail; }
141 #endif
142 
143 #ifdef DOXYGEN_SHOULD_USE_THIS
144  setName(...);
156 #else
157  void setName(const String& name) { m_name = name; }
158 #endif
159 
160 #ifdef DOXYGEN_SHOULD_USE_THIS
161  setRole(...);
173 #else
174  void setRole(const String& role) { m_role = role; }
175 #endif
176 
177 #ifdef DOXYGEN_SHOULD_USE_THIS
178  setOrder(...);
190 #else
191  void setOrder(int order) { m_order = order; }
192 #endif
193 
194 #ifdef DOXYGEN_SHOULD_USE_THIS
195  setThumbnail(...);
207 #else
208  void setThumbnail(const String& thumbnail) { m_thumbnail = thumbnail; }
209 #endif
210 
211 #ifndef SWIG
212  SActorInfo ToActorInfo() const;
213 #endif
214 
215  private:
216  String m_name;
217  String m_role;
218  int m_order;
219  String m_thumbnail;
220  };
222 
246  {
247  public:
248 #ifdef DOXYGEN_SHOULD_USE_THIS
249  VideoStreamDetail(...);
277 #else
278  explicit VideoStreamDetail(int width = 0,
279  int height = 0,
280  float aspect = 0.0f,
281  int duration = 0,
282  const String& codec = emptyString,
283  const String& stereomode = emptyString,
284  const String& language = emptyString,
285  const String& hdrtype = emptyString);
286 #endif
287 
288 #ifdef DOXYGEN_SHOULD_USE_THIS
289  getWidth();
301 #else
302  int getWidth() const { return m_width; }
303 #endif
304 
305 #ifdef DOXYGEN_SHOULD_USE_THIS
306  getHeight();
318 #else
319  int getHeight() const { return m_height; }
320 #endif
321 
322 #ifdef DOXYGEN_SHOULD_USE_THIS
323  getAspect();
335 #else
336  float getAspect() const { return m_aspect; }
337 #endif
338 
339 #ifdef DOXYGEN_SHOULD_USE_THIS
340  getDuration();
352 #else
353  int getDuration() const { return m_duration; }
354 #endif
355 
356 #ifdef DOXYGEN_SHOULD_USE_THIS
357  getCodec();
369 #else
370  String getCodec() const { return m_codec; }
371 #endif
372 
373 #ifdef DOXYGEN_SHOULD_USE_THIS
374  getStereoMode();
386 #else
387  String getStereoMode() const { return m_stereoMode; }
388 #endif
389 
390 #ifdef DOXYGEN_SHOULD_USE_THIS
391  getLanguage();
403 #else
404  String getLanguage() const { return m_language; }
405 #endif
406 
407 #ifdef DOXYGEN_SHOULD_USE_THIS
408  getHDRType();
420 #else
421  String getHDRType() const { return m_hdrType; }
422 #endif
423 
424 #ifdef DOXYGEN_SHOULD_USE_THIS
425  setWidth(...);
437 #else
438  void setWidth(int width) { m_width = width; }
439 #endif
440 
441 #ifdef DOXYGEN_SHOULD_USE_THIS
442  setHeight(...);
454 #else
455  void setHeight(int height) { m_height = height; }
456 #endif
457 
458 #ifdef DOXYGEN_SHOULD_USE_THIS
459  setAspect(...);
471 #else
472  void setAspect(float aspect) { m_aspect = aspect; }
473 #endif
474 
475 #ifdef DOXYGEN_SHOULD_USE_THIS
476  setDuration(...);
488 #else
489  void setDuration(int duration) { m_duration = duration; }
490 #endif
491 
492 #ifdef DOXYGEN_SHOULD_USE_THIS
493  setCodec(...);
505 #else
506  void setCodec(const String& codec) { m_codec = codec; }
507 #endif
508 
509 #ifdef DOXYGEN_SHOULD_USE_THIS
510  setStereoMode(...);
522 #else
523  void setStereoMode(const String& stereomode) { m_stereoMode = stereomode; }
524 #endif
525 
526 #ifdef DOXYGEN_SHOULD_USE_THIS
527  setLanguage(...);
539 #else
540  void setLanguage(const String& language) { m_language = language; }
541 #endif
542 
543 #ifdef DOXYGEN_SHOULD_USE_THIS
544  setHDRType(...);
557 #else
558  void setHDRType(const String& hdrtype) { m_hdrType = hdrtype; }
559 #endif
560 
561 #ifndef SWIG
562  CStreamDetailVideo* ToStreamDetailVideo() const;
563 #endif
564 
565  private:
566  int m_width;
567  int m_height;
568  float m_aspect;
569  int m_duration;
570  String m_codec;
571  String m_stereoMode;
572  String m_language;
573  String m_hdrType;
574  };
576 
600  {
601  public:
602 #ifdef DOXYGEN_SHOULD_USE_THIS
603  AudioStreamDetail(...);
624 #else
625  explicit AudioStreamDetail(int channels = -1,
626  const String& codec = emptyString,
627  const String& language = emptyString);
628 #endif
629 
630 #ifdef DOXYGEN_SHOULD_USE_THIS
631  getChannels();
643 #else
644  int getChannels() const { return m_channels; }
645 #endif
646 
647 #ifdef DOXYGEN_SHOULD_USE_THIS
648  getCodec();
660 #else
661  String getCodec() const { return m_codec; }
662 #endif
663 
664 #ifdef DOXYGEN_SHOULD_USE_THIS
665  getLanguage();
677 #else
678  String getLanguage() const { return m_language; }
679 #endif
680 
681 #ifdef DOXYGEN_SHOULD_USE_THIS
682  setChannels(...);
694 #else
695  void setChannels(int channels) { m_channels = channels; }
696 #endif
697 
698 #ifdef DOXYGEN_SHOULD_USE_THIS
699  setCodec(...);
711 #else
712  void setCodec(const String& codec) { m_codec = codec; }
713 #endif
714 
715 #ifdef DOXYGEN_SHOULD_USE_THIS
716  setLanguage(...);
728 #else
729  void setLanguage(const String& language) { m_language = language; }
730 #endif
731 
732 #ifndef SWIG
733  CStreamDetailAudio* ToStreamDetailAudio() const;
734 #endif
735 
736  private:
737  int m_channels;
738  String m_codec;
739  String m_language;
740  };
742 
766  {
767  public:
768 #ifdef DOXYGEN_SHOULD_USE_THIS
788 #else
789  explicit SubtitleStreamDetail(const String& language = emptyString);
790 #endif
791 
792 #ifdef DOXYGEN_SHOULD_USE_THIS
793  getLanguage();
805 #else
806  String getLanguage() const { return m_language; }
807 #endif
808 
809 #ifdef DOXYGEN_SHOULD_USE_THIS
810  setLanguage(...);
822 #else
823  void setLanguage(const String& language) { m_language = language; }
824 #endif
825 
826 #ifndef SWIG
827  CStreamDetailSubtitle* ToStreamDetailSubtitle() const;
828 #endif
829 
830  private:
831  String m_language;
832  };
834 
858  class InfoTagVideo : public AddonClass
859  {
860  private:
861  CVideoInfoTag* infoTag;
862  bool offscreen;
863  bool owned;
864 
865  public:
866 #ifndef SWIG
867  explicit InfoTagVideo(const CVideoInfoTag* tag);
868  explicit InfoTagVideo(CVideoInfoTag* tag, bool offscreen = false);
869 #endif
870 
871 #ifdef DOXYGEN_SHOULD_USE_THIS
872  InfoTagVideo(...);
903 #else
904  explicit InfoTagVideo(bool offscreen = false);
905 #endif
906  ~InfoTagVideo() override;
907 
908 #ifdef DOXYGEN_SHOULD_USE_THIS
909  getDbId();
921 #else
922  int getDbId();
923 #endif
924 
925 #ifdef DOXYGEN_SHOULD_USE_THIS
926  getDirector();
939 #else
940  String getDirector();
941 #endif
942 
943 #ifdef DOXYGEN_SHOULD_USE_THIS
944  getDirectors();
957 #else
958  std::vector<String> getDirectors();
959 #endif
960 
961 #ifdef DOXYGEN_SHOULD_USE_THIS
962  getWritingCredits();
974 #else
975  String getWritingCredits();
976 #endif
977 
978 #ifdef DOXYGEN_SHOULD_USE_THIS
979  getWriters();
991 #else
992  std::vector<String> getWriters();
993 #endif
994 
995 #ifdef DOXYGEN_SHOULD_USE_THIS
996  getGenre();
1009 #else
1010  String getGenre();
1011 #endif
1012 
1013 #ifdef DOXYGEN_SHOULD_USE_THIS
1014  getGenres();
1027 #else
1028  std::vector<String> getGenres();
1029 #endif
1030 
1031 #ifdef DOXYGEN_SHOULD_USE_THIS
1032  getTagLine();
1044 #else
1045  String getTagLine();
1046 #endif
1047 
1048 #ifdef DOXYGEN_SHOULD_USE_THIS
1049  getPlotOutline();
1061 #else
1062  String getPlotOutline();
1063 #endif
1064 
1065 #ifdef DOXYGEN_SHOULD_USE_THIS
1066  getPlot();
1078 #else
1079  String getPlot();
1080 #endif
1081 
1082 #ifdef DOXYGEN_SHOULD_USE_THIS
1083  getPictureURL();
1095 #else
1096  String getPictureURL();
1097 #endif
1098 
1099 #ifdef DOXYGEN_SHOULD_USE_THIS
1100  getTitle();
1112 #else
1113  String getTitle();
1114 #endif
1115 
1116 #ifdef DOXYGEN_SHOULD_USE_THIS
1117  getTVShowTitle();
1129 #else
1130  String getTVShowTitle();
1131 #endif
1132 
1133 #ifdef DOXYGEN_SHOULD_USE_THIS
1134  getMediaType();
1156 #else
1157  String getMediaType();
1158 #endif
1159 
1160 #ifdef DOXYGEN_SHOULD_USE_THIS
1161  getVotes();
1173 #else
1174  String getVotes();
1175 #endif
1176 
1177 #ifdef DOXYGEN_SHOULD_USE_THIS
1178  getVotesAsInt(type);
1199 #else
1200  int getVotesAsInt(const String& type = "");
1201 #endif
1202 
1203 #ifdef DOXYGEN_SHOULD_USE_THIS
1204  getCast();
1216 #else
1217  String getCast();
1218 #endif
1219 
1220 #ifdef DOXYGEN_SHOULD_USE_THIS
1221  getActors();
1233 #else
1234  std::vector<Actor*> getActors();
1235 #endif
1236 
1237 #ifdef DOXYGEN_SHOULD_USE_THIS
1238  getFile();
1250 #else
1251  String getFile();
1252 #endif
1253 
1254 #ifdef DOXYGEN_SHOULD_USE_THIS
1255  getPath();
1267 #else
1268  String getPath();
1269 #endif
1270 
1271 #ifdef DOXYGEN_SHOULD_USE_THIS
1272  getFilenameAndPath();
1284 #else
1285  String getFilenameAndPath();
1286 #endif
1287 
1288 #ifdef DOXYGEN_SHOULD_USE_THIS
1289  getIMDBNumber();
1302 #else
1303  String getIMDBNumber();
1304 #endif
1305 
1306 #ifdef DOXYGEN_SHOULD_USE_THIS
1307  getSeason();
1319 #else
1320  int getSeason();
1321 #endif
1322 
1323 #ifdef DOXYGEN_SHOULD_USE_THIS
1324  getEpisode();
1336 #else
1337  int getEpisode();
1338 #endif
1339 
1340 #ifdef DOXYGEN_SHOULD_USE_THIS
1341  getYear();
1353 #else
1354  int getYear();
1355 #endif
1356 
1357 #ifdef DOXYGEN_SHOULD_USE_THIS
1358  getRating(type);
1379 #else
1380  double getRating(const String& type = "");
1381 #endif
1382 
1383 #ifdef DOXYGEN_SHOULD_USE_THIS
1384  getUserRating();
1396 #else
1397  int getUserRating();
1398 #endif
1399 
1400 #ifdef DOXYGEN_SHOULD_USE_THIS
1401  getPlayCount();
1413 #else
1414  int getPlayCount();
1415 #endif
1416 
1417 #ifdef DOXYGEN_SHOULD_USE_THIS
1418  getLastPlayed();
1430 #else
1431  String getLastPlayed();
1432 #endif
1433 
1434 #ifdef DOXYGEN_SHOULD_USE_THIS
1435  getLastPlayedAsW3C();
1447 #else
1448  String getLastPlayedAsW3C();
1449 #endif
1450 
1451 #ifdef DOXYGEN_SHOULD_USE_THIS
1452  getOriginalTitle();
1464 #else
1465  String getOriginalTitle();
1466 #endif
1467 
1468 #ifdef DOXYGEN_SHOULD_USE_THIS
1469  getPremiered();
1482 #else
1483  String getPremiered();
1484 #endif
1485 
1486 #ifdef DOXYGEN_SHOULD_USE_THIS
1487  getPremieredAsW3C();
1499 #else
1500  String getPremieredAsW3C();
1501 #endif
1502 
1503 #ifdef DOXYGEN_SHOULD_USE_THIS
1504  getFirstAired();
1516 #else
1517  String getFirstAired();
1518 #endif
1519 
1520 #ifdef DOXYGEN_SHOULD_USE_THIS
1521  getFirstAiredAsW3C();
1533 #else
1534  String getFirstAiredAsW3C();
1535 #endif
1536 
1537 #ifdef DOXYGEN_SHOULD_USE_THIS
1538  getTrailer();
1550 #else
1551  String getTrailer();
1552 #endif
1553 
1554 #ifdef DOXYGEN_SHOULD_USE_THIS
1555  getArtist();
1567 #else
1568  std::vector<std::string> getArtist();
1569 #endif
1570 
1571 #ifdef DOXYGEN_SHOULD_USE_THIS
1572  getAlbum();
1584 #else
1585  String getAlbum();
1586 #endif
1587 
1588 #ifdef DOXYGEN_SHOULD_USE_THIS
1589  getTrack();
1601 #else
1602  int getTrack();
1603 #endif
1604 
1605 #ifdef DOXYGEN_SHOULD_USE_THIS
1606  getDuration();
1618 #else
1619  unsigned int getDuration();
1620 #endif
1621 
1622 #ifdef DOXYGEN_SHOULD_USE_THIS
1623  getResumeTime(...);
1635 #else
1636  double getResumeTime();
1637 #endif
1638 
1639 #ifdef DOXYGEN_SHOULD_USE_THIS
1640  getResumeTimeTotal(...);
1652 #else
1653  double getResumeTimeTotal();
1654 #endif
1655 
1656 #ifdef DOXYGEN_SHOULD_USE_THIS
1657  getUniqueID(key);
1679 #else
1680  String getUniqueID(const char* key);
1681 #endif
1682 
1683 #ifdef DOXYGEN_SHOULD_USE_THIS
1684  setUniqueID(...);
1700 #else
1701  void setUniqueID(const String& uniqueid, const String& type = "", bool isdefault = false);
1702 #endif
1703 
1704 #ifdef DOXYGEN_SHOULD_USE_THIS
1705  setUniqueIDs(...);
1729 #else
1730  void setUniqueIDs(const std::map<String, String>& uniqueIDs,
1731  const String& defaultuniqueid = "");
1732 #endif
1733 
1734 #ifdef DOXYGEN_SHOULD_USE_THIS
1735  setDbId(...);
1747 #else
1748  void setDbId(int dbid);
1749 #endif
1750 
1751 #ifdef DOXYGEN_SHOULD_USE_THIS
1752  setYear(...);
1764 #else
1765  void setYear(int year);
1766 #endif
1767 
1768 #ifdef DOXYGEN_SHOULD_USE_THIS
1769  setEpisode(...);
1781 #else
1782  void setEpisode(int episode);
1783 #endif
1784 
1785 #ifdef DOXYGEN_SHOULD_USE_THIS
1786  setSeason(...);
1798 #else
1799  void setSeason(int season);
1800 #endif
1801 
1802 #ifdef DOXYGEN_SHOULD_USE_THIS
1803  setSortEpisode(...);
1815 #else
1816  void setSortEpisode(int sortepisode);
1817 #endif
1818 
1819 #ifdef DOXYGEN_SHOULD_USE_THIS
1820  setSortSeason(...);
1832 #else
1833  void setSortSeason(int sortseason);
1834 #endif
1835 
1836 #ifdef DOXYGEN_SHOULD_USE_THIS
1837  setEpisodeGuide(...);
1849 #else
1850  void setEpisodeGuide(const String& episodeguide);
1851 #endif
1852 
1853 #ifdef DOXYGEN_SHOULD_USE_THIS
1854  setTop250(...);
1866 #else
1867  void setTop250(int top250);
1868 #endif
1869 
1870 #ifdef DOXYGEN_SHOULD_USE_THIS
1871  setSetId(...);
1883 #else
1884  void setSetId(int setid);
1885 #endif
1886 
1887 #ifdef DOXYGEN_SHOULD_USE_THIS
1888  setTrackNumber(...);
1900 #else
1901  void setTrackNumber(int tracknumber);
1902 #endif
1903 
1904 #ifdef DOXYGEN_SHOULD_USE_THIS
1905  setRating(...);
1920 #else
1921  void setRating(float rating, int votes = 0, const String& type = "", bool isdefault = false);
1922 #endif
1923 
1924 #ifdef DOXYGEN_SHOULD_USE_THIS
1925  setRatings(...);
1938 #else
1939  void setRatings(const std::map<String, Tuple<float, int>>& ratings,
1940  const String& defaultrating = "");
1941 #endif
1942 
1943 #ifdef DOXYGEN_SHOULD_USE_THIS
1944  setUserRating(...);
1956 #else
1957  void setUserRating(int userrating);
1958 #endif
1959 
1960 #ifdef DOXYGEN_SHOULD_USE_THIS
1961  setPlaycount(...);
1973 #else
1974  void setPlaycount(int playcount);
1975 #endif
1976 
1977 #ifdef DOXYGEN_SHOULD_USE_THIS
1978  setMpaa(...);
1990 #else
1991  void setMpaa(const String& mpaa);
1992 #endif
1993 
1994 #ifdef DOXYGEN_SHOULD_USE_THIS
1995  setPlot(...);
2007 #else
2008  void setPlot(const String& plot);
2009 #endif
2010 
2011 #ifdef DOXYGEN_SHOULD_USE_THIS
2012  setPlotOutline(...);
2024 #else
2025  void setPlotOutline(const String& plotoutline);
2026 #endif
2027 
2028 #ifdef DOXYGEN_SHOULD_USE_THIS
2029  setTitle(...);
2041 #else
2042  void setTitle(const String& title);
2043 #endif
2044 
2045 #ifdef DOXYGEN_SHOULD_USE_THIS
2046  setOriginalTitle(...);
2058 #else
2059  void setOriginalTitle(const String& originaltitle);
2060 #endif
2061 
2062 #ifdef DOXYGEN_SHOULD_USE_THIS
2063  setSortTitle(...);
2075 #else
2076  void setSortTitle(const String& sorttitle);
2077 #endif
2078 
2079 #ifdef DOXYGEN_SHOULD_USE_THIS
2080  setTagLine(...);
2092 #else
2093  void setTagLine(const String& tagline);
2094 #endif
2095 
2096 #ifdef DOXYGEN_SHOULD_USE_THIS
2097  setTvShowTitle(...);
2109 #else
2110  void setTvShowTitle(const String& tvshowtitle);
2111 #endif
2112 
2113 #ifdef DOXYGEN_SHOULD_USE_THIS
2114  setTvShowStatus(...);
2126 #else
2127  void setTvShowStatus(const String& status);
2128 #endif
2129 
2130 #ifdef DOXYGEN_SHOULD_USE_THIS
2131  setGenres(...);
2143 #else
2144  void setGenres(std::vector<String> genre);
2145 #endif
2146 
2147 #ifdef DOXYGEN_SHOULD_USE_THIS
2148  setCountries(...);
2160 #else
2161  void setCountries(std::vector<String> countries);
2162 #endif
2163 
2164 #ifdef DOXYGEN_SHOULD_USE_THIS
2165  setDirectors(...);
2177 #else
2178  void setDirectors(std::vector<String> directors);
2179 #endif
2180 
2181 #ifdef DOXYGEN_SHOULD_USE_THIS
2182  setStudios(...);
2194 #else
2195  void setStudios(std::vector<String> studios);
2196 #endif
2197 
2198 #ifdef DOXYGEN_SHOULD_USE_THIS
2199  setWriters(...);
2211 #else
2212  void setWriters(std::vector<String> writers);
2213 #endif
2214 
2215 #ifdef DOXYGEN_SHOULD_USE_THIS
2216  setDuration(...);
2228 #else
2229  void setDuration(int duration);
2230 #endif
2231 
2232 #ifdef DOXYGEN_SHOULD_USE_THIS
2233  setPremiered(...);
2245 #else
2246  void setPremiered(const String& premiered);
2247 #endif
2248 
2249 #ifdef DOXYGEN_SHOULD_USE_THIS
2250  setSet(...);
2262 #else
2263  void setSet(const String& set);
2264 #endif
2265 
2266 #ifdef DOXYGEN_SHOULD_USE_THIS
2267  setSetOverview(...);
2279 #else
2280  void setSetOverview(const String& setoverview);
2281 #endif
2282 
2283 #ifdef DOXYGEN_SHOULD_USE_THIS
2284  setTags(...);
2296 #else
2297  void setTags(std::vector<String> tags);
2298 #endif
2299 
2300 #ifdef DOXYGEN_SHOULD_USE_THIS
2301  setVideoAssetTitle(...);
2313 #else
2314  void setVideoAssetTitle(const String& videoAssetTitle);
2315 #endif
2316 
2317 #ifdef DOXYGEN_SHOULD_USE_THIS
2318  setProductionCode(...);
2330 #else
2331  void setProductionCode(const String& productioncode);
2332 #endif
2333 
2334 #ifdef DOXYGEN_SHOULD_USE_THIS
2335  setFirstAired(...);
2347 #else
2348  void setFirstAired(const String& firstaired);
2349 #endif
2350 
2351 #ifdef DOXYGEN_SHOULD_USE_THIS
2352  setLastPlayed(...);
2364 #else
2365  void setLastPlayed(const String& lastplayed);
2366 #endif
2367 
2368 #ifdef DOXYGEN_SHOULD_USE_THIS
2369  setAlbum(...);
2381 #else
2382  void setAlbum(const String& album);
2383 #endif
2384 
2385 #ifdef DOXYGEN_SHOULD_USE_THIS
2386  setVotes(...);
2398 #else
2399  void setVotes(int votes);
2400 #endif
2401 
2402 #ifdef DOXYGEN_SHOULD_USE_THIS
2403  setTrailer(...);
2415 #else
2416  void setTrailer(const String& trailer);
2417 #endif
2418 
2419 #ifdef DOXYGEN_SHOULD_USE_THIS
2420  setPath(...);
2432 #else
2433  void setPath(const String& path);
2434 #endif
2435 
2436 #ifdef DOXYGEN_SHOULD_USE_THIS
2437  setFilenameAndPath(...);
2449 #else
2450  void setFilenameAndPath(const String& filenameandpath);
2451 #endif
2452 
2453 #ifdef DOXYGEN_SHOULD_USE_THIS
2454  setIMDBNumber(...);
2466 #else
2467  void setIMDBNumber(const String& imdbnumber);
2468 #endif
2469 
2470 #ifdef DOXYGEN_SHOULD_USE_THIS
2471  setDateAdded(...);
2483 #else
2484  void setDateAdded(const String& dateadded);
2485 #endif
2486 
2487 #ifdef DOXYGEN_SHOULD_USE_THIS
2488  setMediaType(...);
2500 #else
2501  void setMediaType(const String& mediatype);
2502 #endif
2503 
2504 #ifdef DOXYGEN_SHOULD_USE_THIS
2505  setShowLinks(...);
2517 #else
2518  void setShowLinks(std::vector<String> showlinks);
2519 #endif
2520 
2521 #ifdef DOXYGEN_SHOULD_USE_THIS
2522  setArtists(...);
2534 #else
2535  void setArtists(std::vector<String> artists);
2536 #endif
2537 
2538 #ifdef DOXYGEN_SHOULD_USE_THIS
2539  setCast(...);
2551 #else
2552  void setCast(const std::vector<const Actor*>& actors);
2553 #endif
2554 
2555 #ifdef DOXYGEN_SHOULD_USE_THIS
2556  setResumePoint(...);
2569 #else
2570  void setResumePoint(double time, double totaltime = 0.0);
2571 #endif
2572 
2573 #ifdef DOXYGEN_SHOULD_USE_THIS
2574  addSeason(...);
2596 #else
2597  void addSeason(int number, std::string name = "");
2598 #endif
2599 
2600 #ifdef DOXYGEN_SHOULD_USE_THIS
2601  addSeasons(...);
2613 #else
2614  void addSeasons(const std::vector<Tuple<int, std::string>>& namedseasons);
2615 #endif
2616 
2617 #ifdef DOXYGEN_SHOULD_USE_THIS
2618  addVideoStream(...);
2630 #else
2631  void addVideoStream(const VideoStreamDetail* stream);
2632 #endif
2633 
2634 #ifdef DOXYGEN_SHOULD_USE_THIS
2635  addAudioStream(...);
2647 #else
2648  void addAudioStream(const AudioStreamDetail* stream);
2649 #endif
2650 
2651 #ifdef DOXYGEN_SHOULD_USE_THIS
2652  addSubtitleStream(...);
2664 #else
2665  void addSubtitleStream(const SubtitleStreamDetail* stream);
2666 #endif
2667 
2668 #ifdef DOXYGEN_SHOULD_USE_THIS
2669  addAvailableArtwork(...);
2695 #else
2696  void addAvailableArtwork(const std::string& url,
2697  const std::string& arttype = "",
2698  const std::string& preview = "",
2699  const std::string& referrer = "",
2700  const std::string& cache = "",
2701  bool post = false,
2702  bool isgz = false,
2703  int season = -1);
2704 #endif
2705 
2707 #ifndef SWIG
2708  static void setDbIdRaw(CVideoInfoTag* infoTag, int dbId);
2709  static void setUniqueIDRaw(CVideoInfoTag* infoTag,
2710  const String& uniqueID,
2711  const String& type = "",
2712  bool isDefault = false);
2713  static void setUniqueIDsRaw(CVideoInfoTag* infoTag,
2714  std::map<String, String> uniqueIDs,
2715  const String& defaultUniqueID = "");
2716  static void setYearRaw(CVideoInfoTag* infoTag, int year);
2717  static void setEpisodeRaw(CVideoInfoTag* infoTag, int episode);
2718  static void setSeasonRaw(CVideoInfoTag* infoTag, int season);
2719  static void setSortEpisodeRaw(CVideoInfoTag* infoTag, int sortEpisode);
2720  static void setSortSeasonRaw(CVideoInfoTag* infoTag, int sortSeason);
2721  static void setEpisodeGuideRaw(CVideoInfoTag* infoTag, const String& episodeGuide);
2722  static void setTop250Raw(CVideoInfoTag* infoTag, int top250);
2723  static void setSetIdRaw(CVideoInfoTag* infoTag, int setId);
2724  static void setTrackNumberRaw(CVideoInfoTag* infoTag, int trackNumber);
2725  static void setRatingRaw(CVideoInfoTag* infoTag,
2726  float rating,
2727  int votes = 0,
2728  const std::string& type = "",
2729  bool isDefault = false);
2730  static void setRatingsRaw(CVideoInfoTag* infoTag,
2731  const std::map<String, Tuple<float, int>>& ratings,
2732  const String& defaultRating = "");
2733  static void setUserRatingRaw(CVideoInfoTag* infoTag, int userRating);
2734  static void setPlaycountRaw(CVideoInfoTag* infoTag, int playcount);
2735  static void setMpaaRaw(CVideoInfoTag* infoTag, const String& mpaa);
2736  static void setPlotRaw(CVideoInfoTag* infoTag, const String& plot);
2737  static void setPlotOutlineRaw(CVideoInfoTag* infoTag, const String& plotOutline);
2738  static void setTitleRaw(CVideoInfoTag* infoTag, const String& title);
2739  static void setOriginalTitleRaw(CVideoInfoTag* infoTag, const String& originalTitle);
2740  static void setSortTitleRaw(CVideoInfoTag* infoTag, const String& sortTitle);
2741  static void setTagLineRaw(CVideoInfoTag* infoTag, const String& tagLine);
2742  static void setTvShowTitleRaw(CVideoInfoTag* infoTag, const String& tvshowTitle);
2743  static void setTvShowStatusRaw(CVideoInfoTag* infoTag, const String& tvshowStatus);
2744  static void setGenresRaw(CVideoInfoTag* infoTag, std::vector<String> genre);
2745  static void setCountriesRaw(CVideoInfoTag* infoTag, std::vector<String> countries);
2746  static void setDirectorsRaw(CVideoInfoTag* infoTag, std::vector<String> directors);
2747  static void setStudiosRaw(CVideoInfoTag* infoTag, std::vector<String> studios);
2748  static void setWritersRaw(CVideoInfoTag* infoTag, std::vector<String> writers);
2749  static void setDurationRaw(CVideoInfoTag* infoTag, int duration);
2750  static void setPremieredRaw(CVideoInfoTag* infoTag, const String& premiered);
2751  static void setSetRaw(CVideoInfoTag* infoTag, const String& set);
2752  static void setSetOverviewRaw(CVideoInfoTag* infoTag, const String& setOverview);
2753  static void setTagsRaw(CVideoInfoTag* infoTag, std::vector<String> tags);
2754  static void setVideoAssetTitleRaw(CVideoInfoTag* infoTag, const String& videoAssetTitle);
2755  static void setProductionCodeRaw(CVideoInfoTag* infoTag, const String& productionCode);
2756  static void setFirstAiredRaw(CVideoInfoTag* infoTag, const String& firstAired);
2757  static void setLastPlayedRaw(CVideoInfoTag* infoTag, const String& lastPlayed);
2758  static void setAlbumRaw(CVideoInfoTag* infoTag, const String& album);
2759  static void setVotesRaw(CVideoInfoTag* infoTag, int votes);
2760  static void setTrailerRaw(CVideoInfoTag* infoTag, const String& trailer);
2761  static void setPathRaw(CVideoInfoTag* infoTag, const String& path);
2762  static void setFilenameAndPathRaw(CVideoInfoTag* infoTag, const String& filenameAndPath);
2763  static void setIMDBNumberRaw(CVideoInfoTag* infoTag, const String& imdbNumber);
2764  static void setDateAddedRaw(CVideoInfoTag* infoTag, const String& dateAdded);
2765  static void setMediaTypeRaw(CVideoInfoTag* infoTag, const String& mediaType);
2766  static void setShowLinksRaw(CVideoInfoTag* infoTag, std::vector<String> showLinks);
2767  static void setArtistsRaw(CVideoInfoTag* infoTag, std::vector<String> artists);
2768  static void setCastRaw(CVideoInfoTag* infoTag, std::vector<SActorInfo> cast);
2769  static void setResumePointRaw(CVideoInfoTag* infoTag, double time, double totalTime = 0.0);
2770 
2771  static void addSeasonRaw(CVideoInfoTag* infoTag, int number, std::string name = "");
2772  static void addSeasonsRaw(CVideoInfoTag* infoTag,
2773  const std::vector<Tuple<int, std::string>>& namedSeasons);
2774 
2775  static void addStreamRaw(CVideoInfoTag* infoTag, CStreamDetail* stream);
2776  static void finalizeStreamsRaw(CVideoInfoTag* infoTag);
2777 
2778  static void addAvailableArtworkRaw(CVideoInfoTag* infoTag,
2779  const std::string& url,
2780  const std::string& art_type = "",
2781  const std::string& preview = "",
2782  const std::string& referrer = "",
2783  const std::string& cache = "",
2784  bool post = false,
2785  bool isgz = false,
2786  int season = -1);
2787 #endif
2788  };
2789  }
2790 }
Definition: StreamDetails.h:78
Definition: StreamDetails.h:25
Definition: InfoTagVideo.h:599
Definition: ActorProtocol.h:21
Definition: InfoTagVideo.h:765
Definition: InfoTagVideo.h:858
Definition: VideoInfoTag.h:29
Defining LOG_LIFECYCLE_EVENTS will log all instantiations, deletions and also reference countings (in...
Definition: Addon.cpp:25
Definition: StreamDetails.h:64
Definition: StreamDetails.h:45
This class is the superclass for all reference counted classes in the api.
Definition: AddonClass.h:57
Definition: InfoTagVideo.h:245
Definition: VideoInfoTag.h:53
Definition: Tuple.h:32
Definition: cache.py:1