Kodi Development  19.0
for Binary and Script based Add-Ons
list_item.h
1 /*
2  * Copyright (C) 2005-2020 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 #ifndef C_API_GUI_LIST_ITEM_H
12 #define C_API_GUI_LIST_ITEM_H
13 
14 #include "definitions.h"
15 
16 #ifdef __cplusplus
17 extern "C"
18 {
19 #endif /* __cplusplus */
20 
22  {
23  KODI_GUI_LISTITEM_HANDLE(*create)
24  (KODI_HANDLE kodiBase,
25  const char* label,
26  const char* label2,
27  const char* path);
28  void (*destroy)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
29 
30  char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
31  void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* label);
32  char* (*get_label2)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
33  void (*set_label2)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* label);
34  char* (*get_art)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* type);
35  void (*set_art)(KODI_HANDLE kodiBase,
36  KODI_GUI_LISTITEM_HANDLE handle,
37  const char* type,
38  const char* image);
39  char* (*get_path)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
40  void (*set_path)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* path);
41  char* (*get_property)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* key);
42  void (*set_property)(KODI_HANDLE kodiBase,
43  KODI_GUI_LISTITEM_HANDLE handle,
44  const char* key,
45  const char* value);
46  void (*select)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, bool select);
47  bool (*is_selected)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
49 
50 #ifdef __cplusplus
51 } /* extern "C" */
52 #endif /* __cplusplus */
53 
54 #endif /* !C_API_GUI_LIST_ITEM_H */
AddonToKodiFuncTable_kodi_gui_listItem
Definition: list_item.h:22