MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / unbindPing

Method unbindPing

core/src/deviceimpl.cpp:315–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void 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
333void DeviceImpl::loadCompatiblePluginsTab(QWidget *pluginsTab)
334{

Callers

nothing calls this directly

Calls 4

disconnectFunction · 0.85
pingTaskMethod · 0.80
stopPingTaskMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected