|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <PVRRecordings.h>
Public Member Functions | |
| CPVRRecordings () | |
| virtual | ~CPVRRecordings () |
| bool | Update (const std::vector< std::shared_ptr< CPVRClient > > &clients) |
| Update all recordings from the given PVR clients. | |
| void | Unload () |
| unload all recordings. | |
| bool | UpdateFromClients (const std::vector< std::shared_ptr< CPVRClient > > &clients) |
| Update data with recordings from the given clients, sync with local data. | |
| void | UpdateFromClient (const std::shared_ptr< CPVRRecording > &tag, const CPVRClient &client) |
| client has delivered a new/updated recording. | |
| void | UpdateInProgressSize () |
| refresh the size of any in progress recordings from the clients. | |
| int | GetNumTVRecordings () const |
| bool | HasDeletedTVRecordings () const |
| int | GetNumRadioRecordings () const |
| bool | HasDeletedRadioRecordings () const |
| bool | MarkWatched (const std::shared_ptr< CPVRRecording > &recording, bool bWatched) |
| Set a recording's watched state. | |
| bool | ResetResumePoint (const std::shared_ptr< CPVRRecording > &recording) |
| Reset a recording's resume point, if any. | |
| bool | DeleteRecording (const std::shared_ptr< CPVRRecording > &recording) |
| Delete a recording in the backend, cleanup db enries. | |
| std::vector< std::shared_ptr< CPVRRecording > > | GetAll () const |
| Get a list of all recordings. | |
| std::shared_ptr< CPVRRecording > | GetByPath (const std::string &path) const |
| std::shared_ptr< CPVRRecording > | GetById (int iClientId, const std::string &strRecordingId) const |
| std::shared_ptr< CPVRRecording > | GetById (unsigned int iId) const |
| bool | HasRecordingForProvider (bool isRadio, int clientId, int providerId) const |
| Check whether at least one recording is offered by the given provider. | |
| unsigned int | GetRecordingCountByProvider (bool isRadio, int clientId, int providerId) const |
| Get the total count of recordings offered by the given provider. | |
| std::shared_ptr< CPVRRecording > | GetRecordingForEpgTag (const std::shared_ptr< const CPVREpgInfoTag > &epgTag) const |
| Get the recording for the given epg tag, if any. | |
| int | CleanupCachedImages () |
| Erase stale texture db entries and image files. | |
|
default |
|
virtual |
| int CPVRRecordings::CleanupCachedImages | ( | ) |
Erase stale texture db entries and image files.
| bool CPVRRecordings::DeleteRecording | ( | const std::shared_ptr< CPVRRecording > & | recording | ) |
Delete a recording in the backend, cleanup db enries.
| recording | The recording |
| std::vector< std::shared_ptr< CPVRRecording > > CPVRRecordings::GetAll | ( | ) | const |
Get a list of all recordings.
| std::shared_ptr< CPVRRecording > CPVRRecordings::GetById | ( | int | iClientId, |
| const std::string & | strRecordingId ) const |
| std::shared_ptr< CPVRRecording > CPVRRecordings::GetById | ( | unsigned int | iId | ) | const |
| std::shared_ptr< CPVRRecording > CPVRRecordings::GetByPath | ( | const std::string & | path | ) | const |
| int CPVRRecordings::GetNumRadioRecordings | ( | ) | const |
| int CPVRRecordings::GetNumTVRecordings | ( | ) | const |
| unsigned int CPVRRecordings::GetRecordingCountByProvider | ( | bool | isRadio, |
| int | clientId, | ||
| int | providerId ) const |
Get the total count of recordings offered by the given provider.
| isRadio | Check radio or TV recordings. |
| clientId | The clientId of the provider. |
| providerId | The providerId. |
| std::shared_ptr< CPVRRecording > CPVRRecordings::GetRecordingForEpgTag | ( | const std::shared_ptr< const CPVREpgInfoTag > & | epgTag | ) | const |
Get the recording for the given epg tag, if any.
| epgTag | The epg tag. |
| bool CPVRRecordings::HasDeletedRadioRecordings | ( | ) | const |
| bool CPVRRecordings::HasDeletedTVRecordings | ( | ) | const |
Check whether at least one recording is offered by the given provider.
| isRadio | Check radio or TV recordings. |
| clientId | The clientId to check. |
| providerId | The providerId to check. |
| bool CPVRRecordings::MarkWatched | ( | const std::shared_ptr< CPVRRecording > & | recording, |
| bool | bWatched ) |
Set a recording's watched state.
| recording | The recording |
| bWatched | True to set watched, false to set unwatched state |
| bool CPVRRecordings::ResetResumePoint | ( | const std::shared_ptr< CPVRRecording > & | recording | ) |
Reset a recording's resume point, if any.
| recording | The recording |
| void CPVRRecordings::Unload | ( | ) |
unload all recordings.
| bool CPVRRecordings::Update | ( | const std::vector< std::shared_ptr< CPVRClient > > & | clients | ) |
| void CPVRRecordings::UpdateFromClient | ( | const std::shared_ptr< CPVRRecording > & | tag, |
| const CPVRClient & | client ) |
client has delivered a new/updated recording.
| tag | The recording |
| client | The client the recording belongs to. |
| bool CPVRRecordings::UpdateFromClients | ( | const std::vector< std::shared_ptr< CPVRClient > > & | clients | ) |
Update data with recordings from the given clients, sync with local data.
| clients | The clients to fetch data from. Leave empty to fetch data from all created clients. |
| void CPVRRecordings::UpdateInProgressSize | ( | ) |
refresh the size of any in progress recordings from the clients.