summaryrefslogtreecommitdiff
path: root/channelcolumn.c
diff options
context:
space:
mode:
Diffstat (limited to 'channelcolumn.c')
-rw-r--r--channelcolumn.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/channelcolumn.c b/channelcolumn.c
index dae36a0..8ed34b0 100644
--- a/channelcolumn.c
+++ b/channelcolumn.c
@@ -5,6 +5,7 @@ cChannelColumn::cChannelColumn(int num, const cChannel *channel, cMyTime *myTime
this->num = num;
this->myTime = myTime;
hasTimer = channel->HasTimer();
+ hasSwitchTimer = SwitchTimers.ChannelInSwitchList(channel);
schedulesLock = new cSchedulesLock(false, 100);
header = NULL;
}
@@ -339,6 +340,22 @@ cGrid *cChannelColumn::addDummyGrid(time_t start, time_t end, cGrid *firstGrid,
return dummy;
}
+void cChannelColumn::SetTimers() {
+ hasTimer = channel->HasTimer();
+ hasSwitchTimer = SwitchTimers.ChannelInSwitchList(channel);
+ for (cGrid *grid = grids.First(); grid; grid = grids.Next(grid)) {
+ bool gridHadTimer = grid->HasTimer();
+ grid->SetTimer();
+ if (gridHadTimer != grid->HasTimer())
+ grid->SetDirty();
+ bool gridHadSwitchTimer = grid->HasSwitchTimer();
+ grid->SetSwitchTimer();
+ if (gridHadSwitchTimer != grid->HasSwitchTimer())
+ grid->SetDirty();
+ grid->Draw();
+ }
+}
+
void cChannelColumn::dumpGrids() {
esyslog("tvguide: ------Channel %s: %d entires ---------", channel->Name(), grids.Count());
int i=1;