summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-07-18 23:48:14 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-07-18 23:48:14 +0000
commitf6f71da928b975fd39afee1d639b495bcdeff9b8 (patch)
tree03e3e64d26080184ab28d90445e6fa2f2d99c091 /setup.cpp
parent440d211c5084980e959ed269d468900d69a82cc2 (diff)
downloadvdr-plugin-live-f6f71da928b975fd39afee1d639b495bcdeff9b8.tar.gz
vdr-plugin-live-f6f71da928b975fd39afee1d639b495bcdeff9b8.tar.bz2
- Setup option to use Ajax technology. If turned off no javascript is
loaded but almost all functionality is exposed via single html pages. This can speed up loading over slow links at the cost of a fancy interface. - Infobox is only available with Ajax features enabled but can still be switched on/off when Ajax is active. - Added posibility to turn off the logo. When also infobox is turned off the menu line appears at the top of the page. This is helpful for PDA based browsers and low resolution screens.
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 8f97a67..930a111 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -30,6 +30,8 @@ Setup::Setup():
m_theme("marine"),
m_lastwhatsonlistmode("detail"),
m_tntnetloglevel("INFO"),
+ m_showLogo(1),
+ m_useAjax(1),
m_showInfoBox(1)
{
m_adminPasswordMD5 = "4:" + MD5Hash("live");
@@ -86,6 +88,8 @@ 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, "ShowLogo" ) == 0 ) { m_showLogo = atoi(value); }
+ else if ( strcmp( name, "UseAjax" ) == 0 ) { m_useAjax = atoi(value); }
else if ( strcmp( name, "ShowInfoBox" ) == 0 ) { m_showInfoBox = atoi(value); }
else return false;
return true;
@@ -210,6 +214,8 @@ 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("ShowLogo", m_showLogo);
+ liveplugin->SetupStore("UseAjax", m_useAjax);
liveplugin->SetupStore("ShowInfoBox", m_showInfoBox);
return true;
}