From 8837aea4cc0f6f3c258631bddbc541696e70dc1c Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sat, 29 Jan 2011 17:52:27 +0100 Subject: 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 --- setup.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setup.h') 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; -- cgit v1.2.3