QString BugReportImpl::getPluginInformation(QString URL) { VideoInformationPlugin *plugin = videoInformation->getPluginByHost(QUrl(URL)); // exists? if (plugin != NULL) return QString("%1 (%2)").arg(plugin->getScriptFile(true)).arg(plugin->getVersion()); else return "-"; }
VideoInformationPlugin* VideoInformation::getRegisteredPlugin(const QString fileName, const bool onlyFileName) { for (int n = 0; n < plugins->count(); n++) { VideoInformationPlugin *plugin = plugins->at(n); // compare names if (plugin->getScriptFile(onlyFileName) == fileName) return plugin; } // not found return NULL; }