summaryrefslogtreecommitdiff
path: root/epgsearchsetup.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-10-03 21:04:31 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-10-03 21:04:31 +0200
commitf0699b25e6bc82931075c88c49c046c4ab696f2c (patch)
treee1972a4931720e5a74e9ae07e86f6c7ac18d58de /epgsearchsetup.c
parentdf09c23571eee2d45b856aed17b38deca44b0bbb (diff)
downloadvdr-plugin-epgsearch-f0699b25e6bc82931075c88c49c046c4ab696f2c.tar.gz
vdr-plugin-epgsearch-f0699b25e6bc82931075c88c49c046c4ab696f2c.tar.bz2
search timer mails can now be buffered and delayed
Diffstat (limited to 'epgsearchsetup.c')
-rw-r--r--epgsearchsetup.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/epgsearchsetup.c b/epgsearchsetup.c
index 14ae56c..bb9a812 100644
--- a/epgsearchsetup.c
+++ b/epgsearchsetup.c
@@ -251,6 +251,7 @@ void cMenuEPGSearchSetup::Store(void)
SetupStore("AddSubtitleToTimerMode", EPGSearchConfig.addSubtitleToTimer);
SetupStore("MailNotificationSearchtimers", EPGSearchConfig.sendMailOnSearchtimers);
+ SetupStore("MailNotificationSearchtimersHours", EPGSearchConfig.sendMailOnSearchtimerHours);
SetupStore("MailNotificationConflicts", EPGSearchConfig.sendMailOnConflicts);
SetupStore("MailAddress", EPGSearchConfig.MailAddress);
SetupStore("MailAddressTo", EPGSearchConfig.MailAddressTo);
@@ -844,6 +845,11 @@ void cMenuSetupMailNotification::Set()
Add(new cMenuEditBoolItem(tr("Search timer notification"), &data->sendMailOnSearchtimers, trVDR("no"), trVDR("yes")));
AddHelp(tr("Help$Set this to 'yes' if you want to get an email notification about the search timers that where programmed automatically in the background."));
+ if (data->sendMailOnSearchtimers)
+ {
+ Add(new cMenuEditIntItem(IndentMenuItem(tr("Time between mails [h]")), &data->sendMailOnSearchtimerHours, 0, 999999, ""));
+ AddHelp(tr("Help$Specifiy how much time in [h] you would\nlike to have atleast between two mails.\nWith '0' you get a new mail after each\nsearch timer update with new results."));
+ }
Add(new cMenuEditBoolItem(tr("Timer conflict notification"), &data->sendMailOnConflicts, trVDR("no"), trVDR("yes")));
AddHelp(tr("Help$Set this to 'yes' if you want to get an email notification about the timer conflicts."));
@@ -932,6 +938,7 @@ void cMenuSetupMailNotification::SetHelpKeys()
eOSState cMenuSetupMailNotification::ProcessKey(eKeys Key)
{
int iTemp_MailUseAuth = data->MailUseAuth;
+ int iTemp_sendMailOnSearchtimers = data->sendMailOnSearchtimers;
int iTemp_mailViaScript = data->mailViaScript;
const char* ItemText = Get(Current())->Text();
@@ -963,7 +970,8 @@ eOSState cMenuSetupMailNotification::ProcessKey(eKeys Key)
}
if (iTemp_MailUseAuth != data->MailUseAuth ||
- iTemp_mailViaScript != data->mailViaScript)
+ iTemp_mailViaScript != data->mailViaScript ||
+ iTemp_sendMailOnSearchtimers != data->sendMailOnSearchtimers)
{
Set();
Display();