summaryrefslogtreecommitdiff
path: root/channelcolumn.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-01-17 13:16:44 +0100
committerlouis <louis.braun@gmx.de>2013-01-17 13:16:44 +0100
commit47c3fea545a1b4607deda1e7d2fa51cbcf89a656 (patch)
tree4109469360bfb71ce467c240a33d0738ad44c18e /channelcolumn.h
downloadvdr-plugin-tvguide-47c3fea545a1b4607deda1e7d2fa51cbcf89a656.tar.gz
vdr-plugin-tvguide-47c3fea545a1b4607deda1e7d2fa51cbcf89a656.tar.bz2
Initial push tvguide 0.0.1
Diffstat (limited to 'channelcolumn.h')
-rw-r--r--channelcolumn.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/channelcolumn.h b/channelcolumn.h
new file mode 100644
index 0000000..28064d2
--- /dev/null
+++ b/channelcolumn.h
@@ -0,0 +1,41 @@
+#ifndef __TVGUIDE_CHANNELCOLUMN_H
+#define __TVGUIDE_CHANNELCOLUMN_H
+
+class cEpgGrid;
+// --- cChannelColumn -------------------------------------------------------------
+
+class cChannelColumn : public cListObject, public cStyledPixmap {
+friend class cEpgGrid;
+private:
+ cMyTime *myTime;
+ int num;
+ cChannel *channel;
+ cList<cEpgGrid> grids;
+ cSchedulesLock schedulesLock;
+ const cSchedules *schedules;
+ bool hasTimer;
+public:
+ cChannelColumn(int num, cChannel *channel, cMyTime *myTime);
+ virtual ~cChannelColumn(void);
+ void createHeader();
+ void drawHeader();
+ bool readGrids();
+ void drawGrids();
+ int getX();
+ cChannel * getChannel() {return channel;}
+ cEpgGrid * getActive();
+ cEpgGrid * getNext(cEpgGrid *activeGrid);
+ cEpgGrid * getPrev(cEpgGrid *activeGrid);
+ cEpgGrid * getNeighbor(cEpgGrid *activeGrid);
+ void AddNewGridsAtStart();
+ void AddNewGridsAtEnd();
+ void ClearOutdatedStart();
+ void ClearOutdatedEnd();
+ int GetNum() {return num;};
+ void SetNum(int num) {this->num = num;};
+ void setTimer() {hasTimer = true;};
+ void clearGrids();
+ void dumpGrids();
+};
+
+#endif //__TVGUIDE_CHANNELCOLUMN_H \ No newline at end of file