1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* ttools.h: EPG2VDR plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef _TTOOLS_H_
#define _TTOOLS_H_
#include <vdr/timers.h>
#include "service.h"
//***************************************************************************
// Timer Tools
//***************************************************************************
int contentOfTag(const char* tag, const char* xml, char* buf, int size);
int contentOfTag(const cTimer* timer, const char* tag, char* buf, int size);
int contentOfTag(const cTimer* timer, const char* tag, int& value);
int getTimerIdOf(const cTimer* timer);
int getTimerIdOf(const char* aux);
void removeTag(char* xml, const char* tag);
int insertTag(char* xml, const char* parent, const char* tag, int value);
int insertTag(char* xml, const char* parent, const char* tag, const char* value);
int setTagTo(cTimer* timer, const char* tag, int value);
int setTagTo(cTimer* timer, const char* tag, const char* value);
int setTimerId(cTimer* timer, int tid);
cTimer* getTimerById(cTimers* timers, int timerid);
cTimer* getTimerByEvent(cTimers* timers, const cEvent* event);
cDbRow* newTimerRowFromEvent(const cEvent* event);
cDbRow* newRowFromTimer(const cTimer* t);
int updateRowByTimer(cDbRow* timerDb, const cTimer* t);
cEpgTimer* newTimerObjectFromRow(cDbRow* timerRow, cDbRow* vdrRow);
int updateTimerObjectFromRow(cTimer* timer, cDbRow* timerRow, const cEvent* event);
//***************************************************************************
#endif // _TTOOLS_H_
|