|
kodi
|


Public Member Functions | |
| CPVRProvider (int iUniqueId, int iClientId) | |
| CPVRProvider (const PVR_PROVIDER &provider, int iClientId) | |
| CPVRProvider (int iClientId, const std::string &addonProviderName, const std::string &addonIconPath, const std::string &addonThumbPath) | |
| bool | operator== (const CPVRProvider &right) const |
| bool | operator!= (const CPVRProvider &right) const |
| void | Serialize (CVariant &value) const override |
| int | GetDatabaseId () const |
| The database id of this provider. More... | |
| bool | SetDatabaseId (int iDatabaseId) |
| Set the database id of this provider. More... | |
| int | GetUniqueId () const |
| A unique identifier for this provider. More... | |
| int | GetClientId () const |
| std::string | GetName () const |
| bool | SetName (const std::string &iName) |
| Set the name of the provider. More... | |
| bool | HasType () const |
| Checks whether this provider has a known type. More... | |
| PVR_PROVIDER_TYPE | GetType () const |
| Gets the type of this provider. More... | |
| bool | SetType (PVR_PROVIDER_TYPE type) |
| Sets the type of this provider. More... | |
| std::string | GetIconPath () const |
| Get the path for this provider's icon. More... | |
| bool | SetIconPath (const std::string &strIconPath) |
| Set the path for this icon. More... | |
| std::string | GetClientIconPath () const |
| std::vector< std::string > | GetCountries () const |
| Get this provider's country codes (ISO 3166). More... | |
| bool | SetCountries (const std::vector< std::string > &countries) |
| Set the country codes for this provider. More... | |
| std::string | GetCountriesDBString () const |
| Get this provider's country codes (ISO 3166) as a string. More... | |
| bool | SetCountriesFromDBString (const std::string &strCountries) |
| Set the country codes for this provider from a string. More... | |
| std::vector< std::string > | GetLanguages () const |
| Get this provider's language codes (RFC 5646). More... | |
| bool | SetLanguages (const std::vector< std::string > &languages) |
| Set the language codes for this provider. More... | |
| std::string | GetLanguagesDBString () const |
| Get this provider's language codes (RFC 5646) as a string. More... | |
| bool | SetLanguagesFromDBString (const std::string &strLanguages) |
| Set the language codes for this provider from a string. More... | |
| bool | HasThumbPath () const |
| Get if this provider has a thumb image path. More... | |
| std::string | GetThumbPath () const |
| Get this provider's thumb image path. Note only PVR add-on providers will set this value. More... | |
| std::string | GetClientThumbPath () const |
| bool | IsClientProvider () const |
| Whether a provider is a default provider of a PVR Client add-on or not. More... | |
| bool | UpdateEntry (const std::shared_ptr< CPVRProvider > &fromProvider, ProviderUpdateMode updateMode) |
| updates this provider from the provided entry More... | |
| bool | Persist (bool updateRecord=false) |
| Persist this provider in the local database. More... | |
| bool | DeleteFromDatabase () |
| Delete this provider from the local database. More... | |
Static Public Attributes | |
| static const std::string | IMAGE_OWNER_PATTERN = "pvrprovider" |
| bool CPVRProvider::DeleteFromDatabase | ( | ) |
Delete this provider from the local database.
| std::string CPVRProvider::GetClientIconPath | ( | ) | const |
| int CPVRProvider::GetClientId | ( | ) | const |
| std::string CPVRProvider::GetClientThumbPath | ( | ) | const |
| std::vector< std::string > CPVRProvider::GetCountries | ( | ) | const |
Get this provider's country codes (ISO 3166).
| std::string CPVRProvider::GetCountriesDBString | ( | ) | const |
Get this provider's country codes (ISO 3166) as a string.
| int CPVRProvider::GetDatabaseId | ( | ) | const |
The database id of this provider.
A unique identifier for this provider. It can be used to find the same provider on this clients backend
| std::string CPVRProvider::GetIconPath | ( | ) | const |
Get the path for this provider's icon.
| std::vector< std::string > CPVRProvider::GetLanguages | ( | ) | const |
Get this provider's language codes (RFC 5646).
| std::string CPVRProvider::GetLanguagesDBString | ( | ) | const |
Get this provider's language codes (RFC 5646) as a string.
| std::string CPVRProvider::GetName | ( | ) | const |
| std::string CPVRProvider::GetThumbPath | ( | ) | const |
Get this provider's thumb image path. Note only PVR add-on providers will set this value.
| PVR_PROVIDER_TYPE CPVRProvider::GetType | ( | ) | const |
Gets the type of this provider.
| int CPVRProvider::GetUniqueId | ( | ) | const |
| bool CPVRProvider::HasThumbPath | ( | ) | const |
Get if this provider has a thumb image path.
|
inline |
Checks whether this provider has a known type.
|
inline |
Whether a provider is a default provider of a PVR Client add-on or not.
| bool CPVRProvider::Persist | ( | bool | updateRecord = false | ) |
Persist this provider in the local database.
| updateRecord | True if an existing record should be updated, false for an insert |
| bool CPVRProvider::SetCountries | ( | const std::vector< std::string > & | countries | ) |
Set the country codes for this provider.
| countries | The new ISO 3166 country codes for this provider. |
| bool CPVRProvider::SetCountriesFromDBString | ( | const std::string & | strCountries | ) |
Set the country codes for this provider from a string.
| strCountries | The new ISO 3166 country codes for this provider. |
| bool CPVRProvider::SetDatabaseId | ( | int | iDatabaseId | ) |
Set the database id of this provider.
| iDatabaseId | The new ID. |
| bool CPVRProvider::SetIconPath | ( | const std::string & | strIconPath | ) |
Set the path for this icon.
| strIconPath | The new path of the icon. |
| bool CPVRProvider::SetLanguages | ( | const std::vector< std::string > & | languages | ) |
Set the language codes for this provider.
| languages | The new RFC 5646 language codes for this provider. |
| bool CPVRProvider::SetLanguagesFromDBString | ( | const std::string & | strLanguages | ) |
Set the language codes for this provider from a string.
| strLanguages | The new RFC 5646 language codes for this provider. |
| bool CPVRProvider::SetName | ( | const std::string & | iName | ) |
Set the name of the provider.
| name | The new name of the provider. |
| bool CPVRProvider::SetType | ( | PVR_PROVIDER_TYPE | type | ) |
Sets the type of this provider.
| type | the new provider type. |
| bool CPVRProvider::UpdateEntry | ( | const std::shared_ptr< CPVRProvider > & | fromProvider, |
| ProviderUpdateMode | updateMode | ||
| ) |
updates this provider from the provided entry
| fromProvider | A provider containing the data that shall be merged into this provider's data. |
| updateMode | update as User, Client or DB |
1.8.13