summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/systeminfo.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-28 20:47:28 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-12-03 22:25:12 +0100
commitb064a6cbb58a0db1a70fbac2e82242ce0c7509b1 (patch)
treec9090d367d237cbd408afbd24d5809e55a1a2653 /rbutil/rbutilqt/base/systeminfo.h
parent78a01db47cac5fa67aeee6f1c5134f89c3e4944a (diff)
downloadrockbox-b064a6cbb58a0db1a70fbac2e82242ce0c7509b1.tar.gz
rockbox-b064a6cbb58a0db1a70fbac2e82242ce0c7509b1.zip
rbutil: Rework and merge player and build server info handling.
Handling the data for players from rbutil.ini and the build-info data from the server is closely related. Splitting things up into different classes only creates tightly coupling, which is unnecessary, and the need to differentiate between them in the application. Merge both classes into a single one and rework handling so the application doesn't have to deal with two separate classes anymore. Furthermore, change URL templates to use new values from build-info instead of hard coding them. Change-Id: Ica550973ce23d1559110782add52bc214eba552d
Diffstat (limited to 'rbutil/rbutilqt/base/systeminfo.h')
-rw-r--r--rbutil/rbutilqt/base/systeminfo.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/rbutil/rbutilqt/base/systeminfo.h b/rbutil/rbutilqt/base/systeminfo.h
index 67863c2268..7b5b68131b 100644
--- a/rbutil/rbutilqt/base/systeminfo.h
+++ b/rbutil/rbutilqt/base/systeminfo.h
@@ -34,47 +34,6 @@ class SystemInfo : public QObject
34 MapIncompatible, 34 MapIncompatible,
35 }; 35 };
36 36
37 enum BuildType {
38 BuildCurrent,
39 BuildDaily,
40 BuildRelease,
41 BuildCandidate
42 };
43
44 //! All system settings
45 enum SystemInfos {
46 BuildUrl,
47 FontUrl,
48 VoiceUrl,
49 ManualUrl,
50 BootloaderUrl,
51 BootloaderInfoUrl,
52 DoomUrl,
53 Duke3DUrl,
54 QuakeUrl,
55 PuzzFontsUrl,
56 Wolf3DUrl,
57 XWorldUrl,
58 ReleaseUrl,
59 BuildInfoUrl,
60 GenlangUrl,
61 ThemesUrl,
62 ThemesInfoUrl,
63 RbutilUrl,
64 };
65
66 enum PlatformInfo {
67 Manual,
68 BootloaderMethod,
69 BootloaderName,
70 BootloaderFile,
71 BootloaderFilter,
72 Encoder,
73 Brand,
74 Name,
75 PlayerPicture,
76 };
77
78 enum PlatformType { 37 enum PlatformType {
79 PlatformAll, 38 PlatformAll,
80 PlatformAllDisabled, 39 PlatformAllDisabled,
@@ -93,9 +52,6 @@ class SystemInfo : public QObject
93 //! returns a map of usb-ids and their targets 52 //! returns a map of usb-ids and their targets
94 static QMap<int, QStringList> usbIdMap(enum MapType type); 53 static QMap<int, QStringList> usbIdMap(enum MapType type);
95 //! get a value from system settings 54 //! get a value from system settings
96 static QVariant value(enum SystemInfos info, BuildType type = BuildCurrent);
97 //! get a value from system settings for a named platform.
98 static QVariant platformValue(enum PlatformInfo info, QString platform = "");
99 55
100 private: 56 private:
101 //! you shouldnt call this, its a fully static calls 57 //! you shouldnt call this, its a fully static calls