An interface for providing lists to UI containers.
More...
#include <IListProvider.h>
|
| IListProvider (int parentID) |
|
| IListProvider (const IListProvider &other)=default |
|
virtual std::unique_ptr< IListProvider > | Clone ()=0 |
| Create an instance of the derived class. Allows for polymorphic copies.
|
|
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.
|
|
virtual void | FreeResources (bool immediately) |
| Free all GUI resources allocated by the items. More...
|
|
virtual bool | OnClick (const CGUIListItemPtr &item)=0 |
| Click event on an item. More...
|
|
virtual bool | OnPlay (const CGUIListItemPtr &item) |
| Play 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 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...
|
|
An interface for providing lists to UI containers.
◆ AlwaysFocusDefaultItem()
virtual bool IListProvider::AlwaysFocusDefaultItem |
( |
| ) |
const |
|
inlinevirtual |
◆ Create()
std::unique_ptr< IListProvider > IListProvider::Create |
( |
const TiXmlNode * |
parent, |
|
|
int |
parentID |
|
) |
| |
|
static |
Factory to create list providers.
- Parameters
-
parent | a parent TiXmlNode for the container. |
parentID | id of parent window for context. |
- Returns
- the list provider, empty pointer if none.
◆ CreateSingle()
std::unique_ptr< IListProvider > IListProvider::CreateSingle |
( |
const TiXmlNode * |
content, |
|
|
int |
parentID |
|
) |
| |
|
static |
Factory to create list providers. Cannot create a multi-provider.
- Parameters
-
content | the TiXmlNode for the content to create. |
parentID | id of parent window for context. |
- Returns
- the list provider, empty pointer if none.
◆ Fetch()
virtual void IListProvider::Fetch |
( |
std::vector< CGUIListItemPtr > & |
items | ) |
|
|
pure virtual |
◆ FreeResources()
virtual void IListProvider::FreeResources |
( |
bool |
immediately | ) |
|
|
inlinevirtual |
Free all GUI resources allocated by the items.
- Parameters
-
immediately | true to free resources immediately, free resources async later otherwise. |
Reimplemented in CDirectoryProvider.
◆ GetDefaultItem()
virtual int IListProvider::GetDefaultItem |
( |
| ) |
const |
|
inlinevirtual |
◆ IsUpdating()
virtual bool IListProvider::IsUpdating |
( |
| ) |
const |
|
inlinevirtual |
Check whether the list provider is updating content.
- Returns
- true if in the processing of updating, false otherwise.
Reimplemented in CDirectoryProvider, and CMultiProvider.
◆ OnClick()
virtual bool IListProvider::OnClick |
( |
const CGUIListItemPtr & |
item | ) |
|
|
pure virtual |
◆ OnContextMenu()
virtual bool IListProvider::OnContextMenu |
( |
const CGUIListItemPtr & |
item | ) |
|
|
pure virtual |
◆ OnInfo()
virtual bool IListProvider::OnInfo |
( |
const CGUIListItemPtr & |
item | ) |
|
|
pure virtual |
◆ OnPlay()
virtual bool IListProvider::OnPlay |
( |
const CGUIListItemPtr & |
item | ) |
|
|
inlinevirtual |
Play event on an item.
- Parameters
-
- Returns
- true if the event was handled, false otherwise.
Reimplemented in CDirectoryProvider.
◆ SetDefaultItem()
virtual void IListProvider::SetDefaultItem |
( |
int |
item, |
|
|
bool |
always |
|
) |
| |
|
inlinevirtual |
◆ Update()
virtual bool IListProvider::Update |
( |
bool |
forceRefresh | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: