diff options
author | Jochen Dolze <vdr@dolze.de> | 2012-04-14 17:47:44 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2012-04-14 17:47:44 +0200 |
commit | 8233bd640dca1c2b856039a223a4d4e916a3aaf0 (patch) | |
tree | a76b61eeeee3e1abdfde6a05057af163a19eafff /import.h | |
parent | c2fa8e301d8266225ffcd735cd120bc4a1ffd234 (diff) | |
download | vdr-plugin-xmltv2vdr-8233bd640dca1c2b856039a223a4d4e916a3aaf0.tar.gz vdr-plugin-xmltv2vdr-8233bd640dca1c2b856039a223a4d4e916a3aaf0.tar.bz2 |
Added more checks
Diffstat (limited to 'import.h')
-rw-r--r-- | import.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -64,14 +64,15 @@ public: cImport(const char *EPGFile, cEPGMappings *Maps, cTEXTMappings *Texts); ~cImport(); int Process(cEPGSource *Source, cEPGExecutor &myExecutor); - void Commit(cEPGSource *Source, sqlite3 *Db); + bool Begin(cEPGSource *Source, sqlite3 *Db); + bool Commit(cEPGSource *Source, sqlite3 *Db); bool PutEvent(cEPGSource *Source, sqlite3 *Db, cSchedule* Schedule, cEvent *Event, cXMLTVEvent *xEvent, int Flags, int Option=IMPORT_ALL); - void UpdateXMLTVEvent(cEPGSource *Source, sqlite3 *Db, const cEvent *Event, + bool UpdateXMLTVEvent(cEPGSource *Source, sqlite3 *Db, const cEvent *Event, tEventID EventID, tEventID EITEventID, const char *EITDescription=NULL); cXMLTVEvent *SearchXMLTVEvent(sqlite3 **Db, const char *ChannelID, const cEvent *Event); - cXMLTVEvent *AddXMLTVEvent(sqlite3 *Db, const char *ChannelID, const cEvent *Event, - const char *EITDescription); + cXMLTVEvent *AddXMLTVEvent(cEPGSource *Source, sqlite3 *Db, const char *ChannelID, + const cEvent *Event, const char *EITDescription); bool WasChanged(cEvent *Event); }; |