diff options
author | lado <herrlado@gmail.com> | 2011-11-11 14:52:40 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-11 14:52:40 +0100 |
commit | fe0c0ef9baf2bda6b2d6f2decd77cc27d1c40ed6 (patch) | |
tree | 1e2c58ec0a9307aad5fb86eb559a7bf27dc0503a /vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java | |
parent | 56cebda6b0e20f870dcf555ecc671c4ba57aaaf3 (diff) | |
download | vdr-manager-fe0c0ef9baf2bda6b2d6f2decd77cc27d1c40ed6.tar.gz vdr-manager-fe0c0ef9baf2bda6b2d6f2decd77cc27d1c40ed6.tar.bz2 |
new interface to say a event can have timer
Diffstat (limited to 'vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java index 721e839..709cb46 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Epg.java @@ -12,7 +12,7 @@ import static de.bjusystems.vdrmanager.gui.Utils.mapSpecialChars; * Class for EPG events * @author bju */ -public class Epg extends Event { +public class Epg extends Event implements Timerable { private Timer timer; @@ -25,6 +25,7 @@ public class Epg extends Event { title = mapSpecialChars(words[4]); description = words.length > 5 ? mapSpecialChars(words[5]): ""; shortText = words.length > 6 ? mapSpecialChars(words[6]) : ""; + channelId = words.length > 7 ? mapSpecialChars(words[7]) : ""; } @@ -43,4 +44,8 @@ public class Epg extends Event { return timer.getTimerState(); } } + + public Timer createTimer() { + return new Timer(this); + } } |