MCPcopy Create free account
hub / github.com/KDAB/GammaRay / createProxyFactory

Method createProxyFactory

common/pluginmanager.h:102–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101protected:
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
116private:
117 QVector<IFace *> m_plugins;

Callers

nothing calls this directly

Calls 5

PluginLoadErrorClass · 0.85
pathMethod · 0.80
translateMethod · 0.80
isValidMethod · 0.45
errorStringMethod · 0.45

Tested by

no test coverage detected