diff options
author | Frank Schmirler <vdr@schmirler.de> | 2010-12-02 09:39:01 +0100 |
---|---|---|
committer | Mikko Matilainen <mikkom@iki.fi> | 2011-03-24 19:20:05 +0200 |
commit | 635ccc479f3e0d62b3f52cb5407d06185e402f5b (patch) | |
tree | 8f56fa909f40656a130f41e3cab4898093fdb0e5 /server/menuHTTP.h | |
parent | db3274c046f4e2d44cb8263428073b6a43dca2fa (diff) | |
download | vdr-plugin-streamdev-635ccc479f3e0d62b3f52cb5407d06185e402f5b.tar.gz vdr-plugin-streamdev-635ccc479f3e0d62b3f52cb5407d06185e402f5b.tar.bz2 |
Snapshot 2010-09-15
Diffstat (limited to 'server/menuHTTP.h')
-rw-r--r-- | server/menuHTTP.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/server/menuHTTP.h b/server/menuHTTP.h index ecded86..d0f4211 100644 --- a/server/menuHTTP.h +++ b/server/menuHTTP.h @@ -13,9 +13,10 @@ class cChannelIterator const cChannel *channel; protected: virtual const cChannel* NextChannel(const cChannel *Channel) = 0; + static inline const cChannel* SkipFakeGroups(const cChannel *Channel); public: const cChannel* Next(); - cChannelIterator(cChannel *First); + cChannelIterator(const cChannel *First); virtual ~cChannelIterator() {}; }; @@ -48,6 +49,8 @@ class cListGroups: public cChannelIterator class cListGroup: public cChannelIterator { + private: + static const cChannel* GetNextChannelInGroup(const cChannel *Channel); protected: virtual const cChannel* NextChannel(const cChannel *Channel); public: @@ -155,4 +158,11 @@ class cM3uChannelList: public cChannelList virtual ~cM3uChannelList(); }; +inline const cChannel* cChannelIterator::SkipFakeGroups(const cChannel* Group) +{ + while (Group && Group->GroupSep() && !*Group->Name()) + Group = Channels.Next(Group); + return Group; +} + #endif |