Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::ADDONS::IAddonSupportCheck Class Reference

Parent class to ask addons for support. More...

#include <IAddonSupportCheck.h>

Inheritance diagram for KODI::ADDONS::IAddonSupportCheck:
KODI::ADDONS::CAudioDecoder KODI::ADDONS::CImageDecoder

Public Member Functions

 IAddonSupportCheck ()=default
 
virtual ~IAddonSupportCheck ()=default
 
virtual bool SupportsFile (const std::string &filename)
 Function to query the respective add-ons used for the support of the desired file.
 

Detailed Description

Parent class to ask addons for support.

This one can be used as a parent on the respective Kodi-sided addon class, this makes it easier to query for the desired support without using the class's own function definition.

Constructor & Destructor Documentation

◆ IAddonSupportCheck()

KODI::ADDONS::IAddonSupportCheck::IAddonSupportCheck ( )
default

◆ ~IAddonSupportCheck()

virtual KODI::ADDONS::IAddonSupportCheck::~IAddonSupportCheck ( )
virtualdefault

Member Function Documentation

◆ SupportsFile()

virtual bool KODI::ADDONS::IAddonSupportCheck::SupportsFile ( const std::string & filename)
inlinevirtual

Function to query the respective add-ons used for the support of the desired file.

Parameters
[in]filenameFile which is queried for addon support
Returns
True if addon supports the desired file, false if not
Note
Is set here with true as default and not with "= 0" in order to have class expandable and perhaps to be able to insert other query functions in the future.

Reimplemented in KODI::ADDONS::CAudioDecoder, and KODI::ADDONS::CImageDecoder.


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