Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <PVRProvider.h>
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 |
void | ToSortable (SortItem &sortable, Field field) const override |
int | GetDatabaseId () const |
The database id of this provider. | |
bool | SetDatabaseId (int iDatabaseId) |
Set the database id of this provider. | |
int | GetUniqueId () const |
A unique identifier for this provider. | |
int | GetClientId () const |
std::string | GetName () const |
bool | SetName (const std::string &iName) |
Set the name of the provider. | |
bool | HasType () const |
Checks whether this provider has a known type. | |
PVR_PROVIDER_TYPE | GetType () const |
Gets the type of this provider. | |
bool | SetType (PVR_PROVIDER_TYPE type) |
Sets the type of this provider. | |
std::string | GetIconPath () const |
Get the path for this provider's icon. | |
bool | SetIconPath (const std::string &strIconPath) |
Set the path for this icon. | |
std::string | GetClientIconPath () const |
std::vector< std::string > | GetCountries () const |
Get this provider's country codes (ISO 3166). | |
bool | SetCountries (const std::vector< std::string > &countries) |
Set the country codes for this provider. | |
std::string | GetCountriesDBString () const |
Get this provider's country codes (ISO 3166) as a string. | |
bool | SetCountriesFromDBString (const std::string &strCountries) |
Set the country codes for this provider from a string. | |
std::vector< std::string > | GetLanguages () const |
Get this provider's language codes (RFC 5646). | |
bool | SetLanguages (const std::vector< std::string > &languages) |
Set the language codes for this provider. | |
std::string | GetLanguagesDBString () const |
Get this provider's language codes (RFC 5646) as a string. | |
bool | SetLanguagesFromDBString (const std::string &strLanguages) |
Set the language codes for this provider from a string. | |
bool | HasThumbPath () const |
Get if this provider has a thumb image path. | |
std::string | GetThumbPath () const |
Get this provider's thumb image path. Note only PVR add-on providers will set this value. | |
std::string | GetClientThumbPath () const |
bool | IsClientProvider () const |
Whether a provider is a default provider of a PVR Client add-on or not. | |
bool | UpdateEntry (const std::shared_ptr< CPVRProvider > &fromProvider, ProviderUpdateMode updateMode) |
updates this provider from the provided entry | |
bool | Persist (bool updateRecord=false) |
Persist this provider in the local database. | |
bool | DeleteFromDatabase () |
Delete this provider from the local database. | |
Public Member Functions inherited from ISerializable | |
Public Member Functions inherited from ISortable |
Static Public Attributes | |
static const std::string | IMAGE_OWNER_PATTERN = "pvrprovider" |
Additional Inherited Members | |
Protected Member Functions inherited from ISerializable | |
~ISerializable ()=default | |
Protected Member Functions inherited from ISortable | |
~ISortable ()=default | |
CPVRProvider::CPVRProvider | ( | const PVR_PROVIDER & | provider, |
int | iClientId ) |
CPVRProvider::CPVRProvider | ( | int | iClientId, |
const std::string & | addonProviderName, | ||
const std::string & | addonIconPath, | ||
const std::string & | addonThumbPath ) |
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 |
A unique identifier for this provider.
A unique identifier for this provider. It can be used to find the same provider on this clients backend
bool CPVRProvider::HasThumbPath | ( | ) | const |
Get if this provider has a thumb image path.
|
inline |
Checks whether this provider has a known type.
|
inline |
bool CPVRProvider::operator!= | ( | const CPVRProvider & | right | ) | const |
bool CPVRProvider::operator== | ( | const CPVRProvider & | right | ) | const |
Persist this provider in the local database.
updateRecord | True if an existing record should be updated, false for an insert |
Implements ISerializable.
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. |
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. |
Implements ISortable.
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 |
|
static |