summaryrefslogtreecommitdiff
path: root/epg_events.h
diff options
context:
space:
mode:
Diffstat (limited to 'epg_events.h')
-rw-r--r--epg_events.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/epg_events.h b/epg_events.h
index 15e4b36..8678eef 100644
--- a/epg_events.h
+++ b/epg_events.h
@@ -35,6 +35,8 @@ namespace vdrlive
virtual std::string const LongDescr() const = 0;
+ virtual cChannel const * Channel() const { return 0; }
+
virtual std::string const Archived() const { return ""; }
virtual std::string const StartTime(const char* format) const;
@@ -95,7 +97,7 @@ namespace vdrlive
protected:
EpgEvent(std::string const &id,
cEvent const *event,
- char const *channelName = "");
+ char const *channelName);
public:
virtual ~EpgEvent();
@@ -110,8 +112,10 @@ namespace vdrlive
virtual time_t GetEndTime() const { return m_event->EndTime(); }
+ virtual cChannel const * Channel() const { return Channels.GetByChannelID(m_event->ChannelID());}
+
private:
- const cEvent* m_event;
+ cEvent const * m_event;
};
// -------------------------------------------------------------------------