diff options
author | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-08-26 12:42:32 +0000 |
---|---|---|
committer | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-08-26 12:42:32 +0000 |
commit | 3fb145c7811445e05a9b8bcd1c4bd182a48e8159 (patch) | |
tree | f83483f7f52ee9b7aa0f28b4cd63ba8536ef71b1 /src/menuorg.cpp | |
parent | 25f2bf3d985c2e8cad13527e8b87128abc168062 (diff) | |
download | vdr-plugin-menuorg-3fb145c7811445e05a9b8bcd1c4bd182a48e8159.tar.gz vdr-plugin-menuorg-3fb145c7811445e05a9b8bcd1c4bd182a48e8159.tar.bz2 |
some renaming
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6000 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/menuorg.cpp')
-rw-r--r-- | src/menuorg.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/menuorg.cpp b/src/menuorg.cpp index 405e0fc..0b0111d 100644 --- a/src/menuorg.cpp +++ b/src/menuorg.cpp @@ -33,7 +33,7 @@ #include "menuconfiguration.h" #include "mainmenuitemsprovider.h" #include "i18n.h" -#include "menuorgsetup.h" +#include "pluginsetup.h" using namespace std; @@ -42,8 +42,8 @@ MenuOrgPlugin::MenuOrgPlugin(void) // Initialize any member variables here. // DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT! - _pluginIsActive = 1; - _showLostPlugins = 1; + _customMenuShouldBeActive = true; + _unconfiguredPluginsShouldBeIncluded = true; } MenuOrgPlugin::~MenuOrgPlugin() @@ -132,18 +132,18 @@ cOsdObject *MenuOrgPlugin::MainMenuAction(void) cMenuSetupPage *MenuOrgPlugin::SetupMenu(void) { // Return a setup menu in case the plugin supports one. - return new cMenuOrgPluginSetup(&_pluginIsActive, &_showLostPlugins); + return new PluginSetup(_customMenuShouldBeActive, _unconfiguredPluginsShouldBeIncluded); } bool MenuOrgPlugin::SetupParse(const char *Name, const char *Value) { - if (!strcasecmp(Name, "pluginIsActive")) + if (!strcasecmp(Name, PluginSetup::SetupName::CustomMenuActive)) { - _pluginIsActive = atoi(Value); + _customMenuShouldBeActive = (atoi(Value) != 0); } - else if(!strcasecmp(Name, "showLostPlugins")) + else if(!strcasecmp(Name, PluginSetup::SetupName::UnconfiguredPluginsIncluded)) { - _showLostPlugins = atoi(Value); + _unconfiguredPluginsShouldBeIncluded = (atoi(Value) != 0); } else return false; @@ -153,7 +153,7 @@ bool MenuOrgPlugin::SetupParse(const char *Name, const char *Value) bool MenuOrgPlugin::Service(const char *Id, void *Data) { - if (strcmp(Id, MENU_ITEMS_PROVIDER_SERVICE_ID) == 0 && _pluginIsActive == 1) + if (strcmp(Id, MENU_ITEMS_PROVIDER_SERVICE_ID) == 0 && _customMenuShouldBeActive) { if (_subMenuProvider) { |