|
kodi
|
Public Member Functions | |
| CPVREpgTagsContainer (int iEpgID, const std::shared_ptr< CPVREpgChannelData > &channelData, const std::shared_ptr< CPVREpgDatabase > &database) | |
| void | SetEpgID (int iEpgID) |
| Set the EPG id for this EPG. More... | |
| void | SetChannelData (const std::shared_ptr< CPVREpgChannelData > &data) |
| Set the channel data for this EPG. More... | |
| bool | UpdateEntry (const std::shared_ptr< CPVREpgInfoTag > &tag) |
| Update an entry. More... | |
| bool | DeleteEntry (const std::shared_ptr< CPVREpgInfoTag > &tag) |
| Delete an entry. More... | |
| bool | UpdateEntries (const CPVREpgTagsContainer &tags) |
| Update all entries with the provided tags. More... | |
| void | Clear () |
| Release all entries. | |
| void | Cleanup (const CDateTime &time) |
| Remove all entries which were finished before the given time. More... | |
| bool | IsEmpty () const |
| Check whether this container is empty. More... | |
| std::shared_ptr< CPVREpgInfoTag > | GetTag (const CDateTime &startTime) const |
| Get an EPG tag given its start time. More... | |
| std::shared_ptr< CPVREpgInfoTag > | GetTag (unsigned int iUniqueBroadcastID) const |
| Get an EPG tag given its unique broadcast ID. More... | |
| std::shared_ptr< CPVREpgInfoTag > | GetTagByDatabaseID (int iDatabaseID) const |
| Get an EPG tag given its database ID. More... | |
| std::shared_ptr< CPVREpgInfoTag > | GetTagBetween (const CDateTime &start, const CDateTime &end) const |
| Get the event that occurs between the given begin and end time. More... | |
| bool | UpdateActiveTag () |
| Update the currently active event. More... | |
| std::shared_ptr< CPVREpgInfoTag > | GetActiveTag () const |
| Get the event that is occurring now. More... | |
| std::shared_ptr< CPVREpgInfoTag > | GetNextStartingTag () const |
| Get the event that will occur next. More... | |
| std::shared_ptr< CPVREpgInfoTag > | GetLastEndedTag () const |
| Get the event that occurred previously. More... | |
| std::vector< std::shared_ptr< CPVREpgInfoTag > > | GetTimeline (const CDateTime &timelineStart, const CDateTime &timelineEnd, const CDateTime &minEventEnd, const CDateTime &maxEventStart) const |
| Get all EPG tags for the given time frame, including "gap" tags. More... | |
| std::vector< std::shared_ptr< CPVREpgInfoTag > > | GetAllTags () const |
| Get all EPG tags. More... | |
| std::pair< CDateTime, CDateTime > | GetFirstAndLastUncommitedEPGDate () const |
| Get the start and end time of the last not yet commited entry in this EPG. More... | |
| bool | NeedsSave () const |
| Check whether this container has unsaved data. More... | |
| void | QueuePersistQuery () |
| Write the query to persist data into database's queue. | |
| void | QueueDelete () |
| Queue the deletion of this container from its database. | |
| void CPVREpgTagsContainer::Cleanup | ( | const CDateTime & | time | ) |
Remove all entries which were finished before the given time.
| time | Delete entries with an end time before this time. |
| bool CPVREpgTagsContainer::DeleteEntry | ( | const std::shared_ptr< CPVREpgInfoTag > & | tag | ) |
Delete an entry.
| tag | The tag to delete. |
| std::shared_ptr< CPVREpgInfoTag > CPVREpgTagsContainer::GetActiveTag | ( | ) | const |
Get the event that is occurring now.
| std::vector< std::shared_ptr< CPVREpgInfoTag > > CPVREpgTagsContainer::GetAllTags | ( | ) | const |
Get all EPG tags.
Get the start and end time of the last not yet commited entry in this EPG.
| std::shared_ptr< CPVREpgInfoTag > CPVREpgTagsContainer::GetLastEndedTag | ( | ) | const |
Get the event that occurred previously.
| std::shared_ptr< CPVREpgInfoTag > CPVREpgTagsContainer::GetNextStartingTag | ( | ) | const |
Get the event that will occur next.
| std::shared_ptr< CPVREpgInfoTag > CPVREpgTagsContainer::GetTag | ( | const CDateTime & | startTime | ) | const |
Get an EPG tag given its start time.
| startTime | The start time |
| std::shared_ptr< CPVREpgInfoTag > CPVREpgTagsContainer::GetTag | ( | unsigned int | iUniqueBroadcastID | ) | const |
Get an EPG tag given its unique broadcast ID.
| iUniqueBroadcastID | The ID. |
| std::shared_ptr< CPVREpgInfoTag > CPVREpgTagsContainer::GetTagBetween | ( | const CDateTime & | start, |
| const CDateTime & | end | ||
| ) | const |
Get the event that occurs between the given begin and end time.
| start | The start of the time interval. |
| end | The end of the time interval. |
| std::shared_ptr< CPVREpgInfoTag > CPVREpgTagsContainer::GetTagByDatabaseID | ( | int | iDatabaseID | ) | const |
Get an EPG tag given its database ID.
| iDatabaseID | The ID. |
| std::vector< std::shared_ptr< CPVREpgInfoTag > > CPVREpgTagsContainer::GetTimeline | ( | const CDateTime & | timelineStart, |
| const CDateTime & | timelineEnd, | ||
| const CDateTime & | minEventEnd, | ||
| const CDateTime & | maxEventStart | ||
| ) | const |
Get all EPG tags for the given time frame, including "gap" tags.
| timelineStart | Start of time line |
| timelineEnd | End of time line |
| minEventEnd | The minimum end time of the events to return |
| maxEventStart | The maximum start time of the events to return |
| bool CPVREpgTagsContainer::IsEmpty | ( | void | ) | const |
Check whether this container is empty.
| bool CPVREpgTagsContainer::NeedsSave | ( | ) | const |
Check whether this container has unsaved data.
| void CPVREpgTagsContainer::SetChannelData | ( | const std::shared_ptr< CPVREpgChannelData > & | data | ) |
Set the channel data for this EPG.
| data | The channel data. |
| void CPVREpgTagsContainer::SetEpgID | ( | int | iEpgID | ) |
Set the EPG id for this EPG.
| iEpgID | The ID. |
| bool CPVREpgTagsContainer::UpdateActiveTag | ( | ) |
Update the currently active event.
| bool CPVREpgTagsContainer::UpdateEntries | ( | const CPVREpgTagsContainer & | tags | ) |
Update all entries with the provided tags.
| tags | The updated tags. |
| bool CPVREpgTagsContainer::UpdateEntry | ( | const std::shared_ptr< CPVREpgInfoTag > & | tag | ) |
Update an entry.
| tag | The tag to update. |
1.8.13