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" 32 enum class InfoTagType
66 std::unique_ptr<IListProvider> Clone()
override;
67 bool Update(
bool forceRefresh)
override;
68 void Announce(ANNOUNCEMENT::AnnouncementFlag flag,
69 const std::string& sender,
70 const std::string& message,
72 void Fetch(std::vector<CGUIListItemPtr> &items)
override;
73 void Reset()
override;
74 bool OnClick(
const CGUIListItemPtr &item)
override;
75 bool OnPlay(
const CGUIListItemPtr& item)
override;
76 bool OnInfo(
const std::shared_ptr<CFileItem>& item);
77 bool OnContextMenu(
const std::shared_ptr<CFileItem>& item);
78 bool OnInfo(
const CGUIListItemPtr &item)
override;
79 bool OnContextMenu(
const CGUIListItemPtr &item)
override;
80 bool IsUpdating()
const override;
81 void FreeResources(
bool immediately)
override;
84 void OnJobComplete(
unsigned int jobID,
bool success,
CJob *job)
override;
86 UpdateState m_updateState = OK;
87 unsigned int m_jobID = 0;
94 std::string m_currentUrl;
95 std::string m_currentTarget;
97 unsigned int m_currentLimit{0};
98 BrowseMode m_currentBrowse{BrowseMode::AUTO};
99 std::vector<CGUIStaticItemPtr> m_items;
100 std::vector<InfoTagType> m_itemTypes;
101 mutable CCriticalSection m_section;
109 void OnPVRManagerEvent(
const PVR::PVREvent& event);
111 std::string GetTarget(
const CFileItem& item)
const;
113 CCriticalSection m_subscriptionSection;
114 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:41
Definition: Application.h:74
Definition: AddonEvents.h:18
Definition: FavouritesService.h:41
Callback interface for asynchronous jobs.
Definition: Job.h:31
Definition: SortUtils.h:176
Represents a file on a share.
Definition: FileItem.h:102