summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/system.cpp (follow)
Commit message (Collapse)AuthorAge
* Use Gestalt to get number of CPUs on OS X.Dominik Riebeling2016-03-27
| | | | | | | | | MPProcessors has been deprecated with 10.7. When targeting 10.7 (required when building with Qt 5.6 on OS X) this causes a warning. Use Gestalt instead (Gestalt has been deprecated with 10.8, but when targeting 10.7 this doesn't cause a warning, and Gestalt is used for other values as well). Change-Id: Iaf82147ad47115e228f5c08f8198a6a7e92102a3
* Handle mixed case in Windows USB ID detection.Cástor Muñoz2015-12-20
| | | | | | | | | Windows XP might use mixed case in hardware ID (VID / PID) string. Cherry-picked from G#1221. Change-Id: I86fa63e050cd9b9de5a1beac65b81028e0f86a9d Signed-off-by: Dominik Riebeling <Dominik.Riebeling@gmail.com>
* Win32: fix possible crash when listing USB devices.Dominik Riebeling2015-06-07
| | | | | | | | | Make sure to handle if retrieving the device description ends up with a NULL data buffer pointer. Also switch handling the retrieved string using QString. Fixes a crash reported in the forums. Change-Id: I6e95a411308e85656cd78ddcecb1bcee165864d0
* OS X: don't include libusb headers.Dominik Riebeling2014-03-20
| | | | | | We don't use libusb on OS X anymore, so don't include it anymore. Change-Id: I32b721e097e5958a2e7359ccd79bf2d3b2d0ad9d
* Use cutelogger for Rockbox Utility internal trace.Dominik Riebeling2013-11-04
| | | | | | | | Change tracing from qDebug() to use cutelogger, which is available under the LGPL2.1. This allows to automatically add filename and line number to the log, and also provides multiple log levels. Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
* Handle multiple devices with identical USB IDs correctly when listing.Dominik Riebeling2013-09-18
| | | | | | | | | | | | | | Use insertMulti() instead of insert() when adding found USB devices to the list. This means the keys of the list will now be ambiguous. This is not a problem since the value is only used to display the user a nice string. Previously we'd loose two identical devices attached to the system since the second one would overwrite the first. This does not apply for Windows, since Windows will list each function of a composite device. This results in a device running Rockbox (with HID enabled) showing up twice, which isn't wanted. Change-Id: I1306b71122a210c55871ff8e14d2b5a04012cc4e
* Replace toAscii() / fromAscii() with Latin1() functions.Dominik Riebeling2013-01-27
| | | | | | | Qt5 deprecates the Ascii conversion functions, and the Latin1 functions pretty much do the same. Change-Id: I5dee6a443fcfee6afd3256ee536698bcf65ff896
* Fix unused-but-set warnings in helper functions.Dominik Riebeling2012-01-17
| | | | | | | Instead of storing the return value and ignoring it use it directly to check if an error occured. Addresses FS#12542. Change-Id: I447afa006366acfd1851d5b13cae5f1561050283
* Remove svn keyword lines from sources.Dominik Riebeling2011-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30806 a1c6a512-1295-4272-9138-f99709370657
* Fix some gcc 4.6 warnings.Dominik Riebeling2011-05-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29933 a1c6a512-1295-4272-9138-f99709370657
* Fix crash on proxy detection on OS X (FS#11654).Dominik Riebeling2010-10-05
| | | | | | | | If the proxy dialog doesn't contain any values searching for the values in the system returns NULL pointers instead of empty values. Check for them to fix crashes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28212 a1c6a512-1295-4272-9138-f99709370657
* Display number of processors in System Info dialog.Dominik Riebeling2010-09-18
| | | | | | | | Oops: on Windows, ask the system about the values before displaying it instead of expecting the structure to fill itself. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28107 a1c6a512-1295-4272-9138-f99709370657
* Display number of processors in System Info dialog.Dominik Riebeling2010-09-18
| | | | | | | | Since Rockbox Utility got support for utilizing more than one CPU / Core this value might be helpful in case of issues like FS#11496 (QThreadPool defaults to the number of CPUs found as maximum number of threads). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28106 a1c6a512-1295-4272-9138-f99709370657
* Implement USB VID / PID retrieval using IOKit on OS X.Dominik Riebeling2010-09-05
| | | | | | | Instead of using libusb as wrapper query the USB IDs via IOKit. Since libusb is only used for that this means that it's no longer necessary on OS X. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28001 a1c6a512-1295-4272-9138-f99709370657
* Fix USB ID retrieval on Windows 7.Dominik Riebeling2010-07-25
| | | | | | | | | | | The device string containing the USB IDs differs in casing on Windows 7 so always convert to upper case before scanning the string. Use DEVICEDESC instead of LOCATION_INFORMATION for the user visible device string as the latter doesn't show anything useful to the user on W7, at least for the devices I've tried. Unfortunately DEVICEDESC is less descriptive than the previously used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27561 a1c6a512-1295-4272-9138-f99709370657
* Don't close libusb device handle if opening failed.Dominik Riebeling2010-06-22
| | | | | | | This issue has been pointed out as FS#11420. Redone by myself because the change is trivial and the submitter didn't state his real name. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27061 a1c6a512-1295-4272-9138-f99709370657
* Make System and Utils class based on QObject.Dominik Riebeling2010-06-18
| | | | | | | Those classes use Qt objects anyway, and making them based on QObject moved the strings into the appropriate class when translating. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26931 a1c6a512-1295-4272-9138-f99709370657
* System Info: display OS X version number and architecture too.Dominik Riebeling2010-04-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25442 a1c6a512-1295-4272-9138-f99709370657
* Implement system proxy values retrieval on OS X.Dominik Riebeling2010-04-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25439 a1c6a512-1295-4272-9138-f99709370657
* Don't trace every device in the machine when scanning for USB devices on ↵Dominik Riebeling2009-10-14
| | | | | | Windows. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23173 a1c6a512-1295-4272-9138-f99709370657
* rbutil: correct debug output.Dominik Wenger2009-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22563 a1c6a512-1295-4272-9138-f99709370657
* rbutil: correct usb-id reading on windows.Dominik Wenger2009-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22562 a1c6a512-1295-4272-9138-f99709370657
* Clean up and rename Detect class.Dominik Riebeling2009-08-10
Move check() function out of the Detect class and place it into utils.cpp for now. Rename Detect class to System, as it now only retrieves data about the underlying system and doesn't detect anything anymore. Cleans up with the confusion between Detect and Autodetection. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22238 a1c6a512-1295-4272-9138-f99709370657