11 #include "ContextMenuItem.h" 12 #include "threads/CriticalSection.h" 26 struct PVRContextMenuEvent;
29 using ContextMenuView = std::vector<std::shared_ptr<const IContextMenuItem>>;
43 bool HasItems(
const CFileItem& fileItem)
const;
46 bool HasAddonItems(
const CFileItem& fileItem)
const;
58 void ReloadAddonItems();
65 mutable CCriticalSection m_criticalSection;
66 std::vector<CContextMenuItem> m_addonItems;
67 std::vector<std::shared_ptr<IContextMenuItem>> m_items;
75 bool HasAnyMenuItemsFor(
const std::shared_ptr<CFileItem>& fileItem);
80 bool ShowFor(
const std::shared_ptr<CFileItem>& fileItem,
86 bool LoopFrom(
const IContextMenuItem& menu,
const std::shared_ptr<CFileItem>& fileItem);
Class - CAddonMgr Holds references to all addons, enabled or otherwise.
Definition: AddonManager.h:79
Definition: ContextMenuManager.h:24
Definition: AddonEvents.h:18
Represents a file on a share.
Definition: FileItem.h:102