|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <URL.h>
Public Member Functions | |
| CURL ()=default | |
| CURL (std::string strURL) | |
| bool | operator== (const CURL &url) const |
| void | Reset () |
| void | Parse (std::string strURL) |
| void | SetFileName (std::string strFileName) |
| void | SetHostName (std::string strHostName) |
| void | SetUserName (std::string strUserName) |
| void | SetDomain (std::string strDomain) |
| void | SetPassword (std::string strPassword) |
| void | SetProtocol (std::string strProtocol) |
| void | SetOptions (std::string strOptions) |
| void | SetProtocolOptions (std::string strOptions) |
| void | SetPort (int port) |
| bool | HasPort () const |
| int | GetPort () const |
| const std::string & | GetHostName () const |
| const std::string & | GetDomain () const |
| const std::string & | GetUserName () const |
| const std::string & | GetPassWord () const |
| const std::string & | GetFileName () const |
| const std::string & | GetProtocol () const |
| std::string | GetTranslatedProtocol () const |
| const std::string & | GetFileType () const |
| const std::string & | GetShareName () const |
| const std::string & | GetOptions () const |
| const std::string & | GetProtocolOptions () const |
| std::string | GetFileNameWithoutPath () const |
| char | GetDirectorySeparator () const |
| std::string | Get () const |
| std::string | GetWithoutOptions () const |
| std::string | GetWithoutUserDetails (bool redact=false) const |
| std::string | GetWithoutFilename () const |
| std::string | GetRedacted () const |
| bool | IsLocal () const |
| bool | IsLocalHost () const |
| bool | IsProtocol (std::string_view type) const |
| Check whether a URL is a given URL scheme. Comparison is case-insensitive as per RFC1738. | |
| bool | IsFileType (std::string_view type) const |
| Check whether a URL is a given filetype. Comparison is effectively case-insensitive as both the parameter and m_strFileType are lower-case. | |
| void | GetOptions (std::map< std::string, std::string > &options) const |
| bool | HasOption (const std::string &key) const |
| bool | GetOption (const std::string &key, std::string &value) const |
| std::string | GetOption (const std::string &key) const |
| void | SetOption (const std::string &key, const std::string &value) |
| void | RemoveOption (const std::string &key) |
| void | GetProtocolOptions (std::map< std::string, std::string > &options) const |
| bool | HasProtocolOption (const std::string &key) const |
| bool | GetProtocolOption (const std::string &key, std::string &value) const |
| std::string | GetProtocolOption (const std::string &key) const |
| void | SetProtocolOption (const std::string &key, const std::string &value) |
| void | RemoveProtocolOption (const std::string &key) |
Static Public Member Functions | |
| static std::string | GetRedacted (std::string path) |
| static bool | IsFileOnly (const std::string &url) |
| return true if there are no directories in the url. | |
| static bool | IsFullPath (const std::string &url) |
| return true if the url includes the full path | |
| static std::string | Decode (std::string_view strURLData) |
| static std::string | Encode (std::string_view strURLData) |
| static bool | IsProtocolEqual (const std::string &protocol, std::string_view type) |
| Check whether a URL protocol is a given URL scheme. Both parameters MUST be lower-case. Typically this would be called using the result of TranslateProtocol() which enforces this for protocol. | |
Friends | |
| bool | operator== (const CURL &url, const std::string_view str) |
|
default |
|
explicit |
|
static |
|
static |
| std::string CURL::Get | ( | ) | const |
| char CURL::GetDirectorySeparator | ( | ) | const |
|
inline |
|
inline |
| std::string CURL::GetFileNameWithoutPath | ( | ) | const |
|
inline |
|
inline |
| std::string CURL::GetOption | ( | const std::string & | key | ) | const |
| bool CURL::GetOption | ( | const std::string & | key, |
| std::string & | value | ||
| ) | const |
|
inline |
| void CURL::GetOptions | ( | std::map< std::string, std::string > & | options | ) | const |
|
inline |
|
inline |
|
inline |
| std::string CURL::GetProtocolOption | ( | const std::string & | key | ) | const |
| bool CURL::GetProtocolOption | ( | const std::string & | key, |
| std::string & | value | ||
| ) | const |
|
inline |
| void CURL::GetProtocolOptions | ( | std::map< std::string, std::string > & | options | ) | const |
| std::string CURL::GetRedacted | ( | ) | const |
|
static |
|
inline |
| std::string CURL::GetTranslatedProtocol | ( | ) | const |
|
inline |
| std::string CURL::GetWithoutFilename | ( | ) | const |
| std::string CURL::GetWithoutOptions | ( | ) | const |
| std::string CURL::GetWithoutUserDetails | ( | bool | redact = false | ) | const |
| bool CURL::HasOption | ( | const std::string & | key | ) | const |
|
inline |
| bool CURL::HasProtocolOption | ( | const std::string & | key | ) | const |
|
static |
return true if there are no directories in the url.
|
inline |
Check whether a URL is a given filetype. Comparison is effectively case-insensitive as both the parameter and m_strFileType are lower-case.
| type | a lower-case filetype, e.g. "mp3". |
|
static |
return true if the url includes the full path
| bool CURL::IsLocal | ( | ) | const |
| bool CURL::IsLocalHost | ( | ) | const |
|
inline |
Check whether a URL is a given URL scheme. Comparison is case-insensitive as per RFC1738.
| type | a lower-case scheme name, e.g. "smb". |
|
static |
Check whether a URL protocol is a given URL scheme. Both parameters MUST be lower-case. Typically this would be called using the result of TranslateProtocol() which enforces this for protocol.
| protocol | a lower-case scheme name, e.g. "ftp" |
| type | a lower-case scheme name, e.g. "smb". |
| void CURL::RemoveOption | ( | const std::string & | key | ) |
| void CURL::RemoveProtocolOption | ( | const std::string & | key | ) |
| void CURL::Reset | ( | ) |
|
inline |
| void CURL::SetFileName | ( | std::string | strFileName | ) |
|
inline |
| void CURL::SetOption | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
| void CURL::SetOptions | ( | std::string | strOptions | ) |
|
inline |
| void CURL::SetProtocol | ( | std::string | strProtocol | ) |
| void CURL::SetProtocolOption | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
| void CURL::SetProtocolOptions | ( | std::string | strOptions | ) |
|
inline |