xbmc
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PVR::CPVRProvidersContainer Class Reference
Inheritance diagram for PVR::CPVRProvidersContainer:
Inheritance graph
[legend]
Collaboration diagram for PVR::CPVRProvidersContainer:
Collaboration graph
[legend]

Public Member Functions

bool UpdateFromClient (const std::shared_ptr< CPVRProvider > &provider)
 Add a provider to this container or update the provider if already present in this container. More...
 
std::shared_ptr< CPVRProviderGetByClient (int iClientId, int iUniqueId) const
 Get the provider denoted by given client id and unique client provider id. More...
 
std::vector< std::shared_ptr< CPVRProvider > > GetProvidersList () const
 
std::size_t GetNumProviders () const
 

Protected Member Functions

void InsertEntry (const std::shared_ptr< CPVRProvider > &newProvider, ProviderUpdateMode updateMode)
 

Protected Attributes

CCriticalSection m_critSection
 
int m_iLastId = 0
 
std::vector< std::shared_ptr< CPVRProvider > > m_providers
 

Member Function Documentation

◆ GetByClient()

std::shared_ptr< CPVRProvider > CPVRProvidersContainer::GetByClient ( int  iClientId,
int  iUniqueId 
) const

Get the provider denoted by given client id and unique client provider id.

Parameters
iClientIdThe client id.
iUniqueIdThe client provider id.
Returns
the provider if found, null otherwise.

◆ GetNumProviders()

std::size_t CPVRProvidersContainer::GetNumProviders ( ) const

Get the number of providers in this container

Returns
The total number of providers

◆ GetProvidersList()

std::vector< std::shared_ptr< CPVRProvider > > CPVRProvidersContainer::GetProvidersList ( ) const

Get all providers in this container

Returns
The list of all providers

◆ UpdateFromClient()

bool CPVRProvidersContainer::UpdateFromClient ( const std::shared_ptr< CPVRProvider > &  provider)

Add a provider to this container or update the provider if already present in this container.

Parameters
Theprovider
Returns
True, if the update was successful. False, otherwise.

The documentation for this class was generated from the following files: