diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-08-05 14:02:47 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-08-05 14:02:47 +0200 |
commit | 8f13f082303ae844d8408b78c8c8fa4c5c9b1d26 (patch) | |
tree | 2c169bdcef39d35dc4f60b7dab1004c727ffb973 /xmltv2vdr.h | |
parent | fd38b68561f3c2b0bf2cf369cc3cc48dbca60fc8 (diff) | |
download | vdr-plugin-xmltv2vdr-8f13f082303ae844d8408b78c8c8fa4c5c9b1d26.tar.gz vdr-plugin-xmltv2vdr-8f13f082303ae844d8408b78c8c8fa4c5c9b1d26.tar.bz2 |
Prevent mapping deletion of an disabled channel
Added proper thread cleanup
Diffstat (limited to 'xmltv2vdr.h')
-rw-r--r-- | xmltv2vdr.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmltv2vdr.h b/xmltv2vdr.h index 1d05782..14bbf12 100644 --- a/xmltv2vdr.h +++ b/xmltv2vdr.h @@ -42,6 +42,8 @@ public: class cEPGChannels : public cList<cEPGChannel> {}; +class cEPGExecutor; + class cEPGSource : public cListObject { private: @@ -60,7 +62,7 @@ private: public: cEPGSource(const char *Name,const char *ConfDir,cEPGMappings *Maps,cTEXTMappings *Texts); ~cEPGSource(); - int Execute(); + int Execute(cEPGExecutor &myExecutor); void Store(void); void ChangeChannelSelection(int *Selection); cEPGChannels *ChannelList() @@ -106,6 +108,13 @@ private: cEPGSources *sources; public: cEPGExecutor(cEPGSources *Sources); + bool StillRunning() { + return Running(); + } + void Stop() + { + Cancel(3); + } virtual void Action(); }; |