kodi
|
Public Member Functions | |
CStaticListProvider (const TiXmlElement *element, int parentID) | |
CStaticListProvider (const std::vector< CGUIStaticItemPtr > &items) | |
CStaticListProvider (const CStaticListProvider &other) | |
std::unique_ptr< IListProvider > | Clone () override |
Create an instance of the derived class. Allows for polymorphic copies. | |
bool | Update (bool forceRefresh) override |
Update the list content. More... | |
void | Fetch (std::vector< std::shared_ptr< CGUIListItem >> &items) override |
Fetch the current list of items. More... | |
bool | OnClick (const std::shared_ptr< CGUIListItem > &item) override |
Click event on an item. More... | |
bool | OnInfo (const std::shared_ptr< CGUIListItem > &item) override |
Open the info dialog for an item provided by this IListProvider. More... | |
bool | OnContextMenu (const std::shared_ptr< CGUIListItem > &item) override |
Open the context menu for an item provided by this IListProvider. More... | |
void | SetDefaultItem (int item, bool always) override |
Set the default item to focus. For backwards compatibility. More... | |
int | GetDefaultItem () const override |
The default item to focus. More... | |
bool | AlwaysFocusDefaultItem () const override |
Whether to always focus the default item. More... | |
![]() | |
IListProvider (int parentID) | |
IListProvider (const IListProvider &other)=default | |
virtual bool | IsUpdating () const |
Check whether the list provider is updating content. More... | |
virtual void | Reset () |
Reset the current list of items. Derived classes may choose to ignore this. | |
virtual void | FreeResources (bool immediately) |
Free all GUI resources allocated by the items. More... | |
virtual bool | OnPlay (const std::shared_ptr< CGUIListItem > &item) |
Play event on an item. More... | |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< IListProvider > | Create (const TiXmlNode *parent, int parentID) |
Factory to create list providers. More... | |
static std::unique_ptr< IListProvider > | CreateSingle (const TiXmlNode *content, int parentID) |
Factory to create list providers. Cannot create a multi-provider. More... | |
![]() | |
int | m_parentID |
|
overridevirtual |
Whether to always focus the default item.
Reimplemented from IListProvider.
|
overridevirtual |
Fetch the current list of items.
items | [out] the list to be filled. |
Implements IListProvider.
|
overridevirtual |
The default item to focus.
Reimplemented from IListProvider.
|
overridevirtual |
Click event on an item.
item | the item that was clicked. |
Implements IListProvider.
|
inlineoverridevirtual |
Open the context menu for an item provided by this IListProvider.
item | the item that was clicked. |
Implements IListProvider.
|
inlineoverridevirtual |
Open the info dialog for an item provided by this IListProvider.
item | the item that was clicked. |
Implements IListProvider.
|
overridevirtual |
Set the default item to focus. For backwards compatibility.
item | the item to focus. |
always | whether this item should always be used on first focus. |
Reimplemented from IListProvider.
|
overridevirtual |
Update the list content.
Implements IListProvider.