| 100 | |
| 101 | protected: |
| 102 | bool createProxyFactory(const PluginInfo &pluginInfo, QObject *parent) override |
| 103 | { |
| 104 | auto *proxy = new Proxy(pluginInfo, parent); |
| 105 | if (!proxy->isValid()) { |
| 106 | m_errors << PluginLoadError(pluginInfo.path(), qApp->translate("GammaRay::PluginManager", "Failed to load plugin: %1").arg(proxy->errorString())); |
| 107 | std::cerr << "invalid plugin " << qPrintable(pluginInfo.path()) << std::endl; |
| 108 | delete proxy; |
| 109 | } else { |
| 110 | m_plugins.push_back(proxy); |
| 111 | return true; |
| 112 | } |
| 113 | return false; |
| 114 | } |
| 115 | |
| 116 | private: |
| 117 | QVector<IFace *> m_plugins; |
nothing calls this directly
no test coverage detected