|
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
An interface for providing lists to UI containers. More...
#include <IListProvider.h>
Public Member Functions | |
| IListProvider (int parentID) | |
| virtual | ~IListProvider ()=default |
| virtual bool | Update (bool forceRefresh)=0 |
| Update the list content. More... | |
| virtual void | Fetch (std::vector< CGUIListItemPtr > &items)=0 |
| Fetch the current list of items. More... | |
| 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. More... | |
| virtual bool | OnClick (const CGUIListItemPtr &item)=0 |
| Click event on an item. More... | |
| virtual bool | OnInfo (const CGUIListItemPtr &item)=0 |
| Open the info dialog for an item provided by this IListProvider. More... | |
| virtual bool | OnContextMenu (const CGUIListItemPtr &item)=0 |
| Open the context menu for an item provided by this IListProvider. More... | |
| virtual void | SetDefaultItem (int item, bool always) |
| Set the default item to focus. For backwards compatibility. More... | |
| virtual int | GetDefaultItem () const |
| The default item to focus. More... | |
| virtual bool | AlwaysFocusDefaultItem () const |
| Whether to always focus the default item. More... | |
Static Public Member Functions | |
| static IListProvider * | Create (const TiXmlNode *parent, int parentID) |
| Factory to create list providers. More... | |
| static IListProvider * | CreateSingle (const TiXmlNode *content, int parentID) |
| Factory to create list providers. Cannot create a multi-provider. More... | |
Protected Attributes | |
| int | m_parentID |
An interface for providing lists to UI containers.
|
inlineexplicit |
|
virtualdefault |
|
inlinevirtual |
Whether to always focus the default item.
Reimplemented in CStaticListProvider.
|
static |
Factory to create list providers.
| parent | a parent TiXmlNode for the container. |
| parentID | id of parent window for context. |
|
static |
Factory to create list providers. Cannot create a multi-provider.
| content | the TiXmlNode for the content to create. |
| parentID | id of parent window for context. |
|
pure virtual |
Fetch the current list of items.
| items | [out] the list to be filled. |
Implemented in CDirectoryProvider, CMultiProvider, and CStaticListProvider.
|
inlinevirtual |
The default item to focus.
Reimplemented in CStaticListProvider.
|
inlinevirtual |
Check whether the list provider is updating content.
Reimplemented in CDirectoryProvider, and CMultiProvider.
|
pure virtual |
Click event on an item.
| item | the item that was clicked. |
Implemented in CDirectoryProvider, CMultiProvider, and CStaticListProvider.
|
pure virtual |
Open the context menu for an item provided by this IListProvider.
| item | the item that was clicked. |
Implemented in CDirectoryProvider, CMultiProvider, and CStaticListProvider.
|
pure virtual |
Open the info dialog for an item provided by this IListProvider.
| item | the item that was clicked. |
Implemented in CDirectoryProvider, CMultiProvider, and CStaticListProvider.
Reset the current list of items. Derived classes may choose to ignore this.
Reimplemented in CDirectoryProvider, and CMultiProvider.
|
inlinevirtual |
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 in CStaticListProvider.
|
pure virtual |
Update the list content.
Implemented in CDirectoryProvider, CMultiProvider, and CStaticListProvider.
|
protected |