summaryrefslogtreecommitdiff
path: root/timerconflict.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-01-02 11:25:58 +0100
committerlouis <louis.braun@gmx.de>2014-01-02 11:25:58 +0100
commite6335e9c4499bb1eae8e8115ae6ce26e878aa344 (patch)
tree13ef5591fb80d2c17455e23f812486f713da1170 /timerconflict.c
parenteede61ade5b226480ebbe1e29235df58170a24bd (diff)
downloadvdr-plugin-tvguide-e6335e9c4499bb1eae8e8115ae6ce26e878aa344.tar.gz
vdr-plugin-tvguide-e6335e9c4499bb1eae8e8115ae6ce26e878aa344.tar.bz2
Added timer Timeline view in red button recording menu
Diffstat (limited to 'timerconflict.c')
-rw-r--r--timerconflict.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/timerconflict.c b/timerconflict.c
index 3488487..e2a1fee 100644
--- a/timerconflict.c
+++ b/timerconflict.c
@@ -165,3 +165,13 @@ cTVGuideTimerConflict *cTVGuideTimerConflicts::GetConflict(int conflictIndex) {
return NULL;
return conflicts[conflictIndex];
}
+
+std::vector<cTVGuideTimerConflict*> cTVGuideTimerConflicts::GetConflictsBetween(time_t start, time_t stop) {
+ std::vector<cTVGuideTimerConflict*> conflictsFound;
+ for (int i=0; i < numConflicts; i++) {
+ if ((conflicts[i]->timeStart > start) && (conflicts[i]->timeStart < stop)||
+ (conflicts[i]->timeStop > start) && (conflicts[i]->timeStop < stop))
+ conflictsFound.push_back(conflicts[i]);
+ }
+ return conflictsFound;
+} \ No newline at end of file