diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-11-19 18:53:09 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-11-19 18:53:09 +0100 |
commit | a5c871c47c721e1179bee7c4695169dd3344c0c2 (patch) | |
tree | c99be1c122c7ba57791ff68c512b661125acbcb6 /epg_events.h | |
parent | da560175d35965dbca9856f7192e0da172fa7d32 (diff) | |
download | vdr-plugin-live-a5c871c47c721e1179bee7c4695169dd3344c0c2.tar.gz vdr-plugin-live-a5c871c47c721e1179bee7c4695169dd3344c0c2.tar.bz2 |
new setup option to display channels without EPG
Diffstat (limited to 'epg_events.h')
-rw-r--r-- | epg_events.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/epg_events.h b/epg_events.h index 8678eef..6d59f8c 100644 --- a/epg_events.h +++ b/epg_events.h @@ -120,6 +120,34 @@ namespace vdrlive // ------------------------------------------------------------------------- + class EmptyEvent : public EpgInfo + { + friend class EpgEvents; + + protected: + EmptyEvent(std::string const &id, tChannelID const &channelID, const char* channelName); + + public: + virtual ~EmptyEvent(); + + virtual std::string const Title() const { return tr("no EPG available"); } + + virtual std::string const ShortDescr() const { return ""; } + + virtual std::string const LongDescr() const { return ""; } + + virtual time_t GetStartTime() const { return 0; } + + virtual time_t GetEndTime() const { return 0; } + + virtual cChannel const * Channel() const { return Channels.GetByChannelID(m_channelID);} + + private: + tChannelID m_channelID; + }; + + // ------------------------------------------------------------------------- + class EpgRecording : public EpgInfo { friend class EpgEvents; |