summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-01-29 17:52:27 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-01-29 17:52:27 +0100
commit8837aea4cc0f6f3c258631bddbc541696e70dc1c (patch)
tree2f7a0c12e8cc860f72a82aece7298035807c2b5d /setup.h
parent722a7aef8596b5b38f1bfbe34922832e941f0f82 (diff)
downloadvdr-plugin-live-8837aea4cc0f6f3c258631bddbc541696e70dc1c.tar.gz
vdr-plugin-live-8837aea4cc0f6f3c258631bddbc541696e70dc1c.tar.bz2
Applied patch supplied by Rolf Ahrenberg to omit recordings durations.
This helps in scanning large amounts of recordings, because not for every recoding a file is scanned for either its size or the length.vdr file. The patch (live-git-20110129-showrecduration.patch.gz) was submitted on vdr-portal.de in the post: http://www.vdr-portal.de/board/thread.php?postid=974612#post974612
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.h b/setup.h
index a22051e..0fcbd17 100644
--- a/setup.h
+++ b/setup.h
@@ -54,6 +54,7 @@ class Setup
bool GetIsLocalNet() const { return m_islocalnet; };
std::string const GetLastWhatsOnListMode() const { return m_lastwhatsonlistmode; }
std::string const GetTntnetLogLevel() const { return m_tntnetloglevel; }
+ bool GetShowRecDuration() const { return m_showRecDuration != 0; }
bool GetShowLogo() const { return m_showLogo != 0; }
bool GetUseAjax() const { return m_useAjax != 0; }
bool GetShowInfoBox() const { return m_showInfoBox != 0; }
@@ -77,6 +78,7 @@ class Setup
void SetLocalNetMask(std::string const & localnetmask) { m_localnetmask = localnetmask; }
void SetIsLocalNet(bool islocalnet) { m_islocalnet = islocalnet; }
void SetLastWhatsOnListMode(std::string const & mode) { m_lastwhatsonlistmode = mode; SaveSetup(); }
+ void SetShowRecDuration(bool show) { m_showRecDuration = show ? 1 : 0; }
void SetShowLogo(bool show) { m_showLogo = show ? 1 : 0; }
void SetUseAjax(bool use) { m_useAjax = use ? 1 : 0; }
void SetShowInfoBox(bool show) { m_showInfoBox = show ? 1 : 0; }
@@ -131,6 +133,7 @@ class Setup
bool m_islocalnet;
std::string m_lastwhatsonlistmode;
std::string m_tntnetloglevel;
+ int m_showRecDuration;
int m_showLogo;
int m_useAjax;
int m_showInfoBox;