Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CContextMenuManager Class Reference

#include <ContextMenuManager.h>

Public Member Functions

 CContextMenuManager (ADDON::CAddonMgr &addonMgr)
 
 ~CContextMenuManager ()
 
void Init ()
 
void Deinit ()
 
bool HasItems (const CFileItem &fileItem, const CContextMenuItem &root) const
 Checks whether context menu items are available for a file item.
 
ContextMenuView GetItems (const CFileItem &fileItem, const CContextMenuItem &root) const
 Gets the context menu items available for a file item.
 
bool HasAddonItems (const CFileItem &fileItem, const CContextMenuItem &root) const
 Checks whether addon context menu items are available for a file item.
 
ContextMenuView GetAddonItems (const CFileItem &fileItem, const CContextMenuItem &root) const
 Gets the addon context menu items available for a file item.
 

Static Public Attributes

static const CContextMenuItem MAIN = CContextMenuItem::CreateGroup("", "", "kodi.core.main", "")
 
static const CContextMenuItem MANAGE = CContextMenuItem::CreateGroup("", "", "kodi.core.manage", "")
 

Constructor & Destructor Documentation

◆ CContextMenuManager()

CContextMenuManager::CContextMenuManager ( ADDON::CAddonMgr & addonMgr)
explicit

◆ ~CContextMenuManager()

CContextMenuManager::~CContextMenuManager ( )

Member Function Documentation

◆ Deinit()

void CContextMenuManager::Deinit ( )

◆ GetAddonItems()

ContextMenuView CContextMenuManager::GetAddonItems ( const CFileItem & fileItem,
const CContextMenuItem & root ) const

Gets the addon context menu items available for a file item.

Parameters
fileItemthe file item
rootthe root context menu item
Returns
the items
See also
ContextMenuView

◆ GetItems()

ContextMenuView CContextMenuManager::GetItems ( const CFileItem & fileItem,
const CContextMenuItem & root ) const

Gets the context menu items available for a file item.

Parameters
fileItemthe file item
rootthe root context menu item
Returns
the items
See also
ContextMenuView
Todo
implement group support

◆ HasAddonItems()

bool CContextMenuManager::HasAddonItems ( const CFileItem & fileItem,
const CContextMenuItem & root ) const

Checks whether addon context menu items are available for a file item.

Parameters
fileItemthe file item
rootthe root context menu item
Returns
true if any items are present, false otherwise

◆ HasItems()

bool CContextMenuManager::HasItems ( const CFileItem & fileItem,
const CContextMenuItem & root ) const

Checks whether context menu items are available for a file item.

Parameters
fileItemthe file item
rootthe root context menu item
Returns
true if any items are present, false otherwise
Todo
implement group support

◆ Init()

void CContextMenuManager::Init ( )

Member Data Documentation

◆ MAIN

const CContextMenuItem CContextMenuManager::MAIN = CContextMenuItem::CreateGroup("", "", "kodi.core.main", "")
static

◆ MANAGE

const CContextMenuItem CContextMenuManager::MANAGE = CContextMenuItem::CreateGroup("", "", "kodi.core.manage", "")
static

The documentation for this class was generated from the following files: