Kodi Development  20.0
for Binary and Script based Add-Ons
CListItem

Inherits CAddonGUIControlBase.

Public Member Functions

 CListItem (const std::string &label="", const std::string &label2="", const std::string &path="")
 Class constructor with parameters. More...
 
 CListItem (KODI_GUI_LISTITEM_HANDLE listItemHandle)
 
std::string GetArt (const std::string &type)
 Sets the listitem's art. More...
 
std::string GetLabel ()
 Returns the listitem label. More...
 
std::string GetLabel2 ()
 Returns the second listitem label. More...
 
std::string GetPath ()
 Returns the path / filename of this listitem. More...
 
std::string GetProperty (const std::string &key)
 Returns a listitem property as a string, similar to an infolabel. More...
 
bool IsSelected ()
 Returns the listitem's selected status. More...
 
void Select (bool selected)
 To control selection of item in list (also multiple selection, in list on serveral items possible). More...
 
void SetArt (const std::string &type, const std::string &url)
 Sets the listitem's art. More...
 
void SetLabel (const std::string &label)
 Sets the listitem label. More...
 
void SetLabel2 (const std::string &label)
 Sets the listitem's label2. More...
 
void SetPath (const std::string &path)
 Sets the listitem's path. More...
 
void SetProperty (const std::string &key, const std::string &value)
 Sets a listitem property, similar to an infolabel. More...
 
 ~CListItem () override
 Class destructor. More...
 
- Public Member Functions inherited from CAddonGUIControlBase
KODI_GUI_LISTITEM_HANDLE GetControlHandle () const
 

Additional Inherited Members

- Protected Member Functions inherited from CAddonGUIControlBase
 CAddonGUIControlBase (CAddonGUIControlBase *window)
 
- Protected Attributes inherited from CAddonGUIControlBase
KODI_GUI_LISTITEM_HANDLE m_controlHandle
 
AddonToKodiFuncTable_Addonm_interface
 
CAddonGUIControlBasem_Window
 

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