![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <DirectoryProvider.h>
Public Types | |
enum | UpdateState { OK , INVALIDATED , DONE } |
Public Member Functions | |
CDirectoryProvider (const TiXmlElement *element, int parentID) | |
~CDirectoryProvider () override | |
bool | Update (bool forceRefresh) override |
Update the list content. More... | |
void | Announce (ANNOUNCEMENT::AnnouncementFlag flag, const char *sender, const char *message, const CVariant &data) override |
void | Fetch (std::vector< CGUIListItemPtr > &items) override |
Fetch the current list of items. More... | |
void | Reset () override |
Reset the current list of items. Derived classes may choose to ignore this. More... | |
bool | OnClick (const CGUIListItemPtr &item) override |
Click event on an item. More... | |
bool | OnInfo (const CGUIListItemPtr &item) override |
Open the info dialog for an item provided by this IListProvider. More... | |
bool | OnContextMenu (const CGUIListItemPtr &item) override |
Open the context menu for an item provided by this IListProvider. More... | |
bool | IsUpdating () const override |
Check whether the list provider is updating content. More... | |
void | OnJobComplete (unsigned int jobID, bool success, CJob *job) override |
The callback used when a job completes. More... | |
![]() | |
IListProvider (int parentID) | |
virtual | ~IListProvider ()=default |
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... | |
![]() | |
virtual | ~IJobCallback ()=default |
Destructor for job call back objects. More... | |
virtual void | OnJobProgress (unsigned int jobID, unsigned int progress, unsigned int total, const CJob *job) |
An optional callback function that a job may call while processing. More... | |
![]() | |
IAnnouncer ()=default | |
virtual | ~IAnnouncer ()=default |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
int | m_parentID |
CDirectoryProvider::CDirectoryProvider | ( | const TiXmlElement * | element, |
int | parentID | ||
) |
|
override |
|
overridevirtual |
Implements ANNOUNCEMENT::IAnnouncer.
|
overridevirtual |
Fetch the current list of items.
items | [out] the list to be filled. |
Implements IListProvider.
|
overridevirtual |
Check whether the list provider is updating content.
Reimplemented from IListProvider.
|
overridevirtual |
Click event on an item.
item | the item that was clicked. |
Implements IListProvider.
|
overridevirtual |
Open the context menu for an item provided by this IListProvider.
item | the item that was clicked. |
Implements IListProvider.
|
overridevirtual |
Open the info dialog for an item provided by this IListProvider.
item | the item that was clicked. |
Implements IListProvider.
|
overridevirtual |
The callback used when a job completes.
OnJobComplete is called at the completion of the job's DoWork() function, and is used to return information to the caller on the result of the job. On returning form this function the CJobManager will destroy this job.
jobID | the unique id of the job (as retrieved from CJobManager::AddJob) |
success | the result from the DoWork call |
job | the job that has been processed. The job will be destroyed after this function returns |
Implements IJobCallback.
Reset the current list of items. Derived classes may choose to ignore this.
Reimplemented from IListProvider.
|
overridevirtual |
Update the list content.
Implements IListProvider.