|
Kodi Documentation
19.0
Kodi is an open source media player and entertainment hub.
|
#include <PVRManager.h>
Classes | |
| class | CLastWatchedUpdateTimer |
Public Member Functions | |
| CPVRManager (void) | |
| Create a new CPVRManager instance, which handles all PVR related operations in XBMC. More... | |
| ~CPVRManager (void) override | |
| Stop the PVRManager and destroy all objects it created. More... | |
| void | Announce (ANNOUNCEMENT::AnnouncementFlag flag, const char *sender, const char *message, const CVariant &data) override |
| CPVRChannelGroupsContainerPtr | ChannelGroups (void) const |
| Get the channel groups container. More... | |
| CPVRRecordingsPtr | Recordings (void) const |
| Get the recordings container. More... | |
| CPVRTimersPtr | Timers (void) const |
| Get the timers container. More... | |
| CPVRClientsPtr | Clients (void) const |
| Get the timers container. More... | |
| std::shared_ptr< CPVRClient > | GetClient (const CFileItem &item) const |
| Get the instance of a client that matches the given item. More... | |
| std::shared_ptr< CPVRClient > | GetClient (int iClientId) const |
| Get the instance of a client that matches the given id. More... | |
| CPVRGUIActionsPtr | GUIActions (void) const |
| Get access to the pvr gui actions. More... | |
| CPVREpgContainer & | EpgContainer () |
| Get access to the epg container. More... | |
| void | Init (void) |
| Init PVRManager. More... | |
| void | Start () |
| Start the PVRManager, which loads all PVR data and starts some threads to update the PVR data. More... | |
| void | Stop (void) |
| Stop PVRManager. More... | |
| void | Unload () |
| Stop PVRManager, unload data. More... | |
| void | Deinit () |
| Deinit PVRManager, unload data, unload addons. More... | |
| void | OnSleep () |
| Propagate event on system sleep. More... | |
| void | OnWake () |
| Propagate event on system wake. More... | |
| CPVRDatabasePtr | GetTVDatabase (void) const |
| Get the TV database. More... | |
| bool | IsPlaying (void) const |
| Check if a TV channel, radio channel or recording is playing. More... | |
| bool | IsPlayingChannel (const CPVRChannelPtr &channel) const |
| Check if the given channel is playing. More... | |
| bool | IsPlayingRecording (const CPVRRecordingPtr &recording) const |
| Check if the given recording is playing. More... | |
| bool | IsPlayingEpgTag (const CPVREpgInfoTagPtr &epgTag) const |
| Check if the given epg tag is playing. More... | |
| bool | IsInitialising (void) const |
| bool | IsStarted (void) const |
| Check whether the PVRManager has fully started. More... | |
| bool | IsStopping (void) const |
| Check whether the PVRManager is stopping. More... | |
| bool | IsStopped (void) const |
| Check whether the PVRManager has been stopped. More... | |
| bool | MatchPlayingChannel (int iClientID, int iUniqueChannelID) const |
| Check whether playing channel matches given uids. More... | |
| CPVRChannelPtr | GetPlayingChannel (void) const |
| Return the channel that is currently playing. More... | |
| CPVRRecordingPtr | GetPlayingRecording (void) const |
| Return the recording that is currently playing. More... | |
| CPVREpgInfoTagPtr | GetPlayingEpgTag (void) const |
| Return the epg tag that is currently playing. More... | |
| std::string | GetPlayingClientName (void) const |
| Get the name of the playing client, if there is one. More... | |
| int | GetPlayingClientID (void) const |
| Get the ID of the playing client, if there is one. More... | |
| bool | IsRecordingOnPlayingChannel (void) const |
| Check whether there is an active recording on the currenlyt playing channel. More... | |
| bool | CanRecordOnPlayingChannel (void) const |
| Check whether the currently playing channel can be recorded. More... | |
| bool | EpgsCreated (void) const |
| Check whether EPG tags for channels have been created. More... | |
| void | OnPlaybackStarted (const CFileItemPtr item) |
| Inform PVR manager that playback of an item just started. More... | |
| void | OnPlaybackStopped (const CFileItemPtr item) |
| Inform PVR manager that playback of an item was stopped due to user interaction. More... | |
| void | OnPlaybackEnded (const CFileItemPtr item) |
| Inform PVR manager that playback of an item has stopped without user interaction. More... | |
| bool | IsRecording (void) const |
| Check whether there are active recordings. More... | |
| void | SetPlayingGroup (const CPVRChannelGroupPtr &group) |
| Set the current playing group, used to load the right channel. More... | |
| CPVRChannelGroupPtr | GetPlayingGroup (bool bRadio=false) const |
| Get the current playing group, used to load the right channel. More... | |
| bool | FillStreamFileItem (CFileItem &fileItem) |
| Fill the file item for a recording, a channel or an epg tag with the properties required for playback. Values are obtained from the PVR backend. More... | |
| void | TriggerEpgsCreate (void) |
| Let the background thread create epg tags for all channels. More... | |
| void | TriggerRecordingsUpdate (void) |
| Let the background thread update the recordings list. More... | |
| void | TriggerTimersUpdate (void) |
| Let the background thread update the timer list. More... | |
| void | TriggerChannelsUpdate (void) |
| Let the background thread update the channel list. More... | |
| void | TriggerChannelGroupsUpdate (void) |
| Let the background thread update the channel groups list. More... | |
| void | TriggerSearchMissingChannelIcons (void) |
| Let the background thread search for missing channel icons. More... | |
| void | LocalizationChanged (void) |
| Check whether names are still correct after the language settings changed. More... | |
| bool | IsPlayingTV (void) const |
| Check if a TV channel is playing. More... | |
| bool | IsPlayingRadio (void) const |
| Check if a radio channel is playing. More... | |
| bool | IsPlayingEncryptedChannel (void) const |
| Check if a an encrypted TV or radio channel is playing. More... | |
| bool | IsPlayingRecording (void) const |
| Check if a recording is playing. More... | |
| bool | IsPlayingEpgTag (void) const |
| Check if an epg tag is playing. More... | |
| void | SearchMissingChannelIcons (void) |
| Try to find missing channel icons automatically. More... | |
| bool | IsParentalLocked (const std::shared_ptr< CPVRChannel > &channel) const |
| Check if parental lock is overridden at the given moment. More... | |
| bool | IsParentalLocked (const std::shared_ptr< CPVREpgInfoTag > &epgTag) const |
| Check if parental lock is overridden at the given moment. More... | |
| void | RestartParentalTimer () |
| Restart the parental timer. More... | |
| bool | CreateChannelEpgs (void) |
| Create EPG tags for all channels in internal channel groups. More... | |
| void | ConnectionStateChange (CPVRClient *client, std::string connectString, PVR_CONNECTION_STATE state, std::string message) |
| Signal a connection change of a client. More... | |
| CEventStream< PVREvent > & | Events () |
| Query the events available for CEventStream. More... | |
| void | PublishEvent (PVREvent state) |
| Publish an event. More... | |
Public Member Functions inherited from Observable | |
| Observable ()=default | |
| virtual | ~Observable ()=default |
| virtual Observable & | operator= (const Observable &observable) |
| virtual void | RegisterObserver (Observer *obs) |
| Register an observer. More... | |
| virtual void | UnregisterObserver (Observer *obs) |
| Unregister an observer. More... | |
| virtual void | NotifyObservers (const ObservableMessage message=ObservableMessageNone) |
| Send a message to all observers when m_bObservableChanged is true. More... | |
| virtual void | SetChanged (bool bSetTo=true) |
| Mark an observable changed. More... | |
| virtual bool | IsObserving (const Observer &obs) const |
| Check whether this observable is being observed by an observer. More... | |
Public Member Functions inherited from ANNOUNCEMENT::IAnnouncer | |
| IAnnouncer ()=default | |
| virtual | ~IAnnouncer ()=default |
Protected Member Functions | |
| void | Process (void) override |
| PVR update and control thread. More... | |
Protected Member Functions inherited from Observable | |
| void | SendMessage (const ObservableMessage message) |
| Send a message to all observer when m_bObservableChanged is true. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Observable | |
| std::atomic< bool > | m_bObservableChanged {false} |
| std::vector< Observer * > | m_observers |
| CCriticalSection | m_obsCritSection |
| CPVRManager::CPVRManager | ( | void | ) |
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.
| bool CPVRManager::CanRecordOnPlayingChannel | ( | void | ) | const |
Check whether the currently playing channel can be recorded.
| CPVRChannelGroupsContainerPtr CPVRManager::ChannelGroups | ( | void | ) | const |
Get the channel groups container.
| CPVRClientsPtr CPVRManager::Clients | ( | void | ) | const |
Get the timers container.
| void CPVRManager::ConnectionStateChange | ( | CPVRClient * | client, |
| std::string | connectString, | ||
| PVR_CONNECTION_STATE | state, | ||
| std::string | message | ||
| ) |
Signal a connection change of a client.
| bool CPVRManager::CreateChannelEpgs | ( | void | ) |
Create EPG tags for all channels in internal channel groups.
| void CPVRManager::Deinit | ( | ) |
Deinit PVRManager, unload data, unload addons.
| CPVREpgContainer & CPVRManager::EpgContainer | ( | ) |
Get access to the epg container.
| bool CPVRManager::EpgsCreated | ( | void | ) | const |
Check whether EPG tags for channels have been created.
|
inline |
Query the events available for CEventStream.
| bool CPVRManager::FillStreamFileItem | ( | CFileItem & | fileItem | ) |
Fill the file item for a recording, a channel or an epg tag with the properties required for playback. Values are obtained from the PVR backend.
| fileItem | The file item to be filled. Item must contain either a pvr recording, a pvr channel or an epg tag. |
| CPVRClientPtr CPVRManager::GetClient | ( | const CFileItem & | item | ) | const |
| CPVRClientPtr CPVRManager::GetClient | ( | int | iClientId | ) | const |
Get the instance of a client that matches the given id.
| iClientId | The id of a PVR client. |
| CPVRChannelPtr CPVRManager::GetPlayingChannel | ( | void | ) | const |
Return the channel that is currently playing.
| int CPVRManager::GetPlayingClientID | ( | void | ) | const |
Get the ID of the playing client, if there is one.
| std::string CPVRManager::GetPlayingClientName | ( | void | ) | const |
Get the name of the playing client, if there is one.
| CPVREpgInfoTagPtr CPVRManager::GetPlayingEpgTag | ( | void | ) | const |
Return the epg tag that is currently playing.
| CPVRChannelGroupPtr CPVRManager::GetPlayingGroup | ( | bool | bRadio = false | ) | const |
Get the current playing group, used to load the right channel.
| bRadio | True to get the current radio group, false to get the current TV group. |
| CPVRRecordingPtr CPVRManager::GetPlayingRecording | ( | void | ) | const |
Return the recording that is currently playing.
| CPVRDatabasePtr CPVRManager::GetTVDatabase | ( | void | ) | const |
Get the TV database.
| CPVRGUIActionsPtr CPVRManager::GUIActions | ( | void | ) | const |
Get access to the pvr gui actions.
|
inline |
| bool CPVRManager::IsParentalLocked | ( | const std::shared_ptr< 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< CPVREpgInfoTag > & | epgTag | ) | const |
Check if parental lock is overridden at the given moment.
| epgTag | The epg tag to check. |
| bool CPVRManager::IsPlaying | ( | void | ) | const |
Check if a TV channel, radio channel or recording is playing.
| bool CPVRManager::IsPlayingChannel | ( | const CPVRChannelPtr & | channel | ) | const |
Check if the given channel is playing.
| channel | The channel to check. |
| bool CPVRManager::IsPlayingEncryptedChannel | ( | void | ) | const |
Check if a an encrypted TV or radio channel is playing.
| bool CPVRManager::IsPlayingEpgTag | ( | const CPVREpgInfoTagPtr & | epgTag | ) | const |
Check if the given epg tag is playing.
| epgTag | The tag to check. |
| bool CPVRManager::IsPlayingEpgTag | ( | void | ) | const |
Check if an epg tag is playing.
| bool CPVRManager::IsPlayingRadio | ( | void | ) | const |
Check if a radio channel is playing.
| bool CPVRManager::IsPlayingRecording | ( | const CPVRRecordingPtr & | recording | ) | const |
Check if the given recording is playing.
| recording | The recording to check. |
| bool CPVRManager::IsPlayingRecording | ( | void | ) | const |
Check if a recording is playing.
| bool CPVRManager::IsPlayingTV | ( | void | ) | const |
Check if a TV channel is playing.
| bool CPVRManager::IsRecording | ( | void | ) | const |
Check whether there are active recordings.
| bool CPVRManager::IsRecordingOnPlayingChannel | ( | void | ) | const |
Check whether there is an active recording on the currenlyt playing channel.
|
inline |
Check whether the PVRManager has fully started.
|
inline |
Check whether the PVRManager has been stopped.
|
inline |
Check whether the PVRManager is stopping.
Check whether names are still correct after the language settings changed.
| bool CPVRManager::MatchPlayingChannel | ( | int | iClientID, |
| int | iUniqueChannelID | ||
| ) | const |
Check whether playing channel matches given uids.
| iClientID | The client id. |
| iUniqueChannelID | The channel uid. |
| void CPVRManager::OnPlaybackEnded | ( | const CFileItemPtr | item | ) |
Inform PVR manager that playback of an item has stopped without user interaction.
| item | The item that ended to play. |
| void CPVRManager::OnPlaybackStarted | ( | const CFileItemPtr | item | ) |
Inform PVR manager that playback of an item just started.
| item | The item that started to play. |
| void CPVRManager::OnPlaybackStopped | ( | const CFileItemPtr | item | ) |
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.
| CPVRRecordingsPtr CPVRManager::Recordings | ( | void | ) | const |
Get the recordings container.
| void CPVRManager::RestartParentalTimer | ( | ) |
Restart the parental timer.
Try to find missing channel icons automatically.
| void CPVRManager::SetPlayingGroup | ( | const CPVRChannelGroupPtr & | group | ) |
Set the current playing group, used to load the right channel.
| group | The new group. |
| CPVRTimersPtr CPVRManager::Timers | ( | void | ) | const |
Get the timers container.
Let the background thread update the channel groups list.
Let the background thread create epg tags for all channels.
Let the background thread update the recordings list.
Let the background thread search for missing channel icons.
| void CPVRManager::Unload | ( | ) |
Stop PVRManager, unload data.