diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-05-31 19:24:57 +0000 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-05-31 19:24:57 +0000 |
commit | 4a7724fb059e41e997958ff32a033b2741fbb304 (patch) | |
tree | 1c2b0c008057bcf82c583f9316d8f439ca16db49 /setup.cpp | |
parent | 32f43f75311d369ffc7b1eff354703e4039dd8a7 (diff) | |
download | vdr-plugin-live-4a7724fb059e41e997958ff32a033b2741fbb304.tar.gz vdr-plugin-live-4a7724fb059e41e997958ff32a033b2741fbb304.tar.bz2 |
- configurable start page
Diffstat (limited to 'setup.cpp')
-rw-r--r-- | setup.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -74,6 +74,7 @@ bool Setup::ParseSetupEntry( char const* name, char const* value ) else if ( strcmp( name, "AdminLogin" ) == 0 ) m_adminLogin = value; else if ( strcmp( name, "AdminPasswordMD5" ) == 0 ) m_adminPasswordMD5 = value; else if ( strcmp( name, "UserdefTimes" ) == 0 ) m_times = value; + else if ( strcmp( name, "StartPage" ) == 0 ) m_startscreen = value; else return false; return true; } @@ -132,6 +133,20 @@ std::string Setup::SetAdminPassword(std::string password) return m_adminPasswordMD5; } +std::string Setup::GetStartScreenLink() const +{ + if (m_startscreen == "whatsonnext") + return "whats_on.html?type=next"; + else if (m_startscreen == "schedule") + return "schedule.html"; + else if (m_startscreen == "timers") + return "timers.html"; + else if (m_startscreen == "recordings") + return "recordings.html"; + else + return "whats_on.html?type=now"; +} + bool Setup::SaveSetup() { if (!liveplugin) return false; @@ -143,6 +158,7 @@ bool Setup::SaveSetup() liveplugin->SetupStore("AdminPasswordMD5", m_adminPasswordMD5.c_str()); } liveplugin->SetupStore("UserdefTimes", m_times.c_str()); + liveplugin->SetupStore("StartPage", m_startscreen.c_str()); return true; } |