summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2007-04-29 09:25:26 +0000
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2007-04-29 09:25:26 +0000
commit73beacd3d1b3da8e55524f28ce5047989c5c5dc8 (patch)
tree5211f8282bb74224ece07fd460c2f123fcbec926 /setup.cpp
parentdcf843d2eb36d61f1cafb2220be1fb5d189ba759 (diff)
downloadvdr-plugin-live-73beacd3d1b3da8e55524f28ce5047989c5c5dc8.tar.gz
vdr-plugin-live-73beacd3d1b3da8e55524f28ce5047989c5c5dc8.tar.bz2
- new main menu entry "search"
- checking for epgsearch and hiding "search" and "searchtimers" if epgsearch not present
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup.cpp b/setup.cpp
index 50b396c..b22de07 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -12,6 +12,7 @@
#include <arpa/inet.h>
#include <vdr/tools.h>
#include <vdr/menuitems.h>
+#include <vdr/plugin.h>
#include "setup.h"
namespace vdrlive {
@@ -101,6 +102,11 @@ bool Setup::CheckServerIps()
return true;
}
+bool Setup::HaveEPGSearch(void)
+{
+ return cPluginManager::GetPlugin("epgsearch") != NULL;
+}
+
Setup& LiveSetup()
{
static Setup instance;
@@ -140,6 +146,7 @@ void cMenuSetupLive::Store(void)
SetupStore("AdminPassword", m_adminPassword);
}
+
} // namespace vdrlive