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

#include <ContextMenuItem.h>

Inheritance diagram for CContextMenuItem:
IContextMenuItem

Public Member Functions

 CContextMenuItem ()=default
 
std::string GetLabel (const CFileItem &item) const override
 
bool IsVisible (const CFileItem &item) const override
 
bool IsParentOf (const CContextMenuItem &menuItem) const
 
bool IsGroup () const override
 
bool HasParent () const override
 
bool Execute (const std::shared_ptr< CFileItem > &item) const override
 
bool operator== (const CContextMenuItem &other) const
 
std::string ToString () const
 
- Public Member Functions inherited from IContextMenuItem
virtual ~IContextMenuItem ()=default
 

Static Public Member Functions

static CContextMenuItem CreateGroup (const std::string &label, const std::string &parent, const std::string &groupId, const std::string &addonId)
 
static CContextMenuItem CreateItem (const std::string &label, const std::string &parent, const std::string &library, const std::string &condition, const std::string &addonId, const std::vector< std::string > &args=std::vector< std::string >())
 

Friends

class ADDON::CContextMenuAddon
 

Constructor & Destructor Documentation

◆ CContextMenuItem()

CContextMenuItem::CContextMenuItem ( )
default

Member Function Documentation

◆ CreateGroup()

CContextMenuItem CContextMenuItem::CreateGroup ( const std::string & label,
const std::string & parent,
const std::string & groupId,
const std::string & addonId )
static

◆ CreateItem()

CContextMenuItem CContextMenuItem::CreateItem ( const std::string & label,
const std::string & parent,
const std::string & library,
const std::string & condition,
const std::string & addonId,
const std::vector< std::string > & args = std::vector<std::string>() )
static

◆ Execute()

bool CContextMenuItem::Execute ( const std::shared_ptr< CFileItem > & item) const
overridevirtual

Implements IContextMenuItem.

◆ GetLabel()

std::string CContextMenuItem::GetLabel ( const CFileItem & item) const
inlineoverridevirtual

Implements IContextMenuItem.

◆ HasParent()

bool CContextMenuItem::HasParent ( ) const
overridevirtual

Reimplemented from IContextMenuItem.

◆ IsGroup()

bool CContextMenuItem::IsGroup ( ) const
overridevirtual

Reimplemented from IContextMenuItem.

◆ IsParentOf()

bool CContextMenuItem::IsParentOf ( const CContextMenuItem & menuItem) const

◆ IsVisible()

bool CContextMenuItem::IsVisible ( const CFileItem & item) const
overridevirtual

Implements IContextMenuItem.

◆ operator==()

bool CContextMenuItem::operator== ( const CContextMenuItem & other) const

◆ ToString()

std::string CContextMenuItem::ToString ( ) const

Friends And Related Symbol Documentation

◆ ADDON::CContextMenuAddon

friend class ADDON::CContextMenuAddon
friend

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