diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-01-13 13:46:22 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-01-13 13:46:22 +0100 |
commit | 3be2cb060c30581bd1c59c72a90b0d0c3f79bd45 (patch) | |
tree | d2aa801a41a49dc56e1b08dfd82ea04ad3b35e0a /epg_events.h | |
parent | 3aebe74569e17712947b3cd1d1aa0d5ae108fca9 (diff) | |
download | vdr-plugin-live-3be2cb060c30581bd1c59c72a90b0d0c3f79bd45.tar.gz vdr-plugin-live-3be2cb060c30581bd1c59c72a90b0d0c3f79bd45.tar.bz2 |
- code for collecting and displaying EPG events in 'What's on' is now separated
Diffstat (limited to 'epg_events.h')
-rw-r--r-- | epg_events.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/epg_events.h b/epg_events.h index 15e4b36..f1b8bdf 100644 --- a/epg_events.h +++ b/epg_events.h @@ -35,6 +35,8 @@ namespace vdrlive virtual std::string const LongDescr() const = 0; + virtual const cChannel* Channel() const = 0; + virtual std::string const Archived() const { return ""; } virtual std::string const StartTime(const char* format) const; @@ -82,6 +84,8 @@ namespace vdrlive virtual time_t GetEndTime() const; + virtual const cChannel* Channel() const; + private: const std::string m_info; }; @@ -95,7 +99,7 @@ namespace vdrlive protected: EpgEvent(std::string const &id, cEvent const *event, - char const *channelName = ""); + const char* channelName); public: virtual ~EpgEvent(); @@ -110,6 +114,8 @@ namespace vdrlive virtual time_t GetEndTime() const { return m_event->EndTime(); } + virtual const cChannel* Channel() const { return Channels.GetByChannelID(m_event->ChannelID());} + private: const cEvent* m_event; }; @@ -144,6 +150,8 @@ namespace vdrlive virtual time_t GetEndTime() const; + virtual const cChannel* Channel() const; + private: const cRecording* m_recording; bool m_ownCaption; |