11 #include "IListProvider.h" 12 #include "addons/AddonEvents.h" 13 #include "addons/RepositoryUpdater.h" 14 #include "favourites/FavouritesService.h" 16 #include "interfaces/IAnnouncer.h" 17 #include "threads/CriticalSection.h" 18 #include "utils/Job.h" 31 enum class InfoTagType
58 std::unique_ptr<IListProvider> Clone()
override;
59 bool Update(
bool forceRefresh)
override;
60 void Announce(ANNOUNCEMENT::AnnouncementFlag flag,
61 const std::string& sender,
62 const std::string& message,
64 void Fetch(std::vector<CGUIListItemPtr> &items)
override;
65 void Reset()
override;
66 bool OnClick(
const CGUIListItemPtr &item)
override;
67 bool OnPlay(
const CGUIListItemPtr& item)
override;
68 bool OnInfo(
const CGUIListItemPtr &item)
override;
69 bool OnContextMenu(
const CGUIListItemPtr &item)
override;
70 bool IsUpdating()
const override;
71 void FreeResources(
bool immediately)
override;
74 void OnJobComplete(
unsigned int jobID,
bool success,
CJob *job)
override;
76 UpdateState m_updateState;
83 std::string m_currentUrl;
84 std::string m_currentTarget;
86 unsigned int m_currentLimit;
87 std::vector<CGUIStaticItemPtr> m_items;
88 std::vector<InfoTagType> m_itemTypes;
89 mutable CCriticalSection m_section;
96 void OnPVRManagerEvent(
const PVR::PVREvent& event);
98 std::string GetTarget(
const CFileItem& item)
const;
100 CCriticalSection m_subscriptionSection;
101 bool m_isSubscribed{
false};
An interface for providing lists to UI containers.
Definition: IListProvider.h:22
Base class for jobs that are executed asynchronously.
Definition: Job.h:109
Definition: ContextMenuManager.h:24
Definition: GUIInfoLabel.h:31
Definition: IAnnouncer.h:70
Definition: RepositoryUpdater.h:72
Definition: DirectoryProvider.h:40
Definition: Application.h:74
Definition: AddonEvents.h:18
Definition: FavouritesService.h:36
Callback interface for asynchronous jobs.
Definition: Job.h:31
Definition: SortUtils.h:176
Represents a file on a share.
Definition: FileItem.h:102