* @brief Applies a single USB configuration change by key. */
| 1254 | * @brief Applies a single USB configuration change by key. |
| 1255 | */ |
| 1256 | void IO::Drivers::USB::setDriverProperty(const QString& key, const QVariant& value) |
| 1257 | { |
| 1258 | if (key == QLatin1String("deviceIndex")) { |
| 1259 | setDeviceIndex(value.toInt()); |
| 1260 | return; |
| 1261 | } |
| 1262 | |
| 1263 | if (key == QLatin1String("transferMode")) { |
| 1264 | setTransferMode(value.toInt()); |
| 1265 | return; |
| 1266 | } |
| 1267 | |
| 1268 | if (key == QLatin1String("inEndpointIndex")) { |
| 1269 | setInEndpointIndex(value.toInt()); |
| 1270 | return; |
| 1271 | } |
| 1272 | |
| 1273 | if (key == QLatin1String("outEndpointIndex")) { |
| 1274 | setOutEndpointIndex(value.toInt()); |
| 1275 | return; |
| 1276 | } |
| 1277 | |
| 1278 | if (key == QLatin1String("isoPacketSize")) |
| 1279 | setIsoPacketSize(value.toInt()); |
| 1280 | } |
no outgoing calls
no test coverage detected