summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/serverinfo.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-11-19rbutil: Convert ServerInfo to singleton.Dominik Riebeling1-3/+11
Change-Id: I29d94eb6bae084754e5e3f337c41de8354ba123c
2020-11-19rbutil: Rework server info data handling.Dominik Riebeling1-2/+0
Remove map that isn't used anymore. Change-Id: I771a98c9b64f3dac36e71041c566b89fbea51e06
2020-11-15rbutil: Rework server info data handling.Dominik Riebeling1-15/+13
Return status as int, not as string, and provide a separate function for converting to string. This allows to filter based on the actual status, not a (localized) status string, which is more robust. Fix a regression that made players with missing status value show up as retired. Change-Id: I15f83ae0df484199b1b3b5b95069db8b4d425987
2020-11-15rbutil: Rework server info data handling.Dominik Riebeling1-7/+6
Allow constructing release candidate URL from configuration the same way we construct the URL for releases. Note that the server path used does not exist, taken from old release candidate builds not available anymore. Change-Id: I7332f08df05ed39724b4900556aaa1f5e0ba463b
2020-11-15rbutil: Rework server info data handling.Dominik Riebeling1-7/+1
Allow extracting release candidate version even if no URL is present. Avoids a special case for version handling. Change-Id: If496d30059c3181899ab9337a35a07b39eaef52e
2020-11-15rbutil: Rework server info data handling.Dominik Riebeling1-155/+119
Don't create our own in-memory map with server data. Instead use the configuration file retrieved from the download server, and do the resolve / replacement on the fly. Simplifies things, and prepares for cleaner handling for different build types. Change-Id: Ifd027b21486e402fda3df9c2f7a30264651f733d
2020-11-14rbutil: Rework player configuration.Dominik Riebeling1-2/+2
Rename config entries and remove now unnecessary default value handling. Change-Id: I5c60ef9769fc01f45f45290dafffb80c1962e674
2020-11-14rbutil: Rework player configuration.Dominik Riebeling1-36/+20
- Split internal configuration into player specific and common parts. Always require passing the player for player specific data instead of implicitly assuming the currently selected one; only use the currently selected one if the player name is explicitly passed as empty. - Similarly adjust handling of server info data; prepare for splitting into build type specific values so the naming becomes cleaner. Change-Id: I894e694f83bd9fe2d22ad46b3f8f7df3e2c68033
2020-11-01rbutil: Remove unneeded includes.Dominik Riebeling1-4/+0
Change-Id: I20cde7201617481124905334e2adfb7f00f4fd21
2020-08-21rbutil: Use a non-zero default value for status.Dominik Riebeling1-1/+1
When resolving the status values downloaded from the server use a negative value as default. Since 0 is the default in QSettings but now considered as "retired" a missing status value would make that target appear as retired instead of unknown status. Change-Id: I23567413c5c3d5828fca7f9c5a29e2037e8614cf
2020-07-14rbutil: Handle the new Retired target status.Solomon Peachy1-1/+3
It's considerd stable, but does not have dev builds any more So don't display download options to get RC or dev builds. Change-Id: I68ed6adc2dd72d54464d3ff8d8e8df28088f8020
2013-11-04Use cutelogger for Rockbox Utility internal trace.Dominik Riebeling1-3/+4
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
2012-06-18Move constructing manual URL to ServerInfo class.Dominik Riebeling1-0/+29
Change-Id: I4d2605b2389b4378e8311fc82057974e0eb238e6
2012-06-17Make ServerInfo parsing slightly more robust.Dominik Riebeling1-6/+9
- Don't assume the list of release targets to be the same as the list of release-candidate targets. - Don't try to construct a download URL for releases with an empty release version. Change-Id: Icc3098a9db9e3d00261c32f4b9c2999ecc716380
2012-06-17Support release-candidate entry format for releases.Dominik Riebeling1-10/+19
The release-candiate entries provide both version and URL instead of only a version entry and requiring the URL to be constructed separately. Since it's easy to identify the format support both for release entries for improved flexibility -- if the server URLs ever change the server only needs to get updated to use the extended format. Change-Id: If5c669b72d7acd6ac648c5f42dd844ae36904df6
2012-06-17Read release candidate information from build-info.Dominik Riebeling1-0/+19
Change-Id: I73ac0922f25dd247588f945eba1e78f4026d747d
2012-06-17Move download URL construction to ServerInfo.Dominik Riebeling1-6/+27
Centralize creating the URLs so it's not duplicated in two places. This also allows to change the representation on the server more easily, since it only requires changes in one place. Currently only changes URLs for Rockbox builds. Change-Id: I87277cd61f8b164bdbcd914c9873d674661a786c
2012-06-03Update for single build-info file.Dominik Riebeling1-16/+7
The server now provides a single build-info file (instead of two separate ones for development builds and stable releases). Update to use the new file, since it simplifies things. Change-Id: If3b949f4d78eecb54e47622da887f51005f6d155
2012-05-19Remove "daily builds" from Rockbox Utility.Dominik Riebeling1-2/+0
Since Rockbox Utility could only install the most recent "daily build" there is not much difference to the most recent development build so the option was not really useful. Additionally update naming. Former "daily" builds are now "archived builds" and can get installed manually (if necessary), and "current" builds are renamed to "development build". Change-Id: I748688d544b6d9868f7495f30933637bf9ff5e50
2011-10-19Remove svn keyword lines from sources.Dominik Riebeling1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30806 a1c6a512-1295-4272-9138-f99709370657
2010-06-07Fix typo.Dominik Riebeling1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26666 a1c6a512-1295-4272-9138-f99709370657
2010-02-12Fix problems with platform retrieval.Dominik Riebeling1-2/+2
- handle disabled platforms also for for variant and base groups. - make variant detection more strict to prevent variants that are a substring of other variants to match. Happened e.g. for iriverh10 and iriverh100. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24625 a1c6a512-1295-4272-9138-f99709370657
2010-01-31Extend SystemInfo to allow distinguishing between platforms and variants.Dominik Riebeling1-25/+28
Doing so removes the need to loop over all targets to fill in values for target variants in ServerInfo. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24427 a1c6a512-1295-4272-9138-f99709370657
2010-01-24rbutil: split RbSettings. use Stable/unstable status from server.Dominik Wenger1-0/+149
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24331 a1c6a512-1295-4272-9138-f99709370657