Dominik Riebeling
84ced00bbd
Simplify and cleanup rockbox-info.txt handling.
...
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
2009-08-10 19:20:53 +00:00
Dominik Riebeling
ad7dab615f
Add missing multiple inclusion protection.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22236 a1c6a512-1295-4272-9138-f99709370657
2009-08-10 18:08:06 +00:00
Dominik Riebeling
0b7bfb6270
Extend bootloader installation to accept alternatives for the destination filename.
...
Remove the hardcoded special case for the H10 bootloader installation and uninstallation. Allow multiple bootloader filenames to be present and pick the existing one on (un)installation. This is also needed for easily adding support for the Samsung YH players (to make FS#10373 actually work).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22220 a1c6a512-1295-4272-9138-f99709370657
2009-08-09 10:57:39 +00:00
Dominik Riebeling
63ba647ee0
Clean up bootloader installation debug output a bit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22219 a1c6a512-1295-4272-9138-f99709370657
2009-08-09 10:57:33 +00:00
Dominik Wenger
de460fe783
rbutil: try to fix voicefile creation for releases. (genlang.cgi still needs fixing).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22207 a1c6a512-1295-4272-9138-f99709370657
2009-08-08 13:06:01 +00:00
Dominik Riebeling
363cbc22b5
Support libusb-1.0.
...
Use "qmake -config libusb1" to use libusb-1.0 instead of libusb-0.1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22205 a1c6a512-1295-4272-9138-f99709370657
2009-08-08 12:28:47 +00:00
Dominik Riebeling
bd5b744a6d
Clean up some debug output, kill some trailing spaces and break some overly long lines.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22204 a1c6a512-1295-4272-9138-f99709370657
2009-08-08 12:12:49 +00:00
Dominik Wenger
13d0b526c3
rbutil: move ProgressloggerInterface to base/
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21531 a1c6a512-1295-4272-9138-f99709370657
2009-06-27 15:21:42 +00:00
Dominik Wenger
20bf8aaf18
rbutil: improve voice and talk generation.
...
- introduce a talkgenerator to better share code between voice and talk generation.
- name intermediate .talkfiles after the md5sum of the text. (prevents naming problems).
- do not directly use the logger, instead emit signals.
- move talkfile and voicefile generation to base/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21524 a1c6a512-1295-4272-9138-f99709370657
2009-06-26 20:40:51 +00:00
Dominik Riebeling
f2a8dd3ce5
Clean up several debug messages.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21314 a1c6a512-1295-4272-9138-f99709370657
2009-06-16 18:45:20 +00:00
Dominik Riebeling
7533dcb6eb
Fix manual download using the wrong filename if the manual name differs from the target name.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21296 a1c6a512-1295-4272-9138-f99709370657
2009-06-15 19:06:03 +00:00
Dominik Riebeling
11cd9e4464
Set svn:eol-style on several files missing it and dos2unix them.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21238 a1c6a512-1295-4272-9138-f99709370657
2009-06-09 21:49:34 +00:00
Dominik Riebeling
86041b1d33
Make labels in generated TTS / Encoder setting dialogs translatable.
...
Code police: break some long lines, remove trailing spaces.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21237 a1c6a512-1295-4272-9138-f99709370657
2009-06-09 21:46:05 +00:00
Dominik Riebeling
fe72c890a7
Show Qt version number in Sysinfo dialog and in startup debug output.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21194 a1c6a512-1295-4272-9138-f99709370657
2009-06-05 21:49:53 +00:00
Dominik Riebeling
132176e120
RFC2616 requires requests made to proxies to use the absoluteURI form while HTTP/1.1 clients shall only create it when sending a request to a proxy. Fixes proxy support not working correctly (most noticably on theme installation).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20992 a1c6a512-1295-4272-9138-f99709370657
2009-05-19 22:46:57 +00:00
Bertrik Sikken
a7970d32e8
rbutil: fix spelling, enginge -> engine
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20895 a1c6a512-1295-4272-9138-f99709370657
2009-05-09 19:07:01 +00:00
Dominik Wenger
9ca29354e1
rbutil: enforce parents for bootloader install classes. and rework OF handling a bit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20892 a1c6a512-1295-4272-9138-f99709370657
2009-05-09 18:17:05 +00:00
Dominik Wenger
33d9cf091a
rbutil: make RbSettings a static class. (FS#10183 with improvements)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20890 a1c6a512-1295-4272-9138-f99709370657
2009-05-09 16:59:14 +00:00
Dominik Riebeling
d5f7dab230
Cleanup and un-gui ZipInstaller class:
...
- Use signals for updating the progress logger from ZipInstaller class.
- Move ZipInstaller class to base folder as it doesn't rely on QtGui anymore.
- cleanup debugging output a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20845 a1c6a512-1295-4272-9138-f99709370657
2009-05-02 18:50:31 +00:00
Dominik Riebeling
7cfdd47587
Clean up ProgressLogger state handling:
...
- use better names for member functions
- don't emit aborted() when exiting a successful log
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20844 a1c6a512-1295-4272-9138-f99709370657
2009-05-02 18:40:04 +00:00
Dominik Riebeling
b22516f995
Make sure the global buffers for ipodpatcher and sansapatcher get allocated and freed only once. Fixes segfaults when the bootloader install class was instanciated multiple times.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20835 a1c6a512-1295-4272-9138-f99709370657
2009-05-01 21:35:06 +00:00
Dominik Wenger
3c15e78349
rbutil: correct use of parent ptr in constructor.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20833 a1c6a512-1295-4272-9138-f99709370657
2009-04-30 19:52:34 +00:00
Dominik Riebeling
f679cf91cf
Bootloader installation for ipod and sansa: override the scanning with the device pointed to by the mountpoint. This allows selecting the correct player if two of the same brand are connected (FS#10096).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20832 a1c6a512-1295-4272-9138-f99709370657
2009-04-30 19:14:24 +00:00
Dominik Riebeling
19c2588471
Move Settings class to base.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20827 a1c6a512-1295-4272-9138-f99709370657
2009-04-29 21:36:05 +00:00
Dominik Wenger
357d35c20e
rbutil: move the tts and encoders and its settings interface to base/
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20825 a1c6a512-1295-4272-9138-f99709370657
2009-04-29 21:29:35 +00:00
Dominik Wenger
5b85ef6006
rbutil: completely rework how tts and encoders are configured. (FS#10070)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20824 a1c6a512-1295-4272-9138-f99709370657
2009-04-29 21:27:01 +00:00
Dominik Riebeling
3d2e42ab4c
Completely rework RbSettings class.
...
- use a single member function for accessing a settings value.
- use an enum to figure the correct value in the settings file instead of functions.
- return the settings value as QVariant instead and leave converting to the caller.
- accept QVariant as value when setting values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20823 a1c6a512-1295-4272-9138-f99709370657
2009-04-29 20:58:47 +00:00
Dominik Riebeling
a357c202a2
Fix missing include.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20816 a1c6a512-1295-4272-9138-f99709370657
2009-04-27 21:20:09 +00:00
Dominik Riebeling
b388200519
Simplify a debug output case and fix a gcc warning (as reported in FS#10124, only appears on new gcc versions).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20725 a1c6a512-1295-4272-9138-f99709370657
2009-04-17 22:09:39 +00:00
Dominik Riebeling
e82aedd451
Fix overflow on free space calculation (Linux / OS X).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20717 a1c6a512-1295-4272-9138-f99709370657
2009-04-16 20:56:52 +00:00
Dominik Riebeling
bfce7eea5c
Refactor USB ID map retrieval from device settings file and minimize duplicated code.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20716 a1c6a512-1295-4272-9138-f99709370657
2009-04-16 20:49:43 +00:00
Dominik Riebeling
9def6b2345
Fix a potentially dangerous bug with bootloader installation for Sansas:
...
check the downloaded bootloader file against the target reported by sansapatcher as otherwise one could install an e200 bootloader to a c200 (and vice versa).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20630 a1c6a512-1295-4272-9138-f99709370657
2009-04-05 19:19:27 +00:00
Dominik Riebeling
a61e63cb41
Fix a wrong debug message.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20620 a1c6a512-1295-4272-9138-f99709370657
2009-04-05 09:22:22 +00:00
Dominik Riebeling
76e2ce3a44
Code police and remove trailing whitespaces.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20590 a1c6a512-1295-4272-9138-f99709370657
2009-03-30 22:05:21 +00:00
Dominik Wenger
75a5b9321b
rbutil:
...
1. Make Themesite integration work again
2. Fix FS#10055 (Theme sizes are 0) and FS#10061 (Incorrect Target missmatch detected)
3. Rename platform and voicename in rbutil.ini to reflect better what they are. (modelnames from either configure or the buildserver)
4. Fix a few places where they were used incorrectly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20558 a1c6a512-1295-4272-9138-f99709370657
2009-03-27 18:09:01 +00:00
Dominik Riebeling
ba830e4cfe
Don't connect the headerFinished slot during each get. Fixes the header result getting evaluated more than once if a HttpGet object is reused.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20447 a1c6a512-1295-4272-9138-f99709370657
2009-03-22 08:50:55 +00:00
Dominik Riebeling
6a76ebbab1
Cleanup HttpGet debugging output: make it somewhat more silent and streamline the messages in general.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20438 a1c6a512-1295-4272-9138-f99709370657
2009-03-21 23:18:57 +00:00
Dominik Riebeling
e8f25d91e8
Don't ignore errors when finishing a HTTP request for cached request as that is already done. Fixes a wrong status reported when an error occured.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20435 a1c6a512-1295-4272-9138-f99709370657
2009-03-21 21:04:24 +00:00
Dominik Riebeling
e70f24c7d7
Silence current file debug output of RbUnzip.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20434 a1c6a512-1295-4272-9138-f99709370657
2009-03-21 21:04:21 +00:00
Dominik Riebeling
8037fed8d5
HttpGet: if downloaded data should be written to output buffer make sure the buffer empty. This prevents old data available to the caller if a HttpGet object is reused and the new request fails.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20432 a1c6a512-1295-4272-9138-f99709370657
2009-03-21 18:01:59 +00:00
Dominik Wenger
6c73482d00
rbutil: create a RockboxInfo class so all rockbox-info.txt handling is in one place.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20429 a1c6a512-1295-4272-9138-f99709370657
2009-03-21 16:30:40 +00:00
Dominik Riebeling
3822126de8
Use target string instead of target id when checking the target selection against an existing Rockbox installation. Removes the need to resolve id -> name.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20325 a1c6a512-1295-4272-9138-f99709370657
2009-03-14 23:34:40 +00:00
Dominik Riebeling
e05e7932f3
Some HttpGet cleanup: use references when setting options.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20232 a1c6a512-1295-4272-9138-f99709370657
2009-03-08 09:06:05 +00:00
Dominik Riebeling
c1b4745d7c
Add some more bootloader install progress messages and call processEvents() more often before performing player disk accesses.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19724 a1c6a512-1295-4272-9138-f99709370657
2009-01-08 17:16:53 +00:00
Dominik Riebeling
56d5bc728d
When checking the installed bootloader make sure to properly close the device afterwards. Fixes "No Sansa found" issues on windows as reported in the forums.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19722 a1c6a512-1295-4272-9138-f99709370657
2009-01-08 16:02:10 +00:00
Dominik Wenger
48fdf588a1
rbutil: fix compiling on mac.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19708 a1c6a512-1295-4272-9138-f99709370657
2009-01-07 13:31:19 +00:00
Dominik Riebeling
cd5f753f5e
Fix issues with mi4 bootloader install:
...
- return correct success result. Fixes automatic install hanging.
- when reinstalling the bootloader (OF.mi4 present) remove Rockbox bootloader first. Fixes sinstall failing silently.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19474 a1c6a512-1295-4272-9138-f99709370657
2008-12-18 21:16:47 +00:00
Dominik Riebeling
8fe55f96b5
Various small rbutil source string cleanups.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19436 a1c6a512-1295-4272-9138-f99709370657
2008-12-14 12:36:35 +00:00
Dominik Riebeling
bc7917daeb
Make Rockbox Utility error out if the zip file its going to install requires 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
2008-12-13 20:09:31 +00:00
Dominik Riebeling
fc7ba8806b
Rename getMountpoints() to mountpoints() to be in line with general (and Qt) naming -- get functions don't get a get prefix. Make the function static.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19426 a1c6a512-1295-4272-9138-f99709370657
2008-12-13 19:45:11 +00:00