![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class to manage all available and activated add-ons and to release their types to the outside for selection. More...
#include <ExtsMimeSupportList.h>
Classes | |
struct | SupportValue |
Structure to store information about supported part. More... | |
struct | SupportValues |
Structure to store available data for related addon. More... | |
Public Types | |
enum class | FilterSelect { all , hasTags , hasTracks } |
Filter selection values. More... | |
Public Member Functions | |
CExtsMimeSupportList (ADDON::CAddonMgr &addonMgr) | |
~CExtsMimeSupportList () | |
std::vector< SupportValues > | GetSupportedAddonInfos (FilterSelect select) |
Get list of all by audiodecoder supported parts. | |
bool | IsExtensionSupported (const std::string &ext) |
To query the desired file extension is supported in it. | |
std::vector< std::pair< ADDON::AddonType, std::shared_ptr< ADDON::CAddonInfo > > > | GetExtensionSupportedAddonInfos (const std::string &ext, FilterSelect select) |
To get a list of all compatible audio decoder add-ons for the file extension. | |
bool | IsMimetypeSupported (const std::string &mimetype) |
To query the desired file mimetype is supported in it. | |
std::vector< std::pair< ADDON::AddonType, std::shared_ptr< ADDON::CAddonInfo > > > | GetMimetypeSupportedAddonInfos (const std::string &mimetype, FilterSelect select) |
To get a list of all compatible audio decoder add-ons for the mimetype. | |
std::vector< KODI::ADDONS::AddonSupportEntry > | GetSupportedExtsAndMimeTypes (const std::string &addonId) override |
To give all file extensions and MIME types supported by the addon. | |
![]() | |
IAddonSupportList ()=default | |
virtual | ~IAddonSupportList ()=default |
Protected Member Functions | |
void | Update (const std::string &id) |
void | OnEvent (const ADDON::AddonEvent &event) |
Static Protected Member Functions | |
static SupportValues | ScanAddonProperties (ADDON::AddonType type, const std::shared_ptr< ADDON::CAddonInfo > &addonInfo) |
Protected Attributes | |
CCriticalSection | m_critSection |
std::vector< SupportValues > | m_supportedList |
ADDON::CAddonMgr & | m_addonMgr |
Class to manage all available and activated add-ons and to release their types to the outside for selection.
|
strong |
CExtsMimeSupportList::CExtsMimeSupportList | ( | ADDON::CAddonMgr & | addonMgr | ) |
CExtsMimeSupportList::~CExtsMimeSupportList | ( | ) |
std::vector< std::pair< AddonType, std::shared_ptr< ADDON::CAddonInfo > > > CExtsMimeSupportList::GetExtensionSupportedAddonInfos | ( | const std::string & | ext, |
FilterSelect | select ) |
To get a list of all compatible audio decoder add-ons for the file extension.
[in] | ext | Extension name to check |
[in] | select | To filter the listed information by type |
std::vector< std::pair< AddonType, std::shared_ptr< CAddonInfo > > > CExtsMimeSupportList::GetMimetypeSupportedAddonInfos | ( | const std::string & | mimetype, |
FilterSelect | select ) |
To get a list of all compatible audio decoder add-ons for the mimetype.
[in] | mimetype | Mimetype name to check |
[in] | select | To filter the listed information by type |
std::vector< CExtsMimeSupportList::SupportValues > CExtsMimeSupportList::GetSupportedAddonInfos | ( | FilterSelect | select | ) |
Get list of all by audiodecoder supported parts.
Thought to use on planned new window about management about supported extensions and mimetypes in Kodi and to allow edit by user to enable or disable corresponding parts.
This function is also used to notify Kodi supported formats and to allow playback.
[in] | select | To filter the listed information by type |
|
overridevirtual |
To give all file extensions and MIME types supported by the addon.
[in] | addonId | Identifier about wanted addon |
Implements KODI::ADDONS::IAddonSupportList.
bool CExtsMimeSupportList::IsExtensionSupported | ( | const std::string & | ext | ) |
To query the desired file extension is supported in it.
[in] | ext | Extension name to check |
bool CExtsMimeSupportList::IsMimetypeSupported | ( | const std::string & | mimetype | ) |
To query the desired file mimetype is supported in it.
[in] | mimetype | Mimetype name to check |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |