| 450 | { |
| 451 | public: |
| 452 | ConfiguredPlugin(RefPtr<PluginModule> pmodule, unsigned int preg, |
| 453 | RefPtr<ConfigFile> pconfig, const PathName& pconfName, |
| 454 | const PathName& pplugName) |
| 455 | : module(pmodule), regPlugin(preg), pluginLoaderConfig(pconfig), |
| 456 | confName(getPool(), pconfName), plugName(getPool(), pplugName), |
| 457 | processingDelayedDelete(false), delay(DEFAULT_DELAY) |
| 458 | { |
| 459 | if (pluginLoaderConfig.hasData()) |
| 460 | { |
| 461 | const ConfigFile::Parameter* p = pluginLoaderConfig->findParameter("ConfigFile"); |
| 462 | if (p && p->value.hasData()) |
| 463 | { |
| 464 | confName = p->value.ToPathName(); |
| 465 | } |
| 466 | } |
| 467 | if (module != builtin) |
| 468 | { |
| 469 | byTypeCounters->get(module->getPlugin(regPlugin).type).counter++; |
| 470 | } |
| 471 | #ifdef DEBUG_PLUGINS |
| 472 | RegisteredPlugin& r(module->getPlugin(regPlugin)); |
| 473 | fprintf(stderr, " ConfiguredPlugin %s module %s registered as %s type %d order %d\n", |
| 474 | plugName.c_str(), module->getName(), r.name.c_str(), r.type, regPlugin); |
| 475 | #endif |
| 476 | } |
| 477 | |
| 478 | const char* getConfigFileName() |
| 479 | { |
nothing calls this directly
no test coverage detected