summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/utils.cpp (follow)
Commit message (Collapse)AuthorAge
* Return process IDs in Utils::findRunningProcess().Dominik Riebeling2016-01-17
| | | | | | | | Rework to return mapping between (filtered) process names and their pid values (if running). Note that this functionality is not implemented for Linux (but as it's mostly intended to detect Itunes currently not needed on that platform). Change-Id: Ie348bfed46bda390f469c37635a96c75e5782616
* rbutil: fix resolveDevicename() on WindowsCástor Muñoz2016-01-17
| | | | | | | | Solves some eject issues (FSCTL_LOCK_VOLUMEN ioctl failures) ocurring when resolveDevicename() is ejecuted prior to ejectDevice(), tested with Qt5. Change-Id: Iff9240abd9d2f71bec1a1070f4ef194916e13b65
* Improve update check information dialog.Dominik Riebeling2015-05-02
| | | | | | Show the user both the current and updated version. Change-Id: Ief693cce020a39a0c79bf2705da4a44b7bd15928
* OS X: use FSGetVolumeParms when targeting 10.5+.Dominik Riebeling2014-03-20
| | | | | | | | | PBHGetVolParmsSync() is not available when building with 64bit. The replacement FSGetVolumeParms() is available on 10.5+ only. Use the latter when building with target version 10.5+. This requires builds targeting 10.4 to 32bit and allows building as 64bit when targeting 10.5+. Change-Id: Ic53217f3090147bea473613335f9482623a470bd
* 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
* Add "FAT" as supported filesystem on Windows.Dominik Riebeling2013-09-18
| | | | | | | In some cases Windows reports the string "FAT" (without any type number). Accept that as well. Change-Id: Ia278ccc574913106cb5ca6751af70125f769c59c
* Only show mountpoints containing a supported filesystem in dropdown.Dominik Riebeling2013-06-09
| | | | | | | | | Change configuration to use filtered mountpoints list. Add HFS+ to the list of supported filesystems -- while Rockbox doesn't run on HFS+ MacPods will use that format, and not having them in the list will then make OS X users wonder why their Ipod isn't showing up. This might need to get revised later. Change-Id: I5eeeb05be6780cb3952a0081df0ce782eca01589
* Extend Utils::mountpoints() to allow filtering for supported types.Dominik Riebeling2013-04-04
| | | | | | | Instead of trying every mountpoint during autodetection allow filtering out filesystems that are not supported when retrieving the system mountpoints. Change-Id: Ic23a5c804cb7c78c146dbc1af7443c67ce12464e
* 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 a couple of warnings and remove an unused variable.Dominik Riebeling2012-10-06
| | | | Change-Id: I1617ef882e9bcaaaafe58a932fadd803851ec88f
* Support "eject" on OS X.Dominik Riebeling2012-09-16
| | | | Change-Id: I103587f2fad2b8b31a1bc53afbd107bf55f62c93
* Add "Eject" button to main window.Dominik Riebeling2012-09-08
| | | | | | | | | | | | Since especially Windows puts the eject functionality behind an icon in the systray which is usually hidden and doesn't complain if a USB drive is unplugged without ejecting it first ejecting such a device might not be obvious to everyone. Add a button to the main window allowing to eject the selected player. Currently only implemented for Windows. Change-Id: I785ac1482cda03a1379cf6d0fd0d9a0ff8130092
* Check environment before starting installation.Dominik Riebeling2012-08-19
| | | | | | | The environment needs to be correct for other installations than main Rockbox as well. Change-Id: Icf626de63b58ba40f600fd095a254b6e7e9e46ee
* Don't try to resolve an empty path.Dominik Riebeling2012-05-11
| | | | | | | An empty path is not resolvable, so immediately return an empty result. Fixes an empty path resolve to "/" on Linux / OS X. Change-Id: I22c26a7716becbf46850a04e18ee581084546263
* Implement findProcess() on OS X.Dominik Riebeling2012-02-21
| | | | Change-Id: Iec5e91f1c8c08a58a19f79339d03247148347d45
* findExecutable(): cleanup log output a bit.Dominik Riebeling2012-01-29
| | | | Change-Id: I217bddc91ff9ea43a5cfc018818f5a19b1555dd9
* Check running processes at startup.Dominik Riebeling2012-01-22
| | | | | | | | | | | Retrieve the processes running at startup and compare with a list of potentially problematic ones. Right now this is Itunes which is known to be able to cause problems when trying to install the bootloader on an Ipod. No user notification yet. This adds the implementation for Windows. Change-Id: I5ce8a85da52e0ed8f523b5ae6fb5d8f14f6a14c9
* Show user friendly name on target mismatch.Dominik Riebeling2011-11-01
| | | | | | Instead of showing the target name as stored in rockbox-info.txt retrieve the full descriptive name. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30886 a1c6a512-1295-4272-9138-f99709370657
* 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
* Take cluster size into account when calculating zip extracted size.Dominik Riebeling2011-07-26
| | | | | | | | | Allow passing an (optional) cluster size to round up all file sizes when calculating the total size of an extracted zip archive. This allows to check if the space on disk is actually sufficient without relying on an arbitrary headroom value which might be wrong. Addresses FS#12195. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30214 a1c6a512-1295-4272-9138-f99709370657
* Implement reading the volume label on OS X.Dominik Riebeling2011-07-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30151 a1c6a512-1295-4272-9138-f99709370657
* Move some helper functions out of Autodetection.Dominik Riebeling2011-07-17
| | | | | | Those functions are rather general, so put them into the Utils class instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30146 a1c6a512-1295-4272-9138-f99709370657
* The mountpoint is stored with normalized separators.Dominik Riebeling2011-07-17
| | | | | | | Make sure to convert it on reading to avoid not finding it even if stored with native separators in the configuration. Fix a warning on Windows. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30145 a1c6a512-1295-4272-9138-f99709370657
* Show volume labels on Windows.Dominik Riebeling2011-07-15
| | | | | | | In mountpoint selection and system info dialog show the volume name to make it easier to identify a specific device. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30141 a1c6a512-1295-4272-9138-f99709370657
* Show the total size of the volume along with the free space.Dominik Riebeling2011-07-15
| | | | | | | | This should help identifying the correct player by size, since the free space is only useful to figure if there is enough space to install Rockbox. Change units to GiB since that is more useful given the size of current devices. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30139 a1c6a512-1295-4272-9138-f99709370657
* FS#11439: Fix version comparison regression.Dominik Riebeling2010-06-30
| | | | | | | | | Improve string suffix handling by distinguishing between version number separators (i.e. dots) and extended separators and additional version characters. Corrects false update information displayed for 64bit binaries of Rockbox Utility. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27201 a1c6a512-1295-4272-9138-f99709370657
* Log filesystem free value to system trace.Dominik Riebeling2010-06-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26935 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
* Rework Rockbox Utility update version number check.Dominik Riebeling2010-06-11
| | | | | | | | | | The version check failed on subrelease versions (as the 1.2.5-1 rebuild done for Mac) and detected an updated version that is in fact an outdated one. Rework the comparison completely, move it to the Utils class and display some more information in the status bar upon update check. Especially keep a notice in the status bar if an updated version was found. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26788 a1c6a512-1295-4272-9138-f99709370657
* Move utils.cpp functions into separate class and split it up.Dominik Riebeling2010-04-02
| | | | | | | | | Move class-less functions in utils.cpp into a new Utils class and make the old functions static. This prevents clashes with system C functions. Rename some functions to avoid macro problems (check() is a macro on OS X). Split out the RockboxInfo class into a separate file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25441 a1c6a512-1295-4272-9138-f99709370657
* Update an outdated comment.Dominik Riebeling2010-02-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24798 a1c6a512-1295-4272-9138-f99709370657
* rbutil: split RbSettings. use Stable/unstable status from server.Dominik Wenger2010-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24331 a1c6a512-1295-4272-9138-f99709370657
* Use f_frsize when calculating the free disk space from the block count. ↵Dominik Riebeling2009-11-21
| | | | | | Fixes wrong value on implementations with f_bsize != f_frsize. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23685 a1c6a512-1295-4272-9138-f99709370657
* Improve a few debug logger messages.Dominik Riebeling2009-10-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23407 a1c6a512-1295-4272-9138-f99709370657
* Add special handling for ipodvideo64mb when detecting the player via ↵Dominik Riebeling2009-09-25
| | | | | | rockbox-info.txt. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22831 a1c6a512-1295-4272-9138-f99709370657
* Fix Rockbox Utility build on W32.Dominik Riebeling2009-08-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22260 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
* Simplify and cleanup rockbox-info.txt handling.Dominik Riebeling2009-08-10
| | | | | | Simplify RockboxInfo file handling. Remove Detect::installedVersion() and Detect::installedTarget(), as those became wrappers around RockboxInfo without functionality. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22237 a1c6a512-1295-4272-9138-f99709370657
* rbutil: completely rework how tts and encoders are configured. (FS#10070)Dominik Wenger2009-04-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20824 a1c6a512-1295-4272-9138-f99709370657
* Fix overflow on free space calculation (Linux / OS X).Dominik Riebeling2009-04-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20717 a1c6a512-1295-4272-9138-f99709370657
* rbutil: create a RockboxInfo class so all rockbox-info.txt handling is in ↵Dominik Wenger2009-03-21
| | | | | | one place. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20429 a1c6a512-1295-4272-9138-f99709370657
* rbutil: fix compiling on mac.Dominik Wenger2009-01-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19708 a1c6a512-1295-4272-9138-f99709370657
* Make Rockbox Utility error out if the zip file its going to install requires ↵Dominik Riebeling2008-12-13
| | | | | | more space than left on the device. Calculation adds a safety space of 1MB so you need at least 1MB more free space than the extracted archive. This also catches differences due to the size calculation not taking cluster losses into account. Free disk space is also displayed in the sysinfo dialog. Fixes FS#9417. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19428 a1c6a512-1295-4272-9138-f99709370657
* Separate basic functionality from GUI parts by moving it into a separate ↵Dominik Riebeling2008-10-12
folder. Some files still need to get cleaned up prior moving them too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18788 a1c6a512-1295-4272-9138-f99709370657