xbmc
Public Member Functions | List of all members
PVR::CPVRRecordings Class Reference

Public Member Functions

bool Update (const std::vector< std::shared_ptr< CPVRClient >> &clients)
 Update all recordings from the given PVR clients. More...
 
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. More...
 
void UpdateFromClient (const std::shared_ptr< CPVRRecording > &tag, const CPVRClient &client)
 client has delivered a new/updated recording. More...
 
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. More...
 
bool ResetResumePoint (const std::shared_ptr< CPVRRecording > &recording)
 Reset a recording's resume point, if any. More...
 
std::vector< std::shared_ptr< CPVRRecording > > GetAll () const
 Get a list of all recordings. More...
 
std::shared_ptr< CPVRRecordingGetByPath (const std::string &path) const
 
std::shared_ptr< CPVRRecordingGetById (int iClientId, const std::string &strRecordingId) const
 
std::shared_ptr< CPVRRecordingGetById (unsigned int iId) const
 
std::shared_ptr< CPVRRecordingGetRecordingForEpgTag (const std::shared_ptr< CPVREpgInfoTag > &epgTag) const
 Get the recording for the given epg tag, if any. More...
 
int CleanupCachedImages ()
 Erase stale texture db entries and image files. More...
 

Member Function Documentation

◆ CleanupCachedImages()

int CPVRRecordings::CleanupCachedImages ( )

Erase stale texture db entries and image files.

Returns
number of cleaned up images.

◆ GetAll()

std::vector< std::shared_ptr< CPVRRecording > > CPVRRecordings::GetAll ( ) const

Get a list of all recordings.

Returns
the list of all recordings

◆ GetRecordingForEpgTag()

std::shared_ptr< CPVRRecording > CPVRRecordings::GetRecordingForEpgTag ( const std::shared_ptr< CPVREpgInfoTag > &  epgTag) const

Get the recording for the given epg tag, if any.

Parameters
epgTagThe epg tag.
Returns
The requested recording, or an empty recordingptr if none was found.

◆ MarkWatched()

bool CPVRRecordings::MarkWatched ( const std::shared_ptr< CPVRRecording > &  recording,
bool  bWatched 
)

Set a recording's watched state.

Parameters
recordingThe recording
bWatchedTrue to set watched, false to set unwatched state
Returns
True on success, false otherwise

◆ ResetResumePoint()

bool CPVRRecordings::ResetResumePoint ( const std::shared_ptr< CPVRRecording > &  recording)

Reset a recording's resume point, if any.

Parameters
recordingThe recording
Returns
True on success, false otherwise

◆ Update()

bool CPVRRecordings::Update ( const std::vector< std::shared_ptr< CPVRClient >> &  clients)

Update all recordings from the given PVR clients.

Parameters
clientsThe PVR clients data should be loaded for. Leave empty for all clients.
Returns
True on success, false otherwise.

◆ UpdateFromClient()

void CPVRRecordings::UpdateFromClient ( const std::shared_ptr< CPVRRecording > &  tag,
const CPVRClient client 
)

client has delivered a new/updated recording.

Parameters
tagThe recording
clientThe client the recording belongs to.

◆ UpdateFromClients()

bool CPVRRecordings::UpdateFromClients ( const std::vector< std::shared_ptr< CPVRClient >> &  clients)

Update data with recordings from the given clients, sync with local data.

Parameters
clientsThe clients to fetch data from. Leave empty to fetch data from all created clients.
Returns
True on success, false otherwise.

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