summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-05 19:51:38 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-05 19:51:38 +0000
commitcd737785cace62f79fbd5f596ccb0d70de3e6252 (patch)
tree4b9d7a41623fb58eda49b2d84b755eefa00b596b
parent13adee0994f4f177a6630077f298eafcb9c48169 (diff)
downloadvdr-plugin-live-cd737785cace62f79fbd5f596ccb0d70de3e6252.tar.gz
vdr-plugin-live-cd737785cace62f79fbd5f596ccb0d70de3e6252.tar.bz2
- removed obsolete interfacing code
-rw-r--r--live.cpp14
-rw-r--r--live.h21
-rw-r--r--setup.cpp6
-rw-r--r--setup.h9
4 files changed, 9 insertions, 41 deletions
diff --git a/live.cpp b/live.cpp
index 5b6ace6..ef482b5 100644
--- a/live.cpp
+++ b/live.cpp
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: live.cpp,v 1.9 2007/01/05 17:52:46 lordjaxom Exp $
+ * $Id: live.cpp,v 1.10 2007/01/05 19:51:38 lordjaxom Exp $
*/
#include <vdr/plugin.h>
@@ -72,18 +72,6 @@ bool Plugin::SetupParse(const char *Name, const char *Value)
return LiveSetup().ParseSetupEntry( Name, Value );
}
-Setup& Plugin::GetLiveSetup()
-{
- static Setup instance;
- return instance;
-}
-
-TimerManager& Plugin::GetLiveTimerManager()
-{
- static TimerManager instance;
- return instance;
-}
-
} // namespace vdrlive
VDRPLUGINCREATOR(vdrlive::Plugin); // Don't touch this!
diff --git a/live.h b/live.h
index eba7108..20b26e7 100644
--- a/live.h
+++ b/live.h
@@ -8,23 +8,7 @@
namespace vdrlive {
-class Setup;
-class TimerManager;
-
-class PluginBase : public cPlugin
-{
-public:
- virtual Setup& GetLiveSetup() = 0;
- virtual TimerManager& GetLiveTimerManager() = 0;
-};
-
-inline PluginBase& LivePlugin()
-{
- static PluginBase& plugin = *static_cast< PluginBase* >( cPluginManager::GetPlugin( PLUGIN_NAME_I18N ) );
- return plugin;
-}
-
-class Plugin : public PluginBase {
+class Plugin : public cPlugin {
public:
Plugin(void);
virtual const char *Version(void) { return VERSION; }
@@ -38,9 +22,6 @@ public:
virtual cMenuSetupPage *SetupMenu(void);
virtual bool SetupParse(const char *Name, const char *Value);
- virtual Setup& GetLiveSetup();
- virtual TimerManager& GetLiveTimerManager();
-
static std::string const& GetConfigDirectory() { return m_configDirectory; }
private:
diff --git a/setup.cpp b/setup.cpp
index 534cfb4..0c78d5a 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -93,4 +93,10 @@ bool Setup::CheckServerIps()
return true;
}
+Setup& LiveSetup()
+{
+ static Setup instance;
+ return instance;
+}
+
} // namespace vdrlive
diff --git a/setup.h b/setup.h
index a4d3a58..0933ea2 100644
--- a/setup.h
+++ b/setup.h
@@ -8,11 +8,9 @@
namespace vdrlive {
-class Plugin;
-
class Setup
{
- friend Setup& Plugin::GetLiveSetup();
+ friend Setup& LiveSetup();
public:
typedef std::list< std::string > IpList;
@@ -45,11 +43,6 @@ private:
bool CheckServerIps();
};
-inline Setup& LiveSetup()
-{
- return LivePlugin().GetLiveSetup();
-}
-
} // namespace vdrlive
#endif // VDR_LIVE_SETUP_H