summaryrefslogtreecommitdiff
path: root/import.h
diff options
context:
space:
mode:
Diffstat (limited to 'import.h')
-rw-r--r--import.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/import.h b/import.h
index 1713ea2..1bc73b8 100644
--- a/import.h
+++ b/import.h
@@ -48,11 +48,12 @@ private:
cEPGSource *source;
cTEXTMappings *texts;
cCharSetConv *conv;
+ bool pendingtransaction;
const char *epgfile;
char *RemoveLastCharFromDescription(char *description);
- char *Add2Description(char *description, const char *Value);
- char *Add2Description(char *description, const char *Name, const char *Value);
- char *Add2Description(char *description, const char *Name, int Value);
+ char *Add2Description(char *description, const char *value);
+ char *Add2Description(char *description, const char *name, const char *value);
+ char *Add2Description(char *description, const char *name, int value);
char *AddEOT2Description(char *description);
struct split split(char *in, char delim);
cEvent *GetEventBefore(cSchedule* schedule, time_t start);
@@ -64,11 +65,12 @@ public:
cImport(cEPGSource *Source, cEPGMappings *Maps, cTEXTMappings *Texts);
~cImport();
int Process(cEPGExecutor &myExecutor);
+ void Commit(sqlite3 *Db);
bool WasChanged(cEvent *Event);
bool PutEvent(cEPGSource *source, sqlite3 *db, cSchedule* schedule, cEvent *event,
cXMLTVEvent *xevent, int Flags, int Option=IMPORT_ALL);
- cXMLTVEvent *SearchXMLTVEvent(const char *EPGFile, const char *ChannelID, const cEvent *Event);
- void UpdateXMLTVEvent(cEPGSource *Source, const char *EPGFile, sqlite3 *Db, const cEvent *Event,
+ cXMLTVEvent *SearchXMLTVEvent(sqlite3 **Db, const char *ChannelID, const cEvent *Event);
+ void UpdateXMLTVEvent(cEPGSource *Source, sqlite3 *Db, const cEvent *Event,
const char *SourceName, tEventID EventID, tEventID EITEventID,
const char *EITDescription=NULL);
cXMLTVEvent *AddXMLTVEvent(const char *EPGFile, const char *ChannelID, const cEvent *Event,