diff options
author | horchi <vdr@jwendel.de> | 2018-02-17 15:34:44 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-02-17 15:34:44 +0100 |
commit | 9647640dc7017c2cdaa34037d5114ecdd212466b (patch) | |
tree | ae59d157bc3659b73ad73609671a56a7aaca7653 /services | |
parent | e068cb93fde2326bd9b6e76a71ae58d62b1503d9 (diff) | |
download | vdr-plugin-skindesigner-1.2.6.tar.gz vdr-plugin-skindesigner-1.2.6.tar.bz2 |
extended epg2vdr timer interface for schedules1.2.6
Diffstat (limited to 'services')
-rw-r--r-- | services/epgtimer.h | 58 |
1 files changed, 24 insertions, 34 deletions
diff --git a/services/epgtimer.h b/services/epgtimer.h index 7674668..0e7a3ee 100644 --- a/services/epgtimer.h +++ b/services/epgtimer.h @@ -17,24 +17,6 @@ // Timer - Skin Interface //*************************************************************************** -class cEpgEvent_Interface_V1 : public cEvent -{ - public: - - cEpgEvent_Interface_V1(tEventID EventID) - : cEvent(EventID) {} - - // #TODO ... getter - - protected: - - // #TODO ... attributes -}; - -//*************************************************************************** -// Timer - Skin Interface -//*************************************************************************** - class cEpgTimer_Interface_V1 : public cTimer { public: @@ -90,7 +72,7 @@ class cEpgTimer_Interface_V1 : public cTimer }; //*************************************************************************** -// Timer - Service Interface +// Timer Service //*************************************************************************** struct cEpgTimer_Service_V1 @@ -98,23 +80,28 @@ struct cEpgTimer_Service_V1 std::list<cEpgTimer_Interface_V1*> epgTimers; }; -#define EPG2VDR_TIMER_SERVICE "Epg2Vdr_Timer_Service-v1.0" - -#ifdef EPG2VDR - //*************************************************************************** -// Class cEpgEvent +// Timer Detail Service //*************************************************************************** -class cEpgEvent : public cEpgEvent_Interface_V1 +struct cTimer_Detail_V1 { - public: + long eventid; + int hastimer; + int local; + char type; +}; - cEpgEvent(tEventID EventID); - virtual ~cEpgEvent() {} +#define EPG2VDR_TIMER_DETAIL_SERVICE "Epg2Vdr_Timer_Detail_Service-v1.0" +#define EPG2VDR_TIMER_SERVICE "Epg2Vdr_Timer_Service-v1.0" - // #TODO ... setter -}; +#ifdef EPG2VDR + +//*************************************************************************** +//*************************************************************************** +//*************************************************************************** +// EPG2VDR Internal Stuff +//*************************************************************************** //*************************************************************************** // Class cEpgTimer @@ -124,13 +111,16 @@ class cEpgTimer : public cEpgTimer_Interface_V1 { public: - cEpgTimer(bool Instant = false, bool Pause = false, cChannel* Channel = 0); + cEpgTimer(bool Instant = false, bool Pause = false, const cChannel* Channel = 0); virtual ~cEpgTimer(); - void setTimerId(long id) { timerid = id; } - void setEventId(long id) { eventid = id; } + void setTimerId(long id) { timerid = id; } + void setEventId(long id) { eventid = id; } + void setAction(char a) { action = a; } + void setType(char t) { type = t; } + void setCreateTime(time_t t) { createTime = t; } + void setModTime(time_t t) { modTime = t; } void setState(char s, const char* info); - void setAction(char a); void setVdr(const char* name, const char* uuid = 0, int running = 0); }; |