This is only used by scan context collector - should I rethink this ? Map all devices to uris in scan context collector
| 96 | // This is only used by scan context collector - should I rethink this ? |
| 97 | // Map all devices to uris in scan context collector |
| 98 | void DeviceManager::removeDevice(QString category, QString param) |
| 99 | { |
| 100 | |
| 101 | for(Device *d : qAsConst(map)) { |
| 102 | if(d->category() == category && d->param() == param) { |
| 103 | removeDeviceById(d->id()); |
| 104 | return; |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | void DeviceManager::removeDeviceById(QString id) |
| 110 | { |