From 81a3b0255bbf74bd6d6fe17cef394a4d4f338b09 Mon Sep 17 00:00:00 2001 From: horchi Date: Fri, 16 Feb 2018 08:04:37 +0100 Subject: 2018-02-13 version 1.1.84 (horchi)\n - added: Timer 'type' to timers menu\n\n --- menu.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'menu.h') diff --git a/menu.h b/menu.h index 704c120..e00079b 100644 --- a/menu.h +++ b/menu.h @@ -76,7 +76,7 @@ class cMenuDb : public cParameters int createSwitchTimer(const cEvent* event); int createTimer(cDbRow* timerRow, const char* destUuid, int type = ttRecord); - int modifyTimer(cDbRow* timerRow, const char* destUuid = 0); + int modifyTimer(cDbRow* timerRow, const char* destUuid, char destType); int deleteTimer(long timerid); // @@ -206,6 +206,8 @@ class cMenuEpgEditTimer : public cOsdMenu strcpy(file, Timer->File()); vdrIndex = 0; free(aux); aux = 0; + createTime = Timer->CreateTime(); + modTime = Timer->ModTime(); if (New) flags |= tfActive; @@ -218,6 +220,7 @@ class cMenuEpgEditTimer : public cOsdMenu state = Timer->State(); sprintf(stateInfo, "%.300s", Timer->StateInfo()); action = Timer->Action(); + type = Timer->Type(); strcpy(lastVdrUuid, Timer->VdrUuid()); for (int i = 0; i < db->vdrCount; i++) @@ -247,6 +250,7 @@ class cMenuEpgEditTimer : public cOsdMenu timerRow->setValue("PRIORITY", priority); timerRow->setValue("LIFETIME", lifetime); timerRow->setValue("EVENTID", eventid); + // don't set TYPE here !!! timerRow->setValue("TYPE", type); if needed we have to do it via lastType like VdrUuid return done; } @@ -263,7 +267,11 @@ class cMenuEpgEditTimer : public cOsdMenu char state; char stateInfo[300+TB]; char action; + char type; int vdrIndex; + int typeIndex; + time_t createTime; + time_t modTime; const cChannel* channel; mutable time_t day; mutable char file[NAME_MAX*2 + TB]; // *2 to be able to hold 'title' and 'episode', which can each be up to 255 characters long -- cgit v1.2.3