mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
#ifndef __TVGUIDE_CHANNELCOLUMN_H
|
|
#define __TVGUIDE_CHANNELCOLUMN_H
|
|
|
|
class cGrid;
|
|
class cEpgGrid;
|
|
class cHeaderGrid;
|
|
// --- cChannelColumn -------------------------------------------------------------
|
|
|
|
class cChannelColumn : public cListObject, public cStyledPixmap {
|
|
private:
|
|
cMyTime *myTime;
|
|
int num;
|
|
const cChannel *channel;
|
|
cHeaderGrid *header;
|
|
cList<cGrid> grids;
|
|
cSchedulesLock *schedulesLock;
|
|
const cSchedules *schedules;
|
|
bool hasTimer;
|
|
cGrid *addEpgGrid(const cEvent *event, cGrid *firstGrid, bool color);
|
|
cGrid *addDummyGrid(time_t start, time_t end, cGrid *firstGrid, bool color);
|
|
public:
|
|
cChannelColumn(int num, const cChannel *channel, cMyTime *myTime);
|
|
virtual ~cChannelColumn(void);
|
|
void createHeader();
|
|
void drawHeader();
|
|
bool readGrids();
|
|
void drawGrids();
|
|
int getX();
|
|
int getY();
|
|
int Start() { return myTime->GetStart(); };
|
|
int Stop() { return myTime->GetEnd(); };
|
|
const char* Name() { return channel->Name(); };
|
|
const cChannel * getChannel() {return channel;}
|
|
cGrid * getActive();
|
|
cGrid * getNext(cGrid *activeGrid);
|
|
cGrid * getPrev(cGrid *activeGrid);
|
|
cGrid * getNeighbor(cGrid *activeGrid);
|
|
bool isFirst(cGrid *grid);
|
|
void AddNewGridsAtStart();
|
|
void AddNewGridsAtEnd();
|
|
void ClearOutdatedStart();
|
|
void ClearOutdatedEnd();
|
|
int GetNum() {return num;};
|
|
void SetNum(int num) {this->num = num;};
|
|
void setTimer() {hasTimer = true;};
|
|
bool HasTimer() { return hasTimer; };
|
|
void clearGrids();
|
|
void dumpGrids();
|
|
};
|
|
|
|
#endif //__TVGUIDE_CHANNELCOLUMN_H
|