1
0
Fork 0
forked from len0rd/rockbox
foxbox/rbutil/rbutilqt/base
Dominik Riebeling b943c59f35 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
2013-09-18 23:37:39 +02:00
..
autodetection.cpp Rework autodetection to better handle ambiguous cases. 2013-09-18 23:37:39 +02:00
autodetection.h Rework autodetection to better handle ambiguous cases. 2013-09-18 23:37:39 +02:00
bootloaderinstallams.cpp Fix typo in source string. 2013-08-18 18:49:08 +02:00
bootloaderinstallams.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
bootloaderinstallbase.cpp Remove HttpGet::error() function. 2013-01-13 18:48:28 +01:00
bootloaderinstallbase.h Support reading OF files from zip. 2012-01-15 23:32:15 +01:00
bootloaderinstallchinachip.cpp Extend return codes for chinachip_patch(). 2011-12-03 09:41:44 +00:00
bootloaderinstallchinachip.h Extend return codes for chinachip_patch(). 2011-12-03 09:41:44 +00:00
bootloaderinstallfile.cpp Check for bootloader file on device before copying. 2012-04-26 21:19:56 +02:00
bootloaderinstallfile.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
bootloaderinstallhelper.cpp Move bootloader class initialiation into helper. 2012-05-01 10:49:48 +02:00
bootloaderinstallhelper.h Move bootloader class initialiation into helper. 2012-05-01 10:49:48 +02:00
bootloaderinstallhex.cpp Replace toAscii() / fromAscii() with Latin1() functions. 2013-01-27 20:11:17 +01:00
bootloaderinstallhex.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
bootloaderinstallimx.cpp mkimxboot: add a switch to force version 2013-01-29 11:53:07 +00:00
bootloaderinstallimx.h Rockbox Utility: add support for mkimxboot bootloader. 2012-01-04 19:19:02 +00:00
bootloaderinstallipod.cpp Provide dealloc function to ipodpatcher. 2013-01-01 15:06:41 +01:00
bootloaderinstallipod.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
bootloaderinstallmi4.cpp MI4 bootloader: check for copy result. 2012-04-26 22:01:33 +02:00
bootloaderinstallmi4.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
bootloaderinstallmpio.cpp Add missing class name to System Trace log. 2012-06-25 00:04:44 +02:00
bootloaderinstallmpio.h rbutil: add mpio hd200 as disabled target (all untested) 2010-06-04 21:43:15 +00:00
bootloaderinstallsansa.cpp Provide dealloc function to sansapatcher. 2013-01-01 15:06:41 +01:00
bootloaderinstallsansa.h sansapatcher: move sectorbuf pointer into sansa_t structure. 2013-01-01 15:06:34 +01:00
bootloaderinstalltcc.cpp Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
bootloaderinstalltcc.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
encoderbase.cpp Rockbox Utility: use libmp3lame for voice clips. 2012-01-08 11:50:04 +00:00
encoderbase.h Fix wrong includes. 2012-01-08 11:49:57 +00:00
encoderexe.cpp Split up encoders sources. 2012-01-06 19:19:32 +00:00
encoderexe.h Split up encoders sources. 2012-01-06 19:19:32 +00:00
encoderlame.cpp TTS encoders: allow volume range between 0.0 and 2.0. 2013-03-07 20:42:02 +01:00
encoderlame.h libmp3lame encoder: don't retrieve settings for each run. 2012-04-06 17:00:48 +02:00
encoderrbspeex.cpp TTS encoders: allow volume range between 0.0 and 2.0. 2013-03-07 20:42:02 +01:00
encoderrbspeex.h Separate default quality setting for encoders. 2012-01-29 22:55:18 +01:00
encttssettings.cpp Set svn:eol-style on several files missing it and dos2unix them. 2009-06-09 21:49:34 +00:00
encttssettings.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
httpget.cpp Rewrite HttpGet based on QNetworkAccessManager. 2013-01-27 20:11:17 +01:00
httpget.h Rewrite HttpGet based on QNetworkAccessManager. 2013-01-27 20:11:17 +01:00
progressloggerinterface.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
rbsettings.cpp Remove Rockbox Utility Offline Mode. 2013-01-13 19:45:29 +01:00
rbsettings.h Remove Rockbox Utility Offline Mode. 2013-01-13 19:45:29 +01:00
rockboxinfo.cpp voicefont: make format version a parameter. 2012-06-05 23:24:54 +02:00
rockboxinfo.h voicefont: make format version a parameter. 2012-06-05 23:24:54 +02:00
serverinfo.cpp Move constructing manual URL to ServerInfo class. 2012-06-18 23:18:32 +02:00
serverinfo.h Move constructing manual URL to ServerInfo class. 2012-06-18 23:18:32 +02:00
system.cpp Handle multiple devices with identical USB IDs correctly when listing. 2013-09-18 23:37:39 +02:00
system.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
systeminfo.cpp Allow USB IDs to be non-unique. 2012-10-06 13:53:09 +02:00
systeminfo.h Allow USB IDs to be non-unique. 2012-10-06 13:53:09 +02:00
talkfile.cpp Correctly construct the path for talkfile generation. 2012-09-05 20:21:59 +02:00
talkfile.h Correctly construct the path for talkfile generation. 2012-09-05 20:21:59 +02:00
talkgenerator.cpp Don't assume success for TTS object creation. 2012-10-06 13:53:09 +02:00
talkgenerator.h Remove multithreading support from voicefile creation. 2012-01-14 16:37:01 +01:00
ttsbase.cpp Factor out executable based TTS engines to separate subclasses. 2012-10-06 13:53:09 +02:00
ttsbase.h Move include to proper place and do some code police. 2012-06-12 20:11:20 +02:00
ttscarbon.cpp Carbon TTS: Fix a memory leak on read error. 2011-11-10 21:12:07 +00:00
ttscarbon.h Factor out executable based TTS engines to separate subclasses. 2012-10-06 13:53:09 +02:00
ttsespeak.h Factor out executable based TTS engines to separate subclasses. 2012-10-06 13:53:09 +02:00
ttsexes.cpp Factor out executable based TTS engines to separate subclasses. 2012-10-06 13:53:09 +02:00
ttsexes.h Factor out executable based TTS engines to separate subclasses. 2012-10-06 13:53:09 +02:00
ttsfestival.cpp Replace toAscii() / fromAscii() with Latin1() functions. 2013-01-27 20:11:17 +01:00
ttsfestival.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
ttsflite.h Factor out executable based TTS engines to separate subclasses. 2012-10-06 13:53:09 +02:00
ttsmssp.h Fix a couple of warnings and remove an unused variable. 2012-10-06 13:53:09 +02:00
ttssapi.cpp Make SAPI implementation more parametrizable. 2012-09-09 12:07:51 +02:00
ttssapi.h Make SAPI implementation more parametrizable. 2012-09-09 12:07:51 +02:00
ttssapi4.h Fix a couple of warnings and remove an unused variable. 2012-10-06 13:53:09 +02:00
ttsswift.h Factor out executable based TTS engines to separate subclasses. 2012-10-06 13:53:09 +02:00
uninstall.cpp Add missing class name to System Trace log. 2012-06-25 00:04:44 +02:00
uninstall.h Remove svn keyword lines from sources. 2011-10-19 20:51:16 +00:00
utils.cpp Only show mountpoints containing a supported filesystem in dropdown. 2013-06-09 19:51:08 +02:00
utils.h Extend Utils::mountpoints() to allow filtering for supported types. 2013-04-04 22:42:22 +02:00
voicefile.cpp Rockbox Utility: support reading voice strings from target. 2012-06-09 23:39:57 +02:00
voicefile.h voicefont: make format version a parameter. 2012-06-05 23:24:54 +02:00
zipinstaller.cpp ZipInstaller: rename some member variables to be in line with the rest. 2013-03-09 19:38:08 +01:00
zipinstaller.h ZipInstaller: rename some member variables to be in line with the rest. 2013-03-09 19:38:08 +01:00
ziputil.cpp ZipUtil: check zip file external attributes for folder. 2012-05-31 20:44:45 +02:00
ziputil.h Fix a couple of warnings and remove an unused variable. 2012-10-06 13:53:09 +02:00