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 | 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. | |
bool | CanOperateExtension (const std::string &path) const |
Returns true if related provider can operate related file. | |
CFileExtensionProvider::CFileExtensionProvider | ( | ADDON::CAddonMgr & | addonManager | ) |
CFileExtensionProvider::~CFileExtensionProvider | ( | ) |
bool CFileExtensionProvider::CanOperateExtension | ( | const std::string & | path | ) | const |
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::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.