 |
Kodi Development
19.0
for Binary and Script based Add-Ons
|
|
11 #include "AddonClass.h"
12 #include "AddonString.h"
13 #include "Alternative.h"
14 #include "Dictionary.h"
16 #include "InfoTagMusic.h"
17 #include "InfoTagVideo.h"
20 #include "commons/Exception.h"
30 XBMCCOMMONS_STANDARD_EXCEPTION(ListItemException);
33 typedef Alternative<StringOrInt,Tuple<String, StringOrInt> > InfoLabelStringOrTuple;
36 typedef Alternative<StringOrInt, std::vector<InfoLabelStringOrTuple> > InfoLabelValue;
41 typedef Dictionary<InfoLabelValue> InfoLabelDict;
71 #if !defined SWIG && !defined DOXYGEN_SHOULD_SKIP_THIS
76 ListItem(
const String& label = emptyString,
77 const String& label2 = emptyString,
78 const String& path = emptyString,
79 bool offscreen =
false);
81 #if !defined SWIG && !defined DOXYGEN_SHOULD_SKIP_THIS
82 inline explicit ListItem(CFileItemPtr pitem) :
83 item(pitem), m_offscreen(
false)
86 static inline AddonClass::Ref<ListItem> fromString(
const String& str)
88 AddonClass::Ref<ListItem> ret = AddonClass::Ref<ListItem>(
new ListItem());
89 ret->item.reset(
new CFileItem(str));
96 #ifdef DOXYGEN_SHOULD_USE_THIS
120 #ifdef DOXYGEN_SHOULD_USE_THIS
144 #ifdef DOXYGEN_SHOULD_USE_THIS
168 #ifdef DOXYGEN_SHOULD_USE_THIS
192 #ifdef DOXYGEN_SHOULD_USE_THIS
227 void setArt(
const Properties& dictionary);
230 #ifdef DOXYGEN_SHOULD_USE_THIS
256 #ifdef DOXYGEN_SHOULD_USE_THIS
287 void setUniqueIDs(
const Properties& dictionary,
const String& defaultrating =
"");
290 #ifdef DOXYGEN_SHOULD_USE_THIS
322 void setRating(std::string type,
float rating,
int votes = 0,
bool defaultt =
false);
325 #ifdef DOXYGEN_SHOULD_USE_THIS
349 void addSeason(
int number, std::string name =
"");
352 #ifdef DOXYGEN_SHOULD_USE_THIS
384 String
getArt(
const char* key);
387 #ifdef DOXYGEN_SHOULD_USE_THIS
418 #ifdef DOXYGEN_SHOULD_USE_THIS
449 #ifdef DOXYGEN_SHOULD_USE_THIS
480 #ifdef DOXYGEN_SHOULD_USE_THIS
502 void select(
bool selected);
505 #ifdef DOXYGEN_SHOULD_USE_THIS
530 #ifdef DOXYGEN_SHOULD_USE_THIS
679 void setInfo(
const char* type,
const InfoLabelDict& infoLabels);
682 #ifdef DOXYGEN_SHOULD_USE_THIS
712 void setCast(
const std::vector<Properties>& actors);
715 #ifdef DOXYGEN_SHOULD_USE_THIS
747 #ifdef DOXYGEN_SHOULD_USE_THIS
776 void addAvailableArtwork(std::string url, std::string art_type =
"", std::string preview =
"", std::string referrer =
"", std::string cache =
"",
bool post =
false,
bool isgz =
false,
int season = -1);
779 #ifdef DOXYGEN_SHOULD_USE_THIS
822 void addStreamInfo(
const char* cType,
const Properties& dictionary);
825 #ifdef DOXYGEN_SHOULD_USE_THIS
851 void addContextMenuItems(
const std::vector<Tuple<String,String> >& items,
bool replaceItems =
false);
854 #ifdef DOXYGEN_SHOULD_USE_THIS
896 void setProperty(
const char * key,
const String& value);
899 #ifdef DOXYGEN_SHOULD_USE_THIS
923 #ifdef DOXYGEN_SHOULD_USE_THIS
950 #ifdef DOXYGEN_SHOULD_USE_THIS
972 void setPath(
const String& path);
975 #ifdef DOXYGEN_SHOULD_USE_THIS
991 #ifdef DOXYGEN_SHOULD_USE_THIS
1010 #ifdef DOXYGEN_SHOULD_USE_THIS
1033 void setSubtitles(
const std::vector<String>& subtitleFiles);
1036 #ifdef DOXYGEN_SHOULD_USE_THIS
1054 #ifdef DOXYGEN_SHOULD_USE_THIS
1071 #ifdef DOXYGEN_SHOULD_USE_THIS
1089 std::vector<std::string> getStringArray(
const InfoLabelValue& alt,
const std::string& tag, std::string value =
"");
1091 CVideoInfoTag* GetVideoInfoTag();
1092 const CVideoInfoTag* GetVideoInfoTag()
const;
1095 #ifndef DOXYGEN_SHOULD_SKIP_THIS
1096 typedef std::vector<ListItem*> ListItemList;
getArt(key)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setMimeType(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setAvailableFanart(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getLabel()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
addAvailableArtwork(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getRating(key)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getVotes(key)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getProperty(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
addContextMenuItems(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setCast(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setPath(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setSubtitles(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setLabel(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
addStreamInfo(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
Definition: InfoTagMusic.h:44
setLabel2(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setContentLookup(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
Definition: ListItem.h:69
setProperty(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setUniqueIDs(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setRating(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
select(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getUniqueID(key)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setIsFolder(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setArt(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getMusicInfoTag()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setInfo(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getVideoInfoTag()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
isSelected()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setProperties(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getPath()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
addSeason(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
Definition: InfoTagVideo.h:45
getLabel2()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...