Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <EpgTagsContainer.h>
Public Member Functions | |
CPVREpgTagsContainer ()=delete | |
CPVREpgTagsContainer (int iEpgID, const std::shared_ptr< CPVREpgChannelData > &channelData, const std::shared_ptr< CPVREpgDatabase > &database) | |
virtual | ~CPVREpgTagsContainer () |
void | SetEpgID (int iEpgID) |
Set the EPG id for this EPG. | |
void | SetChannelData (const std::shared_ptr< CPVREpgChannelData > &data) |
Set the channel data for this EPG. | |
bool | UpdateEntry (const std::shared_ptr< CPVREpgInfoTag > &tag) |
Update an entry. | |
bool | DeleteEntry (const std::shared_ptr< CPVREpgInfoTag > &tag) |
Delete an entry. | |
bool | UpdateEntries (const CPVREpgTagsContainer &tags) |
Update all entries with the provided tags. | |
void | Clear () |
Release all entries. | |
void | Cleanup (const CDateTime &time) |
Remove all entries which were finished before the given time. | |
bool | IsEmpty () const |
Check whether this container is empty. | |
std::shared_ptr< CPVREpgInfoTag > | GetTag (const CDateTime &startTime) const |
Get an EPG tag given its start time. | |
std::shared_ptr< CPVREpgInfoTag > | GetTag (unsigned int iUniqueBroadcastID) const |
Get an EPG tag given its unique broadcast ID. | |
std::shared_ptr< CPVREpgInfoTag > | GetTagByDatabaseID (int iDatabaseID) const |
Get an EPG tag given its database ID. | |
std::shared_ptr< CPVREpgInfoTag > | GetTagBetween (const CDateTime &start, const CDateTime &end) const |
Get the event that occurs between the given begin and end time. | |
bool | UpdateActiveTag () |
Update the currently active event. | |
std::shared_ptr< CPVREpgInfoTag > | GetActiveTag () const |
Get the event that is occurring now. | |
std::shared_ptr< CPVREpgInfoTag > | GetNextStartingTag () const |
Get the event that will occur next. | |
std::shared_ptr< CPVREpgInfoTag > | GetLastEndedTag () const |
Get the event that occurred previously. | |
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. | |
std::vector< std::shared_ptr< CPVREpgInfoTag > > | GetAllTags () const |
Get all EPG tags. | |
std::pair< CDateTime, CDateTime > | GetFirstAndLastUncommitedEPGDate () const |
Get the start and end time of the last not yet commited entry in this EPG. | |
bool | NeedsSave () const |
Check whether this container has unsaved data. | |
void | QueuePersistQuery () |
Write the query to persist data into database's queue. | |
void | QueueDelete () |
Queue the deletion of this container from its database. | |
|
delete |
CPVREpgTagsContainer::CPVREpgTagsContainer | ( | int | iEpgID, |
const std::shared_ptr< CPVREpgChannelData > & | channelData, | ||
const std::shared_ptr< CPVREpgDatabase > & | database ) |
|
virtualdefault |
Remove all entries which were finished before the given time.
time | Delete entries with an end time before this time. |
void CPVREpgTagsContainer::Clear | ( | ) |
Release all entries.
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 | ( | ) | const |
Check whether this container is empty.
bool CPVREpgTagsContainer::NeedsSave | ( | ) | const |
Check whether this container has unsaved data.
void CPVREpgTagsContainer::QueueDelete | ( | ) |
Queue the deletion of this container from its database.
void CPVREpgTagsContainer::QueuePersistQuery | ( | ) |
Write the query to persist data into database's queue.
void CPVREpgTagsContainer::SetChannelData | ( | const std::shared_ptr< CPVREpgChannelData > & | data | ) |
Set the channel data for this EPG.
data | The channel data. |
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. |