summaryrefslogtreecommitdiff
path: root/epg_events.h
diff options
context:
space:
mode:
Diffstat (limited to 'epg_events.h')
-rw-r--r--epg_events.h10
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;