Commit graph

55 commits

Author SHA1 Message Date
Dominik Riebeling
e2f5086916 Clean up and rename Detect class.
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
2009-08-10 19:46:51 +00:00
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
89e5333bc1 Move download link pattern description to rbutil.ini.
Don't hard code the creation of the download links anymore but use pattern replacement and define the basic structure in rbutil.ini.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22200 a1c6a512-1295-4272-9138-f99709370657
2009-08-08 00:02:33 +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 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
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
a137733d10 Install dialog: fix version notes not getting cleared correctly for current build if a release is available.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20675 a1c6a512-1295-4272-9138-f99709370657
2009-04-10 15:11:53 +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
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
b14fe221ab Use reference for version map instead of copy in prototype.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20144 a1c6a512-1295-4272-9138-f99709370657
2009-02-28 20:48:55 +00:00
Dominik Riebeling
29565c40f7 Remove installation note and checkbox disabling about the current build always being downloaded -- since cache improvement this uses the cache too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19857 a1c6a512-1295-4272-9138-f99709370657
2009-01-25 18:43:01 +00:00
Dominik Riebeling
07894de36d Remove hard-coded release version numbers.
- get the target specific version number from the build-info file
- disable Quick Start buttons until version info is available
- only enable Quick Start buttons if a release is available.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19854 a1c6a512-1295-4272-9138-f99709370657
2009-01-25 17:22:06 +00:00
Dominik Riebeling
9349911c47 Install dialog: use the release version number from the version strings map instead of accessing the ini file directly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19850 a1c6a512-1295-4272-9138-f99709370657
2009-01-25 13:31:32 +00:00
Dominik Riebeling
4b387a4d07 Don't allow pre-selecting stable build if the selected player doesn't have a release yet. Fixes wrong preselection if a stable build was installed before for a different target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19841 a1c6a512-1295-4272-9138-f99709370657
2009-01-24 10:02:18 +00:00
Dominik Riebeling
f881672411 Make backup location text elide based of the label width instead of fixed size. Adjust on window resizes as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19832 a1c6a512-1295-4272-9138-f99709370657
2009-01-23 22:03:46 +00:00
Dominik Riebeling
32a6262b54 - make installation dialog default to the last selection if existing.
- enable cache usage for current builds too -- the http class now checks the timestamp of the file on the server, so there's no more point in not using the cache for current builds too.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19492 a1c6a512-1295-4272-9138-f99709370657
2008-12-19 22:18:07 +00:00
Dominik Riebeling
b208000c36 Make Detect::check() return an error string instead of a boolean result and move the handling of an occurred error to the application to make detection Gui-clean. Move detect class to base folder.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18873 a1c6a512-1295-4272-9138-f99709370657
2008-10-24 22:31:07 +00:00
Dominik Wenger
71e7209028 rbutil: make release versions local to devices. To allow different releases on different devices.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18825 a1c6a512-1295-4272-9138-f99709370657
2008-10-18 16:19:07 +00:00
Dominik Riebeling
e56549f03d Adjust Rockbox release download filename to the changed target - version order.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18619 a1c6a512-1295-4272-9138-f99709370657
2008-09-23 22:45:34 +00:00
Bertrik Sikken
43b11af169 Fix spelling error: successfull -> successful
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18119 a1c6a512-1295-4272-9138-f99709370657
2008-07-25 22:29:59 +00:00
Dominik Wenger
7fb11a82a1 rbutil: move some detecting code, to make detecing things nicer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17813 a1c6a512-1295-4272-9138-f99709370657
2008-06-27 21:53:22 +00:00
Dominik Wenger
6b0a1ec2a1 rbutil: warn when you install a build for a different target then already installed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17769 a1c6a512-1295-4272-9138-f99709370657
2008-06-23 20:31:44 +00:00
Dominik Riebeling
9ea6bc06da Use the new progressbar value slot instead of wrapping around it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17685 a1c6a512-1295-4272-9138-f99709370657
2008-06-03 20:08:25 +00:00
Dominik Wenger
0e7b8654cf rbutil: also use elides when the backup filename is changed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17484 a1c6a512-1295-4272-9138-f99709370657
2008-05-12 21:21:12 +00:00
Dominik Riebeling
8ea9b94cd9 fix some small glitches for backup:
- use the complete path as starting folder for browsing, not the elided one
- don't drop the old path if selection was cancelled
- show native dir separators


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17473 a1c6a512-1295-4272-9138-f99709370657
2008-05-12 17:29:03 +00:00
Dominik Wenger
4296bc4548 rbutil: use elides in the backup filename, also fix cache for archived builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17466 a1c6a512-1295-4272-9138-f99709370657
2008-05-11 20:20:19 +00:00
Dominik Wenger
76e6ad9069 rbutil: more improvements for the backup mechanism.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17465 a1c6a512-1295-4272-9138-f99709370657
2008-05-11 18:53:24 +00:00
Dominik Wenger
d24eb9e461 rbutil: improve the backup function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17463 a1c6a512-1295-4272-9138-f99709370657
2008-05-11 18:22:42 +00:00
Dominik Wenger
acccee479a rbutil: Detect if Rockbox is already installed, and allow Backup bevor installing a new build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17440 a1c6a512-1295-4272-9138-f99709370657
2008-05-10 17:53:15 +00:00
Dominik Wenger
b235b1306e rbutil: move many more connect calls, mainly for safety.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16997 a1c6a512-1295-4272-9138-f99709370657
2008-04-06 19:50:38 +00:00
Dominik Riebeling
5a75184c4a add global proxy / cache settings to httpget class. This removes the need of passing proxy / cache values around all the time. Each object can still override the global values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16530 a1c6a512-1295-4272-9138-f99709370657
2008-03-05 21:12:24 +00:00
Dominik Wenger
b30181a14b rbutil: fix bug with wrong downloadURL for h10.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16306 a1c6a512-1295-4272-9138-f99709370657
2008-02-13 18:25:01 +00:00
Dominik Wenger
3a54c9b58d rbtutil: introduce a RbSettings class help code reuse, and minimises duplicated code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16159 a1c6a512-1295-4272-9138-f99709370657
2008-01-25 00:12:25 +00:00
Dominik Riebeling
152f405cce Small clarification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15215 a1c6a512-1295-4272-9138-f99709370657
2007-10-19 22:49:06 +00:00
Antoine Cellerier
1464c9b5d0 Cosmetics: remove trailing spaces.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14723 a1c6a512-1295-4272-9138-f99709370657
2007-09-15 22:57:07 +00:00
Dominik Riebeling
b9dbd4ee9c - rework language selection a bit: use language string as key instead of language file basename. Display the language string in the selection list too. This makes it possible to distinguish between two variants of the same language without adjusting the language name.
- move user settings from "defaults" section to "general". Makes the code cleaner and has been that way for historical reasons only anyway.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14592 a1c6a512-1295-4272-9138-f99709370657
2007-09-03 14:37:00 +00:00
Dominik Riebeling
7717520102 When installing builds use the real platform name, not the configuration section one. Fixes installation of X5V builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14540 a1c6a512-1295-4272-9138-f99709370657
2007-08-30 19:20:10 +00:00
Dominik Riebeling
fae8e3fe4f When installing a build also save the platform information to the log file. This solves the detection issue on X5 / X5V (as they share the same build but not bootloader).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14539 a1c6a512-1295-4272-9138-f99709370657
2007-08-30 19:08:25 +00:00
Dominik Riebeling
be4d0a7795 Rename logfile section for base install to something more descriptive (as it is displayed in the uninstall dialog)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14489 a1c6a512-1295-4272-9138-f99709370657
2007-08-28 13:07:25 +00:00
Dominik Riebeling
3075e3bafd Cache was intended to be disabled per default. Also make the "disable download cache" button in installation window working.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14480 a1c6a512-1295-4272-9138-f99709370657
2007-08-27 18:05:16 +00:00
Dominik Riebeling
5ef236869f Implement download caching. Set the folder for the cache data in the configuration dialog. Caching is disabled per default and defaults to the systems temp folder.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14476 a1c6a512-1295-4272-9138-f99709370657
2007-08-27 17:40:35 +00:00
Dominik Riebeling
848abc8037 Add info window which shows details about the currently installed files based on the installation log file. Rework the log file and save revision number / timestamps instead of an arbitrary number.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14461 a1c6a512-1295-4272-9138-f99709370657
2007-08-26 16:03:56 +00:00
Dominik Wenger
663029ddfb rbutilQt: fix the installing of release builds (archos only).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14460 a1c6a512-1295-4272-9138-f99709370657
2007-08-26 11:34:32 +00:00
Dominik Riebeling
498bae30b7 extend ZipInstaller to support installing of multiple files at once (for use by the theme installation).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14348 a1c6a512-1295-4272-9138-f99709370657
2007-08-14 23:11:46 +00:00
Dominik Riebeling
e4d0f0e638 Remove mountpoint entry line from installation form and use config setting instead. Add some nice tango icons.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14151 a1c6a512-1295-4272-9138-f99709370657
2007-08-02 22:27:51 +00:00
Dominik Wenger
5df9fc5c40 rbutilQt: the progressloggergui now uses little icons along the text.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14105 a1c6a512-1295-4272-9138-f99709370657
2007-07-31 19:11:44 +00:00
Dominik Wenger
917e0acd64 rbutilQt: changed the progress/error logger, there is now an abstract interface and a progressloggergui implementation of it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14060 a1c6a512-1295-4272-9138-f99709370657
2007-07-29 18:07:31 +00:00
Dominik Riebeling
c414f46971 small simplification, whitespace cleanup and dos2unix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14059 a1c6a512-1295-4272-9138-f99709370657
2007-07-29 17:55:46 +00:00