summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authormartin <martin@localhost.localdomain>2011-01-15 16:59:59 +0100
committermartin <martin@localhost.localdomain>2011-01-15 16:59:59 +0100
commit015380b9fd9f4e3b34edc83d2ee57db1aa809c34 (patch)
treeb5e817fc36c2199a27a54e2b9a94df5a0bb8a9ca /setup.cpp
parent807c23e6213b71abd46b62d9f07a05c1c57190ed (diff)
downloadvdr-plugin-live-015380b9fd9f4e3b34edc83d2ee57db1aa809c34.tar.gz
vdr-plugin-live-015380b9fd9f4e3b34edc83d2ee57db1aa809c34.tar.bz2
- make MultiSchedule duration configurable
- by default show the channel group containing the current channel - show "switch to this channel"-buttons
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.cpp b/setup.cpp
index 9517027..5737378 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -36,6 +36,8 @@ Setup::Setup():
m_screenshotInterval( 1000 ),
m_useAuth( 1 ),
m_adminLogin("admin"),
+ m_channelGroups( "" ),
+ m_scheduleDuration( "8" ),
m_theme("marine"),
m_lastwhatsonlistmode("detail"),
m_tntnetloglevel("WARN"),
@@ -121,6 +123,7 @@ bool Setup::ParseSetupEntry( char const* name, char const* value )
else if ( strcmp( name, "AdminPasswordMD5" ) == 0 ) m_adminPasswordMD5 = value;
else if ( strcmp( name, "UserdefTimes" ) == 0 ) m_times = value;
else if ( strcmp( name, "ChannelGroups" ) == 0 ) m_channelGroups = value;
+ else if ( strcmp( name, "ScheduleDuration" ) == 0 ) m_scheduleDuration = value;
else if ( strcmp( name, "StartPage" ) == 0 ) m_startscreen = value;
else if ( strcmp( name, "Theme" ) == 0 ) m_theme = value;
else if ( strcmp( name, "LocalNetMask" ) == 0 ) { m_localnetmask = value; }
@@ -224,6 +227,8 @@ std::string const Setup::GetStartScreenLink() const
return "whats_on.html?type=next";
else if (m_startscreen == "schedule")
return "schedule.html";
+ else if (m_startscreen == "multischedule")
+ return "multischedule.html";
else if (m_startscreen == "timers")
return "timers.html";
else if (m_startscreen == "recordings")
@@ -286,6 +291,7 @@ bool Setup::SaveSetup()
}
liveplugin->SetupStore("UserdefTimes", m_times.c_str());
liveplugin->SetupStore("ChannelGroups", m_channelGroups.c_str());
+ liveplugin->SetupStore("ScheduleDuration", m_scheduleDuration.c_str());
liveplugin->SetupStore("StartPage", m_startscreen.c_str());
liveplugin->SetupStore("Theme", m_theme.c_str());
liveplugin->SetupStore("LastWhatsOnListMode", m_lastwhatsonlistmode.c_str());