summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-06-01 19:57:29 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-06-01 19:57:29 +0000
commit883be2c8cade7d68dc743c17bedda6f675a787ba (patch)
tree71834227bb75137fa5a8424aec10171a29d6c0fb /pages
parente71ea234a90f701dfb84e03443c7cd3134da5260 (diff)
downloadvdr-plugin-live-883be2c8cade7d68dc743c17bedda6f675a787ba.tar.gz
vdr-plugin-live-883be2c8cade7d68dc743c17bedda6f675a787ba.tar.bz2
- added uniform features detector
Diffstat (limited to 'pages')
-rw-r--r--pages/pageelems.ecpp23
1 files changed, 9 insertions, 14 deletions
diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp
index 6e03ca8..928e7b5 100644
--- a/pages/pageelems.ecpp
+++ b/pages/pageelems.ecpp
@@ -2,8 +2,8 @@
#include <string>
#include <vdr/menu.h>
#include <vdr/epg.h>
-#include "epgsearch.h"
#include "exception.h"
+#include "livefeatures.h"
#include "i18n.h"
#include "setup.h"
#include "timers.h"
@@ -12,16 +12,6 @@
using namespace std;
using namespace vdrlive;
-static bool HasEpgsearch()
-{
- bool result = false;
- try {
- result = CheckEpgsearchVersion();
- } catch (HtmlError const& ex) {
- }
- return result;
-}
-
</%pre>
<# ---------------------------------------------------------------------- #>
@@ -213,10 +203,15 @@ static bool HasEpgsearch()
<div class="about_left"><$ tr("Features") $>:</div>
<div class="about_right">
<{
- bool hasEpgsearch = HasEpgsearch();
- string epgsearchVersion = hasEpgsearch ? string( cPluginManager::GetPlugin("epgsearch")->Version() ) + " " : "";
+ Features< features::epgsearch >& epgsearch = LiveFeatures< features::epgsearch >();
}>
- <img align="center" src="<$ hasEpgsearch ? "" : "in" $>active.png"/> EPGsearch <$ epgsearchVersion $>(<a href="http://winni.vdr-developer.org/epgsearch/index.html" target="_blank"><$ tr("Homepage") $></a>)<br/>
+ <img align="center" src="<$ epgsearch.Recent() ? "" : "in" $>active.png"/> EPGsearch
+% if ( epgsearch.Recent() ) {
+ (<$ tr("active") $>: <$ epgsearch.Version() $>)
+% } else {
+ (<$ tr("required") $>: <$ epgsearch.MinVersion() $>)
+% }
+ (<a href="http://winni.vdr-developer.org/epgsearch/index.html" target="_blank"><$ tr("Homepage") $></a>)<br/>
</div>
<div class="about_head"><div><div><$ tr("Bugs and suggestions") $></div></div></div>
<div class="about_line"><$ tr("If you encounter any bugs or would like to suggest new features, please use our bugtracker") $>:<br/>