diff options
author | Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi> | 2011-02-10 13:14:57 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-02-10 22:41:13 +0100 |
commit | 36485b88308aef886c2b99f07d574e4962d1969b (patch) | |
tree | edda6855c83186cf41c602ba91e6800d8b1ea7c2 /setup.cpp | |
parent | 23562a42a5a5d776330b42823fe844493b574830 (diff) | |
download | vdr-plugin-live-36485b88308aef886c2b99f07d574e4962d1969b.tar.gz vdr-plugin-live-36485b88308aef886c2b99f07d574e4962d1969b.tar.bz2 |
Added support for sorting recordings by name and date in both ascending and descending orders.
Diffstat (limited to 'setup.cpp')
-rw-r--r-- | setup.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -40,6 +40,7 @@ Setup::Setup(): m_scheduleDuration( "8" ), m_theme("marine"), m_lastwhatsonlistmode("detail"), + m_lastsortingmode("nameasc"), m_tntnetloglevel("WARN"), m_showRecDuration(1), m_showLogo(1), @@ -129,6 +130,7 @@ bool Setup::ParseSetupEntry( char const* name, char const* value ) else if ( strcmp( name, "Theme" ) == 0 ) m_theme = value; else if ( strcmp( name, "LocalNetMask" ) == 0 ) { m_localnetmask = value; } else if ( strcmp( name, "LastWhatsOnListMode" ) == 0 ) { m_lastwhatsonlistmode = value; } + else if ( strcmp( name, "LastSortingMode" ) == 0 ) { m_lastsortingmode = value; } else if ( strcmp( name, "ShowRecDuration" ) == 0 ) { m_showRecDuration = atoi(value); } else if ( strcmp( name, "ShowLogo" ) == 0 ) { m_showLogo = atoi(value); } else if ( strcmp( name, "UseAjax" ) == 0 ) { m_useAjax = atoi(value); } @@ -297,6 +299,7 @@ bool Setup::SaveSetup() liveplugin->SetupStore("StartPage", m_startscreen.c_str()); liveplugin->SetupStore("Theme", m_theme.c_str()); liveplugin->SetupStore("LastWhatsOnListMode", m_lastwhatsonlistmode.c_str()); + liveplugin->SetupStore("LastSortingMode", m_lastsortingmode.c_str()); liveplugin->SetupStore("ShowRecDuration", m_showRecDuration); liveplugin->SetupStore("ShowLogo", m_showLogo); liveplugin->SetupStore("UseAjax", m_useAjax); |