| 313 | } |
| 314 | |
| 315 | void DeviceImpl::unbindPing() |
| 316 | { |
| 317 | if(!m_pingPlugin) { |
| 318 | return; |
| 319 | } |
| 320 | for(auto &&p : m_connectedPlugins) { |
| 321 | disconnect(dynamic_cast<QObject *>(p), SIGNAL(pausePingTask(bool)), |
| 322 | dynamic_cast<QObject *>(m_pingPlugin), SLOT(onPausePingTask(bool))); |
| 323 | } |
| 324 | m_pingPlugin->stopPingTask(); |
| 325 | |
| 326 | PingTask *pingTask = m_pingPlugin->pingTask(); |
| 327 | disconnect(pingTask, &PingTask::forceDisconnect, this, &DeviceImpl::disconnectDev); |
| 328 | disconnect(pingTask, &PingTask::connectionLost, this, &DeviceImpl::onConnectionLost); |
| 329 | pingTask->finish(); |
| 330 | m_pingPlugin = nullptr; |
| 331 | } |
| 332 | |
| 333 | void DeviceImpl::loadCompatiblePluginsTab(QWidget *pluginsTab) |
| 334 | { |
nothing calls this directly
no test coverage detected