Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <PVRManager.h>
Public Member Functions | |
CPVRManager () | |
Create a new CPVRManager instance, which handles all PVR related operations in XBMC. | |
~CPVRManager () override | |
Stop the PVRManager and destroy all objects it created. | |
void | Announce (ANNOUNCEMENT::AnnouncementFlag flag, const std::string &sender, const std::string &message, const CVariant &data) override |
template<class T > | |
T & | Get () |
Get a PVR component. | |
std::shared_ptr< CPVRProviders > | Providers () const |
Get the providers container. | |
std::shared_ptr< CPVRChannelGroupsContainer > | ChannelGroups () const |
Get the channel groups container. | |
std::shared_ptr< CPVRRecordings > | Recordings () const |
Get the recordings container. | |
std::shared_ptr< CPVRTimers > | Timers () const |
Get the timers container. | |
std::shared_ptr< CPVRClients > | Clients () const |
Get the timers container. | |
std::shared_ptr< CPVRClient > | GetClient (const CFileItem &item) const |
Get the instance of a client that matches the given item. | |
std::shared_ptr< CPVRClient > | GetClient (int iClientId) const |
Get the instance of a client that matches the given id. | |
std::shared_ptr< CPVRPlaybackState > | PlaybackState () const |
Get access to the pvr playback state. | |
CPVREpgContainer & | EpgContainer () |
Get access to the epg container. | |
void | Init () |
Init PVRManager. | |
void | Start () |
Start the PVRManager, which loads all PVR data and starts some threads to update the PVR data. | |
void | Stop (bool bRestart=false) |
Stop PVRManager. | |
void | Unload () |
Stop PVRManager, unload data. | |
void | Deinit () |
Deinit PVRManager, unload data, unload addons. | |
void | OnSleep () |
Propagate event on system sleep. | |
void | OnWake () |
Propagate event on system wake. | |
std::shared_ptr< CPVRDatabase > | GetTVDatabase () const |
Get the TV database. | |
bool | IsStarted () const |
Check whether the PVRManager has fully started. | |
void | OnPlaybackStarted (const CFileItem &item) |
Inform PVR manager that playback of an item just started. | |
void | OnPlaybackStopped (const CFileItem &item) |
Inform PVR manager that playback of an item was stopped due to user interaction. | |
void | OnPlaybackEnded (const CFileItem &item) |
Inform PVR manager that playback of an item has stopped without user interaction. | |
void | TriggerRecordingsUpdate (int clientId) |
Let the background thread update the recordings list. | |
void | TriggerRecordingsUpdate () |
void | TriggerRecordingsSizeInProgressUpdate () |
Let the background thread update the size for any in progress recordings. | |
void | TriggerTimersUpdate (int clientId) |
Let the background thread update the timer list. | |
void | TriggerTimersUpdate () |
void | TriggerChannelsUpdate (int clientId) |
Let the background thread update the channel list. | |
void | TriggerChannelsUpdate () |
void | TriggerProvidersUpdate (int clientId) |
Let the background thread update the provider list. | |
void | TriggerProvidersUpdate () |
void | TriggerChannelGroupsUpdate (int clientId) |
Let the background thread update the channel groups list. | |
void | TriggerChannelGroupsUpdate () |
void | TriggerSearchMissingChannelIcons () |
Let the background thread search for all missing channel icons. | |
void | TriggerCleanupCachedImages () |
Let the background thread erase stale texture db entries and image files. | |
void | TriggerSearchMissingChannelIcons (const std::shared_ptr< CPVRChannelGroup > &group) |
Let the background thread search for missing channel icons for channels contained in the given group. | |
void | LocalizationChanged () |
Check whether names are still correct after the language settings changed. | |
bool | IsParentalLocked (const std::shared_ptr< const CPVRChannel > &channel) const |
Check if parental lock is overridden at the given moment. | |
bool | IsParentalLocked (const std::shared_ptr< const CPVREpgInfoTag > &epgTag) const |
Check if parental lock is overridden at the given moment. | |
void | RestartParentalTimer () |
Restart the parental timer. | |
void | ConnectionStateChange (CPVRClient *client, const std::string &connectString, PVR_CONNECTION_STATE state, const std::string &message) |
Signal a connection change of a client. | |
CEventStream< PVREvent > & | Events () |
Query the events available for CEventStream. | |
void | PublishEvent (PVREvent state) |
Publish an event. | |
Public Member Functions inherited from ANNOUNCEMENT::IAnnouncer | |
IAnnouncer ()=default | |
virtual | ~IAnnouncer ()=default |
Protected Member Functions | |
void | Process () override |
PVR update and control thread. | |
CPVRManager::CPVRManager | ( | ) |
Create a new CPVRManager instance, which handles all PVR related operations in XBMC.
|
override |
Stop the PVRManager and destroy all objects it created.
|
overridevirtual |
Implements ANNOUNCEMENT::IAnnouncer.
std::shared_ptr< CPVRChannelGroupsContainer > CPVRManager::ChannelGroups | ( | ) | const |
Get the channel groups container.
std::shared_ptr< CPVRClients > CPVRManager::Clients | ( | ) | const |
Get the timers container.
void CPVRManager::ConnectionStateChange | ( | CPVRClient * | client, |
const std::string & | connectString, | ||
PVR_CONNECTION_STATE | state, | ||
const std::string & | message ) |
Signal a connection change of a client.
void CPVRManager::Deinit | ( | ) |
Deinit PVRManager, unload data, unload addons.
CPVREpgContainer & CPVRManager::EpgContainer | ( | ) |
Get access to the epg container.
|
inline |
Query the events available for CEventStream.
|
inline |
Get a PVR component.
std::shared_ptr< CPVRClient > CPVRManager::GetClient | ( | const CFileItem & | item | ) | const |
std::shared_ptr< CPVRClient > CPVRManager::GetClient | ( | int | iClientId | ) | const |
Get the instance of a client that matches the given id.
iClientId | The id of a PVR client. |
std::shared_ptr< CPVRDatabase > CPVRManager::GetTVDatabase | ( | ) | const |
Get the TV database.
void CPVRManager::Init | ( | ) |
Init PVRManager.
bool CPVRManager::IsParentalLocked | ( | const std::shared_ptr< const CPVRChannel > & | channel | ) | const |
Check if parental lock is overridden at the given moment.
channel | The channel to check. |
bool CPVRManager::IsParentalLocked | ( | const std::shared_ptr< const CPVREpgInfoTag > & | epgTag | ) | const |
Check if parental lock is overridden at the given moment.
epgTag | The epg tag to check. |
|
inline |
Check whether the PVRManager has fully started.
void CPVRManager::LocalizationChanged | ( | ) |
Check whether names are still correct after the language settings changed.
Inform PVR manager that playback of an item has stopped without user interaction.
item | The item that ended to play. |
Inform PVR manager that playback of an item just started.
item | The item that started to play. |
Inform PVR manager that playback of an item was stopped due to user interaction.
item | The item that stopped to play. |
void CPVRManager::OnSleep | ( | ) |
Propagate event on system sleep.
void CPVRManager::OnWake | ( | ) |
Propagate event on system wake.
std::shared_ptr< CPVRPlaybackState > CPVRManager::PlaybackState | ( | ) | const |
Get access to the pvr playback state.
std::shared_ptr< CPVRProviders > CPVRManager::Providers | ( | ) | const |
Get the providers container.
std::shared_ptr< CPVRRecordings > CPVRManager::Recordings | ( | ) | const |
Get the recordings container.
void CPVRManager::RestartParentalTimer | ( | ) |
Restart the parental timer.
void CPVRManager::Start | ( | ) |
std::shared_ptr< CPVRTimers > CPVRManager::Timers | ( | ) | const |
Get the timers container.
void CPVRManager::TriggerChannelGroupsUpdate | ( | ) |
Let the background thread update the channel groups list.
clientId | The id of the PVR client to update. |
void CPVRManager::TriggerChannelsUpdate | ( | ) |
Let the background thread update the channel list.
clientId | The id of the PVR client to update. |
void CPVRManager::TriggerCleanupCachedImages | ( | ) |
Let the background thread erase stale texture db entries and image files.
void CPVRManager::TriggerProvidersUpdate | ( | ) |
Let the background thread update the provider list.
clientId | The id of the PVR client to update. |
void CPVRManager::TriggerRecordingsSizeInProgressUpdate | ( | ) |
Let the background thread update the size for any in progress recordings.
void CPVRManager::TriggerRecordingsUpdate | ( | ) |
Let the background thread update the recordings list.
clientId | The id of the PVR client to update. |
void CPVRManager::TriggerSearchMissingChannelIcons | ( | ) |
Let the background thread search for all missing channel icons.
void CPVRManager::TriggerSearchMissingChannelIcons | ( | const std::shared_ptr< CPVRChannelGroup > & | group | ) |
Let the background thread search for missing channel icons for channels contained in the given group.
group | The channel group. |
void CPVRManager::TriggerTimersUpdate | ( | ) |
Let the background thread update the timer list.
clientId | The id of the PVR client to update. |
void CPVRManager::Unload | ( | ) |
Stop PVRManager, unload data.