summaryrefslogtreecommitdiff
path: root/import.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-04-14 17:47:44 +0200
committerJochen Dolze <vdr@dolze.de>2012-04-14 17:47:44 +0200
commit8233bd640dca1c2b856039a223a4d4e916a3aaf0 (patch)
treea76b61eeeee3e1abdfde6a05057af163a19eafff /import.h
parentc2fa8e301d8266225ffcd735cd120bc4a1ffd234 (diff)
downloadvdr-plugin-xmltv2vdr-8233bd640dca1c2b856039a223a4d4e916a3aaf0.tar.gz
vdr-plugin-xmltv2vdr-8233bd640dca1c2b856039a223a4d4e916a3aaf0.tar.bz2
Added more checks
Diffstat (limited to 'import.h')
-rw-r--r--import.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/import.h b/import.h
index f3bebfc..b778d43 100644
--- a/import.h
+++ b/import.h
@@ -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);
};