Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XBMCAddon::xbmcgui::ListItem Class Reference

#include <ListItem.h>

Inheritance diagram for XBMCAddon::xbmcgui::ListItem:
XBMCAddon::AddonClass

Public Member Functions

 ListItem ([label, label2, path, offscreen])
 Selectable window list item.
 
 getLabel ()
 

Function: getLabel()


Returns the listitem label.
 
 getLabel2 ()
 

Function: getLabel2()


Returns the second listitem label.
 
 setLabel (...)
 

Function: setLabel(label)


Sets the listitem's label.
 
 setLabel2 (...)
 

Function: setLabel2(label)


Sets the listitem's label2.
 
 getDateTime ()
 

Function: getDateTime()


Returns the list item's datetime in W3C format (YYYY-MM-DDThh:mm:ssTZD).
 
 setDateTime (...)
 

Function: setDateTime(dateTime)


Sets the list item's datetime in W3C format. The following formats are supported:
 
 setArt (...)
 

Function: setArt(values)


Sets the listitem's art
 
 setIsFolder (...)
 

Function: setIsFolder(isFolder)


Sets if this listitem is a folder.
 
 setUniqueIDs (...)
 

Function: setUniqueIDs(values, defaultrating)


Sets the listitem's uniqueID
 
 setRating (...)
 

Function: setRating(type, rating, votes = 0, defaultt = False)


Sets a listitem's rating. It needs at least type and rating param
 
 addSeason (...)
 

Function: addSeason(number, name = "")


Add a season with name to a listitem. It needs at least the season number
 
 getArt (key)
 

Function: getArt(key)


Returns a listitem art path as a string, similar to an infolabel.

 
 isFolder ()
 

Function: isFolder()


Returns whether the item is a folder or not.
 
 getUniqueID (key)
 

Function: getUniqueID(key)


Returns a listitem uniqueID as a string, similar to an infolabel.

 
 getRating (key)
 

Function: getRating(key)


Returns a listitem rating as a float.

 
 getVotes (key)
 

Function: getVotes(key)


Returns a listitem votes as a integer.

 
 select (...)
 

Function: select(selected)


Sets the listitem's selected status.
 
 isSelected ()
 

Function: isSelected()


Returns the listitem's selected status.
 
 setInfo (...)
 

Function: setInfo(type, infoLabels)


Sets the listitem's infoLabels.
 
 setCast (...)
 

Function: setCast(actors)


Set cast including thumbnails
 
 setAvailableFanart (...)
 

Function: setAvailableFanart(images)


Set available images (needed for video scrapers)
 
 addAvailableArtwork (...)
 

Function: addAvailableArtwork(images)


Add an image to available artworks (needed for video scrapers)
 
 addStreamInfo (...)
 

Function: addStreamInfo(type, values)


Add a stream with details.
 
 addContextMenuItems (...)
 

Function: addContextMenuItems([(label, action),*])


Adds item(s) to the context menu for media lists.
 
 setProperty (...)
 

Function: setProperty(key, value)


Sets a listitem property, similar to an infolabel.
 
 setProperties (...)
 

Function: setProperties(values)


Sets multiple properties for listitem's
 
 getProperty (...)
 

Function: getProperty(key)


Returns a listitem property as a string, similar to an infolabel.
 
 setPath (...)
 

Function: setPath(path)


Sets the listitem's path.
 
 setMimeType (...)
 

Function: setMimeType(mimetype)


Sets the listitem's mimetype if known.
 
 setContentLookup (...)
 

Function: setContentLookup(enable)


Enable or disable content lookup for item.
 
 setSubtitles (...)
 

Function: setSubtitles(subtitleFiles)


Sets subtitles for this listitem.
 
 getPath ()
 

Function: getPath()


Returns the path of this listitem.
 
 getVideoInfoTag ()
 

Function: getVideoInfoTag()


Returns the VideoInfoTag for this item.
 
 getMusicInfoTag ()
 

Function: getMusicInfoTag()


Returns the MusicInfoTag for this item.
 
 getPictureInfoTag ()
 

Function: getPictureInfoTag()


Returns the InfoTagPicture for this item.
 
 getGameInfoTag ()
 

Function: getGameInfoTag()


Returns the InfoTagGame for this item.
 
- Public Member Functions inherited from XBMCAddon::AddonClass
 AddonClass ()
 
virtual ~AddonClass ()
 
const char * GetClassname () const
 
LanguageHookGetLanguageHook ()
 
bool isDeallocating ()
 
void Release () const
 
void Acquire () const
 

Additional Inherited Members

- Static Public Member Functions inherited from XBMCAddon::AddonClass
static short getNumAddonClasses ()
 
- Protected Member Functions inherited from XBMCAddon::AddonClass
virtual void deallocating ()
 
- Static Protected Member Functions inherited from XBMCAddon::AddonClass
static short getNextClassIndex ()
 
- Protected Attributes inherited from XBMCAddon::AddonClass
LanguageHooklanguageHook
 

The documentation for this class was generated from the following files: