|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <FileExtensionProvider.h>
Public Member Functions | |
| CFileExtensionProvider (ADDON::CAddonMgr &addonManager) | |
| ~CFileExtensionProvider () | |
| std::string | GetPictureExtensions () const |
| Returns a list of picture extensions. | |
| std::string | GetMusicExtensions () const |
| Returns a list of music extensions. | |
| std::string | GetVideoExtensions () const |
| Returns a list of video extensions. | |
| std::string | GetSubtitleExtensions () const |
| Returns a list of subtitle extensions. | |
| std::string | GetDiscStubExtensions () const |
| Returns a list of disc stub extensions. | |
| std::string | GetArchiveExtensions () const |
| Returns a list of archive extensions with a single dot (eg. .zip) | |
| std::string | GetCompoundArchiveExtensions () const |
| Returns a list of archive extensions with a multiple dots (eg. .tar.gz) | |
| std::string | GetFileFolderExtensions () const |
| Returns a file folder extensions. | |
| bool | EncodedHostName (const std::string &protocol) const |
| Returns whether a url protocol from add-ons use encoded hostnames. | |
Static Public Member Functions | |
| static bool | CanOperateExtension (const std::string &path) |
| Returns true if related provider can operate related file. | |
| CFileExtensionProvider::CFileExtensionProvider | ( | ADDON::CAddonMgr & | addonManager | ) |
| CFileExtensionProvider::~CFileExtensionProvider | ( | ) |
|
static |
Returns true if related provider can operate related file.
We expect that other addons can support the file, and return true if list empty.
Check all found addons about support of asked file.
If no file extensions present, mark it as not supported.
| bool CFileExtensionProvider::EncodedHostName | ( | const std::string & | protocol | ) | const |
Returns whether a url protocol from add-ons use encoded hostnames.
| std::string CFileExtensionProvider::GetArchiveExtensions | ( | ) | const |
Returns a list of archive extensions with a single dot (eg. .zip)
| std::string CFileExtensionProvider::GetCompoundArchiveExtensions | ( | ) | const |
Returns a list of archive extensions with a multiple dots (eg. .tar.gz)
| std::string CFileExtensionProvider::GetDiscStubExtensions | ( | ) | const |
Returns a list of disc stub extensions.
| std::string CFileExtensionProvider::GetFileFolderExtensions | ( | ) | const |
Returns a file folder extensions.
| std::string CFileExtensionProvider::GetMusicExtensions | ( | ) | const |
Returns a list of music extensions.
| std::string CFileExtensionProvider::GetPictureExtensions | ( | ) | const |
Returns a list of picture extensions.
| std::string CFileExtensionProvider::GetSubtitleExtensions | ( | ) | const |
Returns a list of subtitle extensions.
| std::string CFileExtensionProvider::GetVideoExtensions | ( | ) | const |
Returns a list of video extensions.