vdr-plugin-tvguide/channelgroups.h

31 lines
982 B
C
Raw Normal View History

2013-05-31 13:58:22 +02:00
#ifndef __TVGUIDE_CHANNELGROUPS_H
#define __TVGUIDE_CHANNELGROUPS_H
2013-12-07 15:51:50 +01:00
#include <vector>
#include <vdr/channels.h>
#include "channelgroup.h"
2013-05-31 13:58:22 +02:00
// --- cChannelGroups -------------------------------------------------------------
class cChannelGroups {
private:
std::vector<cChannelGroup> channelGroups;
cList<cChannelGroupGrid> groupGrids;
public:
cChannelGroups(void);
virtual ~cChannelGroups(void);
void ReadChannelGroups(void);
const char* GetPrev(int group);
const char* GetNext(int group);
int GetGroup(const cChannel *channel);
int GetPrevGroupChannelNumber(const cChannel *channel);
int GetNextGroupChannelNumber(const cChannel *channel);
bool IsInLastGroup(const cChannel *channel);
void DrawChannelGroups(const cChannel *start, const cChannel *stop);
void CreateGroupGrid(const char *name, int number, int start, int end);
int GetLastValidChannel(void);
2013-05-31 13:58:22 +02:00
void DumpGroups(void);
};
#endif //__TVGUIDE_CHANNELGROUPS_H