summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/utils.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-09-18 22:06:41 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-09-18 23:37:39 +0200
commitb943c59f3575ee357b66cc316baec95ffcfd5f10 (patch)
tree5d7356cc1b2d394fee832e8f4cf9f1fc12da09ae /rbutil/rbutilqt/base/utils.cpp
parentfe45f8f090ae64ff5b8bad59ce628662ea60209a (diff)
downloadrockbox-b943c59f3575ee357b66cc316baec95ffcfd5f10.tar.gz
rockbox-b943c59f3575ee357b66cc316baec95ffcfd5f10.tar.bz2
rockbox-b943c59f3575ee357b66cc316baec95ffcfd5f10.zip
Rework autodetection to better handle ambiguous cases.
The old detection code simply assumed only one player to be connected and threw all information it could find together, causing wrong results in various cases. Rewrite it to better handle this. - Don't expect only a single player to be attached. Return a list of players found instead. The configuration dialog can then show the user a list to select from. This is not implemented yet, the configuration dialog will only show the devices found and tell the user to disconnect all but one. - Handle ambiguous cases better. A player found that is ambiguous is treated as such, and if refining the result didn't lead to a single match for each possible player a single entry is created that indicates it being ambiguous. The current code needs a bit of additional cleanup (the result exposes internal data to the caller it shouldn't) to be done later. Change-Id: I22dc2f73cdd6a9d90c34f3a0703aa9e0a2d2087a
Diffstat (limited to 'rbutil/rbutilqt/base/utils.cpp')
0 files changed, 0 insertions, 0 deletions