| 108 | } |
| 109 | |
| 110 | void IPPluginManager::unloadPlugins() |
| 111 | { |
| 112 | // unregister process |
| 113 | for(int i=0; i<_loadedPlugins.count(); i++) |
| 114 | { |
| 115 | QString plugin = _loadedPlugins.at(i); |
| 116 | _factory->unregisterProcess(plugin); |
| 117 | } |
| 118 | _loadedPlugins.clear(); |
| 119 | |
| 120 | // unload DLL |
| 121 | for(int i=0; i<_kernels.count(); i++) |
| 122 | { |
| 123 | pugg::Kernel* kernel = _kernels.at(i); |
| 124 | kernel->clear(); |
| 125 | } |
| 126 | _kernels.clear(); |
| 127 | _drivers.clear(); |
| 128 | |
| 129 | // delete old tmp directory |
| 130 | removeDir(_pluginTmpPath); |
| 131 | } |
| 132 | |
| 133 | void IPPluginManager::on_pluginDirectoryChanged(const QString & path) |
| 134 | { |
nothing calls this directly
no test coverage detected