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

Method bindPing

core/src/deviceimpl.cpp:299–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void DeviceImpl::bindPing()
300{
301 if(!m_pingPlugin) {
302 return;
303 }
304 for(auto &&p : m_connectedPlugins) {
305 connect(dynamic_cast<QObject *>(p), SIGNAL(pausePingTask(bool)), dynamic_cast<QObject *>(m_pingPlugin),
306 SLOT(onPausePingTask(bool)));
307 }
308
309 PingTask *pingTask = m_pingPlugin->pingTask();
310 connect(pingTask, &PingTask::forceDisconnect, this, &DeviceImpl::disconnectDev, Qt::QueuedConnection);
311 connect(pingTask, &PingTask::connectionLost, this, &DeviceImpl::onConnectionLost, Qt::QueuedConnection);
312 m_pingPlugin->startPingTask();
313}
314
315void DeviceImpl::unbindPing()
316{

Callers

nothing calls this directly

Calls 3

pingTaskMethod · 0.80
connectFunction · 0.50
startPingTaskMethod · 0.45

Tested by

no test coverage detected