| 389 | } |
| 390 | |
| 391 | void KiwiSdrManager::primeProfileTracking(const QString& id, int sliceId, |
| 392 | double frequencyMhz, |
| 393 | const QString& mode, |
| 394 | int filterLowHz, |
| 395 | int filterHighHz, |
| 396 | const QString& panId, |
| 397 | double centerMhz, |
| 398 | double bandwidthMhz, |
| 399 | int lineDurationMs) |
| 400 | { |
| 401 | if (!hasProfile(id) || sliceId < 0 || frequencyMhz <= 0.0) { |
| 402 | return; |
| 403 | } |
| 404 | |
| 405 | if (KiwiSdrClient* c = ensureClient(id)) { |
| 406 | Q_UNUSED(c); |
| 407 | m_clientHasTrackedSlice.insert(id, true); |
| 408 | invokeClient(id, [sliceId, frequencyMhz, mode, filterLowHz, |
| 409 | filterHighHz, panId, lineDurationMs, |
| 410 | centerMhz, bandwidthMhz](KiwiSdrClient* client) { |
| 411 | client->setTrackedSlice(sliceId, frequencyMhz, mode, filterLowHz, |
| 412 | filterHighHz, panId); |
| 413 | client->setWaterfallLineDurationMs(lineDurationMs); |
| 414 | if (!panId.isEmpty() && centerMhz > 0.0 && bandwidthMhz > 0.0) { |
| 415 | client->setWaterfallView(panId, centerMhz, bandwidthMhz); |
| 416 | } |
| 417 | }); |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | void KiwiSdrManager::assignSliceToProfile(int sliceId, const QString& profileId, |
| 422 | double frequencyMhz, |
no test coverage detected