summaryrefslogtreecommitdiff
path: root/setup-image.c
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2013-02-12 19:15:00 +0100
committeranbr <vdr07@deltab.de>2013-02-12 19:15:00 +0100
commitab902d3962df5dbe8c8d707da96cdf279ca3b439 (patch)
tree1bbb74443b1790665e971f4cd1a90a61933ef91a /setup-image.c
parentc92ba1c907240415fd7caab5b757bbdeb73efc17 (diff)
downloadvdr-plugin-image-ab902d3962df5dbe8c8d707da96cdf279ca3b439.tar.gz
vdr-plugin-image-ab902d3962df5dbe8c8d707da96cdf279ca3b439.tar.bz2
Patch for compiling with VDR 1.7.36, thanks to Ulrich Eckhardt, for summit a patch (Closes: #1251)
Diffstat (limited to 'setup-image.c')
-rw-r--r--setup-image.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup-image.c b/setup-image.c
index 92c9317..bc9bc2e 100644
--- a/setup-image.c
+++ b/setup-image.c
@@ -45,6 +45,7 @@ cImageSetup::cImageSetup(void)
m_bLiveAudio = 0;
m_bHousekeeping = 1;
m_bUseDeviceStillPicture = 1;
+ m_bRemoveImmediately = false;
m_nBorderHeight = 16;
m_nBorderWidth = 16;
@@ -73,6 +74,7 @@ bool cImageSetup::SetupParse(const char *szName, const char *szValue)
else ParseInteger("Housekeeping", m_bHousekeeping,0,1)
else ParseInteger("HideMainMenu", m_bHideMenu,0,1)
else ParseInteger("UseDeviceStillPicture", m_bUseDeviceStillPicture,0,1)
+ else ParseInteger("RemoveImmediately", m_bRemoveImmediately,0,1)
else if(!strcasecmp(szName, "TempDir")) {
strn0cpy(m_szTempDir,szValue,sizeof(m_szTempDir));
}
@@ -95,6 +97,7 @@ void cMenuSetupImage::Store(void)
SetupStore("BorderWidth", ImageSetup.m_nBorderWidth);
SetupStore("HideMainMenu", ImageSetup.m_bHideMenu);
SetupStore("UseDeviceStillPicture", ImageSetup.m_bUseDeviceStillPicture);
+ SetupStore("RemoveImmediately", ImageSetup.m_bRemoveImmediately);
}
cMenuSetupImage::cMenuSetupImage(void)
@@ -134,6 +137,10 @@ cMenuSetupImage::cMenuSetupImage(void)
m_tmpSetup.m_szTempDir,sizeof(m_tmpSetup.m_szTempDir),
"abcdefghijklmopqrstuvwxyz/-"));
+ Add(new cMenuEditBoolItem(tr("Remove temporary files immediately"),
+ &m_tmpSetup.m_bRemoveImmediately,
+ trVDR("no"), trVDR("yes")));
+
Add(new cMenuEditBoolItem(tr("Remove temporary files"),
&m_tmpSetup.m_bHousekeeping,
trVDR("no"), trVDR("yes")));