diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-05 19:51:38 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-05 19:51:38 +0000 |
commit | cd737785cace62f79fbd5f596ccb0d70de3e6252 (patch) | |
tree | 4b9d7a41623fb58eda49b2d84b755eefa00b596b | |
parent | 13adee0994f4f177a6630077f298eafcb9c48169 (diff) | |
download | vdr-plugin-live-cd737785cace62f79fbd5f596ccb0d70de3e6252.tar.gz vdr-plugin-live-cd737785cace62f79fbd5f596ccb0d70de3e6252.tar.bz2 |
- removed obsolete interfacing code
-rw-r--r-- | live.cpp | 14 | ||||
-rw-r--r-- | live.h | 21 | ||||
-rw-r--r-- | setup.cpp | 6 | ||||
-rw-r--r-- | setup.h | 9 |
4 files changed, 9 insertions, 41 deletions
@@ -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! @@ -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: @@ -93,4 +93,10 @@ bool Setup::CheckServerIps() return true; } +Setup& LiveSetup() +{ + static Setup instance; + return instance; +} + } // namespace vdrlive @@ -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 |