diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-14 16:23:56 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-14 16:42:29 +0100 |
commit | 2509def164ee7f4aecbe6a786df57140f19e35f2 (patch) | |
tree | 63a7396e1b94482f9f05c3f3abf6c7cd77e10d26 /rbutil | |
parent | 440083af872da43c116c5374d8e1511cef65abf2 (diff) | |
download | rockbox-2509def164ee7f4aecbe6a786df57140f19e35f2.tar.gz rockbox-2509def164ee7f4aecbe6a786df57140f19e35f2.zip |
rbutil: Rework player configuration.
- 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
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilqt/base/autodetection.cpp | 2 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/bootloaderinstalls5l.cpp | 2 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/rbsettings.cpp | 2 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/serverinfo.cpp | 56 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/serverinfo.h | 6 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/systeminfo.cpp | 21 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/systeminfo.h | 5 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/talkgenerator.cpp | 3 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/utils.cpp | 6 | ||||
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 46 | ||||
-rw-r--r-- | rbutil/rbutilqt/gui/manualwidget.cpp | 16 | ||||
-rw-r--r-- | rbutil/rbutilqt/gui/selectiveinstallwidget.cpp | 36 | ||||
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.cpp | 18 | ||||
-rw-r--r-- | rbutil/rbutilqt/themesinstallwindow.cpp | 2 |
14 files changed, 107 insertions, 114 deletions
diff --git a/rbutil/rbutilqt/base/autodetection.cpp b/rbutil/rbutilqt/base/autodetection.cpp index 456d803115..7c69b3a59b 100644 --- a/rbutil/rbutilqt/base/autodetection.cpp +++ b/rbutil/rbutilqt/base/autodetection.cpp | |||
@@ -108,7 +108,7 @@ void Autodetection::detectUsb() | |||
108 | LOG_WARNING() << "[USB] detected problem with player" << d.device; | 108 | LOG_WARNING() << "[USB] detected problem with player" << d.device; |
109 | } | 109 | } |
110 | QString idstring = QString("%1").arg(attached.at(i), 8, 16, QChar('0')); | 110 | QString idstring = QString("%1").arg(attached.at(i), 8, 16, QChar('0')); |
111 | if(!SystemInfo::platformValue(idstring, SystemInfo::CurName).toString().isEmpty()) { | 111 | if(!SystemInfo::platformValue(SystemInfo::CurName, idstring).toString().isEmpty()) { |
112 | struct Detected d; | 112 | struct Detected d; |
113 | d.status = PlayerIncompatible; | 113 | d.status = PlayerIncompatible; |
114 | d.device = idstring; | 114 | d.device = idstring; |
diff --git a/rbutil/rbutilqt/base/bootloaderinstalls5l.cpp b/rbutil/rbutilqt/base/bootloaderinstalls5l.cpp index ef1ab1077c..bd7ed6492d 100644 --- a/rbutil/rbutilqt/base/bootloaderinstalls5l.cpp +++ b/rbutil/rbutilqt/base/bootloaderinstalls5l.cpp | |||
@@ -408,7 +408,7 @@ BootloaderInstallBase::BootloaderType BootloaderInstallS5l::installed(void) | |||
408 | QString logfile = RbSettings::value(RbSettings::Mountpoint).toString() | 408 | QString logfile = RbSettings::value(RbSettings::Mountpoint).toString() |
409 | + "/.rockbox/rbutil.log"; | 409 | + "/.rockbox/rbutil.log"; |
410 | QSettings s(logfile, QSettings::IniFormat, this); | 410 | QSettings s(logfile, QSettings::IniFormat, this); |
411 | QString section = SystemInfo::value( | 411 | QString section = SystemInfo::platformValue( |
412 | SystemInfo::CurBootloaderName).toString().section('/', -1); | 412 | SystemInfo::CurBootloaderName).toString().section('/', -1); |
413 | rbblInstalled = s.contains("Bootloader/" + section); | 413 | rbblInstalled = s.contains("Bootloader/" + section); |
414 | 414 | ||
diff --git a/rbutil/rbutilqt/base/rbsettings.cpp b/rbutil/rbutilqt/base/rbsettings.cpp index 854883c4dd..4167a8659c 100644 --- a/rbutil/rbutilqt/base/rbsettings.cpp +++ b/rbutil/rbutilqt/base/rbsettings.cpp | |||
@@ -194,7 +194,7 @@ QString RbSettings::constructSettingPath(QString path, QString substitute) | |||
194 | } | 194 | } |
195 | else { | 195 | else { |
196 | path.replace(":tts:", userSettings->value("tts").toString()); | 196 | path.replace(":tts:", userSettings->value("tts").toString()); |
197 | path.replace(":encoder:", SystemInfo::platformValue(platform,SystemInfo::CurEncoder).toString()); | 197 | path.replace(":encoder:", SystemInfo::platformValue(SystemInfo::CurEncoder, platform).toString()); |
198 | } | 198 | } |
199 | path.replace(":platform:", platform); | 199 | path.replace(":platform:", platform); |
200 | } | 200 | } |
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp index 98a94a5232..505689847d 100644 --- a/rbutil/rbutilqt/base/serverinfo.cpp +++ b/rbutil/rbutilqt/base/serverinfo.cpp | |||
@@ -51,9 +51,9 @@ void ServerInfo::readBuildInfo(QString file) | |||
51 | QSettings info(file, QSettings::IniFormat); | 51 | QSettings info(file, QSettings::IniFormat); |
52 | 52 | ||
53 | QString developmentRevision = info.value("bleeding/rev").toString(); | 53 | QString developmentRevision = info.value("bleeding/rev").toString(); |
54 | setValue(ServerInfo::BleedingRevision, developmentRevision); | 54 | setPlatformValue(ServerInfo::BleedingRevision, "", developmentRevision); |
55 | QDateTime date = QDateTime::fromString(info.value("bleeding/timestamp").toString(), "yyyyMMddThhmmssZ"); | 55 | QDateTime date = QDateTime::fromString(info.value("bleeding/timestamp").toString(), "yyyyMMddThhmmssZ"); |
56 | setValue(ServerInfo::BleedingDate, date.toString(Qt::ISODate)); | 56 | setPlatformValue(ServerInfo::BleedingDate, "", date.toString(Qt::ISODate)); |
57 | 57 | ||
58 | info.beginGroup("release"); | 58 | info.beginGroup("release"); |
59 | QStringList releasekeys = info.allKeys(); | 59 | QStringList releasekeys = info.allKeys(); |
@@ -135,10 +135,10 @@ void ServerInfo::readBuildInfo(QString file) | |||
135 | QString manualHtmlUrl = manualBaseUrl; | 135 | QString manualHtmlUrl = manualBaseUrl; |
136 | QString manualZipUrl = manualBaseUrl; | 136 | QString manualZipUrl = manualBaseUrl; |
137 | 137 | ||
138 | QString buildservermodel = SystemInfo::platformValue(platforms.at(i), | 138 | QString buildservermodel = SystemInfo::platformValue( |
139 | SystemInfo::CurBuildserverModel).toString(); | 139 | SystemInfo::CurBuildserverModel, platforms.at(i)).toString(); |
140 | QString modelman = SystemInfo::platformValue(platforms.at(i), | 140 | QString modelman = SystemInfo::platformValue( |
141 | SystemInfo::CurManual).toString(); | 141 | SystemInfo::CurManual, platforms.at(i)).toString(); |
142 | QString manualBaseName = "rockbox-"; | 142 | QString manualBaseName = "rockbox-"; |
143 | 143 | ||
144 | if(modelman.isEmpty()) manualBaseName += buildservermodel; | 144 | if(modelman.isEmpty()) manualBaseName += buildservermodel; |
@@ -153,45 +153,26 @@ void ServerInfo::readBuildInfo(QString file) | |||
153 | 153 | ||
154 | // set variants (if any) | 154 | // set variants (if any) |
155 | for(int j = 0; j < variants.size(); ++j) { | 155 | for(int j = 0; j < variants.size(); ++j) { |
156 | setPlatformValue(variants.at(j), ServerInfo::CurStatus, status); | 156 | setPlatformValue(ServerInfo::CurStatus, variants.at(j), status); |
157 | if(!releaseUrl.isEmpty()) { | 157 | if(!releaseUrl.isEmpty()) { |
158 | setPlatformValue(variants.at(j), ServerInfo::CurReleaseVersion, releaseVersion); | 158 | setPlatformValue(ServerInfo::CurReleaseVersion, variants.at(j), releaseVersion); |
159 | setPlatformValue(variants.at(j), ServerInfo::CurReleaseUrl, releaseUrl); | 159 | setPlatformValue(ServerInfo::CurReleaseUrl, variants.at(j), releaseUrl); |
160 | } | 160 | } |
161 | if(!relCandidateUrl.isEmpty()) { | 161 | if(!relCandidateUrl.isEmpty()) { |
162 | setPlatformValue(variants.at(j), ServerInfo::RelCandidateVersion, relCandidateVersion); | 162 | setPlatformValue(ServerInfo::RelCandidateVersion, variants.at(j), relCandidateVersion); |
163 | setPlatformValue(variants.at(j), ServerInfo::RelCandidateUrl, relCandidateUrl); | 163 | setPlatformValue(ServerInfo::RelCandidateUrl, variants.at(j), relCandidateUrl); |
164 | } | 164 | } |
165 | setPlatformValue(variants.at(j), ServerInfo::CurDevelUrl, develUrl); | 165 | setPlatformValue(ServerInfo::CurDevelUrl, variants.at(j), develUrl); |
166 | 166 | ||
167 | setPlatformValue(variants.at(j), ServerInfo::ManualPdfUrl, manualPdfUrl); | 167 | setPlatformValue(ServerInfo::ManualPdfUrl, variants.at(j), manualPdfUrl); |
168 | setPlatformValue(variants.at(j), ServerInfo::ManualHtmlUrl, manualHtmlUrl); | 168 | setPlatformValue(ServerInfo::ManualHtmlUrl, variants.at(j), manualHtmlUrl); |
169 | setPlatformValue(variants.at(j), ServerInfo::ManualZipUrl, manualZipUrl); | 169 | setPlatformValue(ServerInfo::ManualZipUrl, variants.at(j), manualZipUrl); |
170 | } | 170 | } |
171 | } | 171 | } |
172 | } | 172 | } |
173 | 173 | ||
174 | 174 | ||
175 | QVariant ServerInfo::value(enum ServerInfos info) | 175 | void ServerInfo::setPlatformValue(enum ServerInfos info, QString platform, QVariant value) |
176 | { | ||
177 | // locate info item | ||
178 | int i = 0; | ||
179 | while(ServerInfoList[i].info != info) | ||
180 | i++; | ||
181 | |||
182 | QString s = ServerInfoList[i].name; | ||
183 | s.replace(":platform:", RbSettings::value(RbSettings::CurrentPlatform).toString()); | ||
184 | LOG_INFO() << "GET:" << s << serverInfos.value(s, ServerInfoList[i].def).toString(); | ||
185 | return serverInfos.value(s, ServerInfoList[i].def); | ||
186 | } | ||
187 | |||
188 | void ServerInfo::setValue(enum ServerInfos setting, QVariant value) | ||
189 | { | ||
190 | QString empty; | ||
191 | return setPlatformValue(empty, setting, value); | ||
192 | } | ||
193 | |||
194 | void ServerInfo::setPlatformValue(QString platform, enum ServerInfos info, QVariant value) | ||
195 | { | 176 | { |
196 | // locate setting item | 177 | // locate setting item |
197 | int i = 0; | 178 | int i = 0; |
@@ -204,13 +185,16 @@ void ServerInfo::setPlatformValue(QString platform, enum ServerInfos info, QVari | |||
204 | LOG_INFO() << "SET:" << s << serverInfos.value(s).toString(); | 185 | LOG_INFO() << "SET:" << s << serverInfos.value(s).toString(); |
205 | } | 186 | } |
206 | 187 | ||
207 | QVariant ServerInfo::platformValue(QString platform, enum ServerInfos info) | 188 | QVariant ServerInfo::platformValue(enum ServerInfos info, QString platform) |
208 | { | 189 | { |
209 | // locate setting item | 190 | // locate setting item |
210 | int i = 0; | 191 | int i = 0; |
211 | while(ServerInfoList[i].info != info) | 192 | while(ServerInfoList[i].info != info) |
212 | i++; | 193 | i++; |
213 | 194 | ||
195 | if(platform.isEmpty()) | ||
196 | platform = RbSettings::value(RbSettings::CurrentPlatform).toString(); | ||
197 | |||
214 | QString s = ServerInfoList[i].name; | 198 | QString s = ServerInfoList[i].name; |
215 | s.replace(":platform:", platform); | 199 | s.replace(":platform:", platform); |
216 | QString d = ServerInfoList[i].def; | 200 | QString d = ServerInfoList[i].def; |
diff --git a/rbutil/rbutilqt/base/serverinfo.h b/rbutil/rbutilqt/base/serverinfo.h index 94b2818f73..b12a437c34 100644 --- a/rbutil/rbutilqt/base/serverinfo.h +++ b/rbutil/rbutilqt/base/serverinfo.h | |||
@@ -45,16 +45,14 @@ class ServerInfo : public QObject | |||
45 | 45 | ||
46 | //! read in buildinfo file | 46 | //! read in buildinfo file |
47 | static void readBuildInfo(QString file); | 47 | static void readBuildInfo(QString file); |
48 | //! get a value from server info | ||
49 | static QVariant value(enum ServerInfos setting); | ||
50 | //! get a value from server info for a named platform. | 48 | //! get a value from server info for a named platform. |
51 | static QVariant platformValue(QString platform, enum ServerInfos setting); | 49 | static QVariant platformValue(enum ServerInfos setting, QString platform = ""); |
52 | 50 | ||
53 | private: | 51 | private: |
54 | //! set a server info value | 52 | //! set a server info value |
55 | static void setValue(enum ServerInfos setting, QVariant value); | 53 | static void setValue(enum ServerInfos setting, QVariant value); |
56 | //! set a value for a server info for a named platform. | 54 | //! set a value for a server info for a named platform. |
57 | static void setPlatformValue(QString platform, enum ServerInfos setting, QVariant value); | 55 | static void setPlatformValue(enum ServerInfos setting, QString platform, QVariant value); |
58 | //! you shouldnt call this, its a fully static class | 56 | //! you shouldnt call this, its a fully static class |
59 | ServerInfo() {} | 57 | ServerInfo() {} |
60 | 58 | ||
diff --git a/rbutil/rbutilqt/base/systeminfo.cpp b/rbutil/rbutilqt/base/systeminfo.cpp index d57c12a62b..c9e29a8325 100644 --- a/rbutil/rbutilqt/base/systeminfo.cpp +++ b/rbutil/rbutilqt/base/systeminfo.cpp | |||
@@ -49,6 +49,13 @@ const static struct { | |||
49 | { SystemInfo::ThemesUrl, "themes_url", "" }, | 49 | { SystemInfo::ThemesUrl, "themes_url", "" }, |
50 | { SystemInfo::ThemesInfoUrl, "themes_info_url", "" }, | 50 | { SystemInfo::ThemesInfoUrl, "themes_info_url", "" }, |
51 | { SystemInfo::RbutilUrl, "rbutil_url", "" }, | 51 | { SystemInfo::RbutilUrl, "rbutil_url", "" }, |
52 | }; | ||
53 | |||
54 | const static struct { | ||
55 | SystemInfo::PlatformInfo info; | ||
56 | const char* name; | ||
57 | const char* def; | ||
58 | } PlatformInfosList[] = { | ||
52 | { SystemInfo::CurPlatformName, ":platform:/name", "" }, | 59 | { SystemInfo::CurPlatformName, ":platform:/name", "" }, |
53 | { SystemInfo::CurManual, ":platform:/manualname","rockbox-:platform:" }, | 60 | { SystemInfo::CurManual, ":platform:/manualname","rockbox-:platform:" }, |
54 | { SystemInfo::CurBootloaderMethod, ":platform:/bootloadermethod", "none" }, | 61 | { SystemInfo::CurBootloaderMethod, ":platform:/bootloadermethod", "none" }, |
@@ -85,27 +92,27 @@ QVariant SystemInfo::value(enum SystemInfos info) | |||
85 | int i = 0; | 92 | int i = 0; |
86 | while(SystemInfosList[i].info != info) | 93 | while(SystemInfosList[i].info != info) |
87 | i++; | 94 | i++; |
88 | QString platform = RbSettings::value(RbSettings::CurrentPlatform).toString(); | ||
89 | QString s = SystemInfosList[i].name; | 95 | QString s = SystemInfosList[i].name; |
90 | s.replace(":platform:", platform); | ||
91 | QString d = SystemInfosList[i].def; | 96 | QString d = SystemInfosList[i].def; |
92 | d.replace(":platform:", platform); | ||
93 | LOG_INFO() << "GET:" << s << systemInfos->value(s, d).toString(); | 97 | LOG_INFO() << "GET:" << s << systemInfos->value(s, d).toString(); |
94 | return systemInfos->value(s, d); | 98 | return systemInfos->value(s, d); |
95 | } | 99 | } |
96 | 100 | ||
97 | QVariant SystemInfo::platformValue(QString platform, enum SystemInfos info) | 101 | QVariant SystemInfo::platformValue(enum PlatformInfo info, QString platform) |
98 | { | 102 | { |
99 | ensureSystemInfoExists(); | 103 | ensureSystemInfoExists(); |
100 | 104 | ||
101 | // locate setting item | 105 | // locate setting item |
102 | int i = 0; | 106 | int i = 0; |
103 | while(SystemInfosList[i].info != info) | 107 | while(PlatformInfosList[i].info != info) |
104 | i++; | 108 | i++; |
105 | 109 | ||
106 | QString s = SystemInfosList[i].name; | 110 | if (platform.isEmpty()) |
111 | platform = RbSettings::value(RbSettings::CurrentPlatform).toString(); | ||
112 | |||
113 | QString s = PlatformInfosList[i].name; | ||
107 | s.replace(":platform:", platform); | 114 | s.replace(":platform:", platform); |
108 | QString d = SystemInfosList[i].def; | 115 | QString d = PlatformInfosList[i].def; |
109 | d.replace(":platform:", platform); | 116 | d.replace(":platform:", platform); |
110 | LOG_INFO() << "GET P:" << s << systemInfos->value(s, d).toString(); | 117 | LOG_INFO() << "GET P:" << s << systemInfos->value(s, d).toString(); |
111 | return systemInfos->value(s, d); | 118 | return systemInfos->value(s, d); |
diff --git a/rbutil/rbutilqt/base/systeminfo.h b/rbutil/rbutilqt/base/systeminfo.h index fad2c7e48b..b5380f1af5 100644 --- a/rbutil/rbutilqt/base/systeminfo.h +++ b/rbutil/rbutilqt/base/systeminfo.h | |||
@@ -57,6 +57,9 @@ class SystemInfo : public QObject | |||
57 | ThemesUrl, | 57 | ThemesUrl, |
58 | ThemesInfoUrl, | 58 | ThemesInfoUrl, |
59 | RbutilUrl, | 59 | RbutilUrl, |
60 | }; | ||
61 | |||
62 | enum PlatformInfo { | ||
60 | CurPlatformName, | 63 | CurPlatformName, |
61 | CurManual, | 64 | CurManual, |
62 | CurBootloaderMethod, | 65 | CurBootloaderMethod, |
@@ -90,7 +93,7 @@ class SystemInfo : public QObject | |||
90 | //! get a value from system settings | 93 | //! get a value from system settings |
91 | static QVariant value(enum SystemInfos info); | 94 | static QVariant value(enum SystemInfos info); |
92 | //! get a value from system settings for a named platform. | 95 | //! get a value from system settings for a named platform. |
93 | static QVariant platformValue(QString platform, enum SystemInfos info); | 96 | static QVariant platformValue(enum PlatformInfo info, QString platform = ""); |
94 | 97 | ||
95 | private: | 98 | private: |
96 | //! you shouldnt call this, its a fully static calls | 99 | //! you shouldnt call this, its a fully static calls |
diff --git a/rbutil/rbutilqt/base/talkgenerator.cpp b/rbutil/rbutilqt/base/talkgenerator.cpp index 32686c78c2..ee57686037 100644 --- a/rbutil/rbutilqt/base/talkgenerator.cpp +++ b/rbutil/rbutilqt/base/talkgenerator.cpp | |||
@@ -56,7 +56,8 @@ TalkGenerator::Status TalkGenerator::process(QList<TalkEntry>* list,int wavtrimt | |||
56 | 56 | ||
57 | // Encoder | 57 | // Encoder |
58 | emit logItem(tr("Starting Encoder Engine"),LOGINFO); | 58 | emit logItem(tr("Starting Encoder Engine"),LOGINFO); |
59 | m_enc = EncoderBase::getEncoder(this,SystemInfo::value(SystemInfo::CurEncoder).toString()); | 59 | m_enc = EncoderBase::getEncoder( |
60 | this, SystemInfo::platformValue(SystemInfo::CurEncoder).toString()); | ||
60 | if(!m_enc->start()) | 61 | if(!m_enc->start()) |
61 | { | 62 | { |
62 | emit logItem(tr("Init of Encoder engine failed"),LOGERROR); | 63 | emit logItem(tr("Init of Encoder engine failed"),LOGERROR); |
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp index fe35f0c295..a3a3e98fcc 100644 --- a/rbutil/rbutilqt/base/utils.cpp +++ b/rbutil/rbutilqt/base/utils.cpp | |||
@@ -381,12 +381,12 @@ QString Utils::checkEnvironment(bool permission) | |||
381 | RockboxInfo rbinfo(RbSettings::value(RbSettings::Mountpoint).toString()); | 381 | RockboxInfo rbinfo(RbSettings::value(RbSettings::Mountpoint).toString()); |
382 | QString installed = rbinfo.target(); | 382 | QString installed = rbinfo.target(); |
383 | if(!installed.isEmpty() && installed != | 383 | if(!installed.isEmpty() && installed != |
384 | SystemInfo::value(SystemInfo::CurConfigureModel).toString()) | 384 | SystemInfo::platformValue(SystemInfo::CurConfigureModel).toString()) |
385 | { | 385 | { |
386 | text += tr("<li>Target mismatch detected.<br/>" | 386 | text += tr("<li>Target mismatch detected.<br/>" |
387 | "Installed target: %1<br/>Selected target: %2.</li>") | 387 | "Installed target: %1<br/>Selected target: %2.</li>") |
388 | .arg(SystemInfo::platformValue(installed, SystemInfo::CurPlatformName).toString(), | 388 | .arg(SystemInfo::platformValue(SystemInfo::CurPlatformName, installed).toString(), |
389 | SystemInfo::value(SystemInfo::CurPlatformName).toString()); | 389 | SystemInfo::platformValue(SystemInfo::CurPlatformName).toString()); |
390 | } | 390 | } |
391 | 391 | ||
392 | if(!text.isEmpty()) | 392 | if(!text.isEmpty()) |
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index 5b81027eb8..182001e3b8 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp | |||
@@ -355,8 +355,8 @@ void Config::setDevices() | |||
355 | QMultiMap <QString, QString> manuf; | 355 | QMultiMap <QString, QString> manuf; |
356 | for(int it = 0; it < platformList.size(); it++) | 356 | for(int it = 0; it < platformList.size(); it++) |
357 | { | 357 | { |
358 | QString curbrand = SystemInfo::platformValue(platformList.at(it), | 358 | QString curbrand = SystemInfo::platformValue( |
359 | SystemInfo::CurBrand).toString(); | 359 | SystemInfo::CurBrand, platformList.at(it)).toString(); |
360 | manuf.insert(curbrand, platformList.at(it)); | 360 | manuf.insert(curbrand, platformList.at(it)); |
361 | } | 361 | } |
362 | 362 | ||
@@ -384,10 +384,10 @@ void Config::setDevices() | |||
384 | if(!manuf.values(brands.at(c)).contains(platformList.at(it))) | 384 | if(!manuf.values(brands.at(c)).contains(platformList.at(it))) |
385 | continue; | 385 | continue; |
386 | // construct display name | 386 | // construct display name |
387 | QString curname = SystemInfo::platformValue(platformList.at(it), | 387 | QString curname = SystemInfo::platformValue( |
388 | SystemInfo::CurName).toString() + | 388 | SystemInfo::CurName, platformList.at(it)).toString() + |
389 | " (" +ServerInfo::platformValue(platformList.at(it), | 389 | " (" +ServerInfo::platformValue( |
390 | ServerInfo::CurStatus).toString() +")"; | 390 | ServerInfo::CurStatus, platformList.at(it)).toString() +")"; |
391 | LOG_INFO() << "add supported device:" << brands.at(c) << curname; | 391 | LOG_INFO() << "add supported device:" << brands.at(c) << curname; |
392 | w2 = new QTreeWidgetItem(w, QStringList(curname)); | 392 | w2 = new QTreeWidgetItem(w, QStringList(curname)); |
393 | w2->setData(0, Qt::UserRole, platformList.at(it)); | 393 | w2->setData(0, Qt::UserRole, platformList.at(it)); |
@@ -471,10 +471,10 @@ void Config::updateEncState() | |||
471 | return; | 471 | return; |
472 | 472 | ||
473 | QString devname = ui.treeDevices->selectedItems().at(0)->data(0, Qt::UserRole).toString(); | 473 | QString devname = ui.treeDevices->selectedItems().at(0)->data(0, Qt::UserRole).toString(); |
474 | QString encoder = SystemInfo::platformValue(devname, | 474 | QString encoder = SystemInfo::platformValue( |
475 | SystemInfo::CurEncoder).toString(); | 475 | SystemInfo::CurEncoder, devname).toString(); |
476 | ui.encoderName->setText(EncoderBase::getEncoderName(SystemInfo::platformValue(devname, | 476 | ui.encoderName->setText(EncoderBase::getEncoderName(SystemInfo::platformValue( |
477 | SystemInfo::CurEncoder).toString())); | 477 | SystemInfo::CurEncoder, devname).toString())); |
478 | 478 | ||
479 | EncoderBase* enc = EncoderBase::getEncoder(this,encoder); | 479 | EncoderBase* enc = EncoderBase::getEncoder(this,encoder); |
480 | 480 | ||
@@ -742,8 +742,8 @@ void Config::autodetect() | |||
742 | mp = tr("(unknown)"); | 742 | mp = tr("(unknown)"); |
743 | } | 743 | } |
744 | msg += QString("<li>%1</li>").arg(tr("%1 at %2").arg( | 744 | msg += QString("<li>%1</li>").arg(tr("%1 at %2").arg( |
745 | SystemInfo::platformValue(detected.at(i).device, | 745 | SystemInfo::platformValue( |
746 | SystemInfo::CurPlatformName).toString(), | 746 | SystemInfo::CurPlatformName, detected.at(i).device).toString(), |
747 | QDir::toNativeSeparators(mp))); | 747 | QDir::toNativeSeparators(mp))); |
748 | } | 748 | } |
749 | msg += "</ul>"; | 749 | msg += "</ul>"; |
@@ -768,22 +768,22 @@ void Config::autodetect() | |||
768 | case Autodetection::PlayerIncompatible: | 768 | case Autodetection::PlayerIncompatible: |
769 | msg += tr("Detected an unsupported player:\n%1\n" | 769 | msg += tr("Detected an unsupported player:\n%1\n" |
770 | "Sorry, Rockbox doesn't run on your player.") | 770 | "Sorry, Rockbox doesn't run on your player.") |
771 | .arg(SystemInfo::platformValue(detected.at(0).device, | 771 | .arg(SystemInfo::platformValue( |
772 | SystemInfo::CurName).toString()); | 772 | SystemInfo::CurName, detected.at(0).device).toString()); |
773 | break; | 773 | break; |
774 | case Autodetection::PlayerMtpMode: | 774 | case Autodetection::PlayerMtpMode: |
775 | msg = tr("%1 in MTP mode found!\n" | 775 | msg = tr("%1 in MTP mode found!\n" |
776 | "You need to change your player to MSC mode for installation. ") | 776 | "You need to change your player to MSC mode for installation. ") |
777 | .arg(SystemInfo::platformValue(detected.at(0).device, | 777 | .arg(SystemInfo::platformValue( |
778 | SystemInfo::CurName).toString()); | 778 | SystemInfo::CurName, detected.at(0).device).toString()); |
779 | break; | 779 | break; |
780 | case Autodetection::PlayerWrongFilesystem: | 780 | case Autodetection::PlayerWrongFilesystem: |
781 | if(SystemInfo::platformValue(detected.at(0).device, | 781 | if(SystemInfo::platformValue( |
782 | SystemInfo::CurBootloaderMethod) == "ipod") { | 782 | SystemInfo::CurBootloaderMethod, detected.at(0).device) == "ipod") { |
783 | msg = tr("%1 \"MacPod\" found!\n" | 783 | msg = tr("%1 \"MacPod\" found!\n" |
784 | "Rockbox needs a FAT formatted Ipod (so-called \"WinPod\") " | 784 | "Rockbox needs a FAT formatted Ipod (so-called \"WinPod\") " |
785 | "to run. ").arg(SystemInfo::platformValue( | 785 | "to run. ").arg(SystemInfo::platformValue( |
786 | detected.at(0).device, SystemInfo::CurName).toString()); | 786 | SystemInfo::CurName, detected.at(0).device).toString()); |
787 | } | 787 | } |
788 | else { | 788 | else { |
789 | msg = tr("The player contains an incompatible filesystem.\n" | 789 | msg = tr("The player contains an incompatible filesystem.\n" |
@@ -962,10 +962,10 @@ void Config::configEnc() | |||
962 | return; | 962 | return; |
963 | 963 | ||
964 | QString devname = ui.treeDevices->selectedItems().at(0)->data(0, Qt::UserRole).toString(); | 964 | QString devname = ui.treeDevices->selectedItems().at(0)->data(0, Qt::UserRole).toString(); |
965 | QString encoder = SystemInfo::platformValue(devname, | 965 | QString encoder = SystemInfo::platformValue( |
966 | SystemInfo::CurEncoder).toString(); | 966 | SystemInfo::CurEncoder, devname).toString(); |
967 | ui.encoderName->setText(EncoderBase::getEncoderName(SystemInfo::platformValue(devname, | 967 | ui.encoderName->setText(EncoderBase::getEncoderName(SystemInfo::platformValue( |
968 | SystemInfo::CurEncoder).toString())); | 968 | SystemInfo::CurEncoder, devname).toString())); |
969 | 969 | ||
970 | 970 | ||
971 | EncoderBase* enc = EncoderBase::getEncoder(this,encoder); | 971 | EncoderBase* enc = EncoderBase::getEncoder(this,encoder); |
diff --git a/rbutil/rbutilqt/gui/manualwidget.cpp b/rbutil/rbutilqt/gui/manualwidget.cpp index 0ba3012aea..23adc3cf46 100644 --- a/rbutil/rbutilqt/gui/manualwidget.cpp +++ b/rbutil/rbutilqt/gui/manualwidget.cpp | |||
@@ -42,9 +42,9 @@ void ManualWidget::updateManual() | |||
42 | if(!m_platform.isEmpty()) | 42 | if(!m_platform.isEmpty()) |
43 | { | 43 | { |
44 | ui.labelPdfManual->setText(tr("<a href='%1'>PDF Manual</a>") | 44 | ui.labelPdfManual->setText(tr("<a href='%1'>PDF Manual</a>") |
45 | .arg(ServerInfo::platformValue(m_platform, ServerInfo::ManualPdfUrl).toString())); | 45 | .arg(ServerInfo::platformValue(ServerInfo::ManualPdfUrl, m_platform).toString())); |
46 | ui.labelHtmlManual->setText(tr("<a href='%1'>HTML Manual (opens in browser)</a>") | 46 | ui.labelHtmlManual->setText(tr("<a href='%1'>HTML Manual (opens in browser)</a>") |
47 | .arg(ServerInfo::platformValue(m_platform, ServerInfo::ManualHtmlUrl).toString())); | 47 | .arg(ServerInfo::platformValue(ServerInfo::ManualHtmlUrl, m_platform).toString())); |
48 | } | 48 | } |
49 | else { | 49 | else { |
50 | ui.labelPdfManual->setText(tr("Select a device for a link to the correct manual")); | 50 | ui.labelPdfManual->setText(tr("Select a device for a link to the correct manual")); |
@@ -65,9 +65,9 @@ void ManualWidget::downloadManual(void) | |||
65 | QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) { | 65 | QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) { |
66 | return; | 66 | return; |
67 | } | 67 | } |
68 | QString manual = SystemInfo::value(SystemInfo::CurManual).toString(); | 68 | QString manual = SystemInfo::platformValue(SystemInfo::CurManual).toString(); |
69 | if(manual.isEmpty()) { | 69 | if(manual.isEmpty()) { |
70 | manual = "rockbox-" + SystemInfo::value(SystemInfo::CurBuildserverModel).toString(); | 70 | manual = "rockbox-" + SystemInfo::platformValue(SystemInfo::CurBuildserverModel).toString(); |
71 | } | 71 | } |
72 | 72 | ||
73 | ProgressLoggerGui* logger = new ProgressLoggerGui(this); | 73 | ProgressLoggerGui* logger = new ProgressLoggerGui(this); |
@@ -78,14 +78,14 @@ void ManualWidget::downloadManual(void) | |||
78 | installer->setCache(true); | 78 | installer->setCache(true); |
79 | 79 | ||
80 | if(ui.radioPdf->isChecked()) { | 80 | if(ui.radioPdf->isChecked()) { |
81 | installer->setUrl(ServerInfo::platformValue(m_platform, | 81 | installer->setUrl(ServerInfo::platformValue( |
82 | ServerInfo::ManualPdfUrl).toString()); | 82 | ServerInfo::ManualPdfUrl, m_platform).toString()); |
83 | installer->setLogSection("Manual (PDF)"); | 83 | installer->setLogSection("Manual (PDF)"); |
84 | installer->setTarget("/" + manual + ".pdf"); | 84 | installer->setTarget("/" + manual + ".pdf"); |
85 | } | 85 | } |
86 | else { | 86 | else { |
87 | installer->setUrl(ServerInfo::platformValue(m_platform, | 87 | installer->setUrl(ServerInfo::platformValue( |
88 | ServerInfo::ManualZipUrl).toString()); | 88 | ServerInfo::ManualZipUrl, m_platform).toString()); |
89 | installer->setLogSection("Manual (HTML)"); | 89 | installer->setLogSection("Manual (HTML)"); |
90 | installer->setTarget("/" + manual + "-" + "-html.zip"); | 90 | installer->setTarget("/" + manual + "-" + "-html.zip"); |
91 | } | 91 | } |
diff --git a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp index 9b5bc4d653..5baf774fc3 100644 --- a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp +++ b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp | |||
@@ -69,7 +69,7 @@ void SelectiveInstallWidget::selectedVersionChanged(int index) | |||
69 | if(current == "development") | 69 | if(current == "development") |
70 | ui.selectedDescription->setText(tr("The development version is " | 70 | ui.selectedDescription->setText(tr("The development version is " |
71 | "updated on every code change. Last update was on %1").arg( | 71 | "updated on every code change. Last update was on %1").arg( |
72 | ServerInfo::value(ServerInfo::BleedingDate).toString())); | 72 | ServerInfo::platformValue(ServerInfo::BleedingDate).toString())); |
73 | if(current == "rc") | 73 | if(current == "rc") |
74 | ui.selectedDescription->setText(tr("This will eventually become the " | 74 | ui.selectedDescription->setText(tr("This will eventually become the " |
75 | "next Rockbox version. Install it to help testing.")); | 75 | "next Rockbox version. Install it to help testing.")); |
@@ -81,8 +81,8 @@ void SelectiveInstallWidget::updateVersion(void) | |||
81 | // get some configuration values globally | 81 | // get some configuration values globally |
82 | m_mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); | 82 | m_mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); |
83 | m_target = RbSettings::value(RbSettings::CurrentPlatform).toString(); | 83 | m_target = RbSettings::value(RbSettings::CurrentPlatform).toString(); |
84 | m_blmethod = SystemInfo::platformValue(m_target, | 84 | m_blmethod = SystemInfo::platformValue( |
85 | SystemInfo::CurBootloaderMethod).toString(); | 85 | SystemInfo::CurBootloaderMethod, m_target).toString(); |
86 | 86 | ||
87 | if(m_logger != NULL) { | 87 | if(m_logger != NULL) { |
88 | delete m_logger; | 88 | delete m_logger; |
@@ -91,11 +91,11 @@ void SelectiveInstallWidget::updateVersion(void) | |||
91 | 91 | ||
92 | // re-populate all version items | 92 | // re-populate all version items |
93 | m_versions.clear(); | 93 | m_versions.clear(); |
94 | m_versions.insert("release", ServerInfo::value(ServerInfo::CurReleaseVersion).toString()); | 94 | m_versions.insert("release", ServerInfo::platformValue(ServerInfo::CurReleaseVersion).toString()); |
95 | // Don't populate RC or development selections if target has been retired. | 95 | // Don't populate RC or development selections if target has been retired. |
96 | if (ServerInfo::value(ServerInfo::CurStatus) != tr("Stable (Retired)")) { | 96 | if (ServerInfo::platformValue(ServerInfo::CurStatus) != tr("Stable (Retired)")) { |
97 | m_versions.insert("development", ServerInfo::value(ServerInfo::BleedingRevision).toString()); | 97 | m_versions.insert("development", ServerInfo::platformValue(ServerInfo::BleedingRevision).toString()); |
98 | m_versions.insert("rc", ServerInfo::value(ServerInfo::RelCandidateVersion).toString()); | 98 | m_versions.insert("rc", ServerInfo::platformValue(ServerInfo::RelCandidateVersion).toString()); |
99 | } | 99 | } |
100 | 100 | ||
101 | ui.selectedVersion->clear(); | 101 | ui.selectedVersion->clear(); |
@@ -237,7 +237,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
237 | // create installer | 237 | // create installer |
238 | BootloaderInstallBase *bl = | 238 | BootloaderInstallBase *bl = |
239 | BootloaderInstallHelper::createBootloaderInstaller(this, | 239 | BootloaderInstallHelper::createBootloaderInstaller(this, |
240 | SystemInfo::value(SystemInfo::CurBootloaderMethod).toString()); | 240 | SystemInfo::platformValue(SystemInfo::CurBootloaderMethod).toString()); |
241 | if(bl == NULL) { | 241 | if(bl == NULL) { |
242 | m_logger->addItem(tr("No install method known."), LOGERROR); | 242 | m_logger->addItem(tr("No install method known."), LOGERROR); |
243 | m_logger->setFinished(); | 243 | m_logger->setFinished(); |
@@ -254,7 +254,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
254 | connect(m_logger, SIGNAL(aborted()), bl, SLOT(progressAborted())); | 254 | connect(m_logger, SIGNAL(aborted()), bl, SLOT(progressAborted())); |
255 | 255 | ||
256 | // set bootloader filename. Do this now as installed() needs it. | 256 | // set bootloader filename. Do this now as installed() needs it. |
257 | QStringList blfile = SystemInfo::value(SystemInfo::CurBootloaderFile).toStringList(); | 257 | QStringList blfile = SystemInfo::platformValue(SystemInfo::CurBootloaderFile).toStringList(); |
258 | QStringList blfilepath; | 258 | QStringList blfilepath; |
259 | for(int a = 0; a < blfile.size(); a++) { | 259 | for(int a = 0; a < blfile.size(); a++) { |
260 | blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString() | 260 | blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString() |
@@ -262,7 +262,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
262 | } | 262 | } |
263 | bl->setBlFile(blfilepath); | 263 | bl->setBlFile(blfilepath); |
264 | QUrl url(SystemInfo::value(SystemInfo::BootloaderUrl).toString() | 264 | QUrl url(SystemInfo::value(SystemInfo::BootloaderUrl).toString() |
265 | + SystemInfo::value(SystemInfo::CurBootloaderName).toString()); | 265 | + SystemInfo::platformValue(SystemInfo::CurBootloaderName).toString()); |
266 | bl->setBlUrl(url); | 266 | bl->setBlUrl(url); |
267 | bl->setLogfile(RbSettings::value(RbSettings::Mountpoint).toString() | 267 | bl->setLogfile(RbSettings::value(RbSettings::Mountpoint).toString() |
268 | + "/.rockbox/rbutil.log"); | 268 | + "/.rockbox/rbutil.log"); |
@@ -282,7 +282,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
282 | else if(bl->installed() == BootloaderInstallBase::BootloaderOther | 282 | else if(bl->installed() == BootloaderInstallBase::BootloaderOther |
283 | && bl->capabilities() & BootloaderInstallBase::Backup) | 283 | && bl->capabilities() & BootloaderInstallBase::Backup) |
284 | { | 284 | { |
285 | QString targetFolder = SystemInfo::value(SystemInfo::CurPlatformName).toString() | 285 | QString targetFolder = SystemInfo::platformValue(SystemInfo::CurPlatformName).toString() |
286 | + " Firmware Backup"; | 286 | + " Firmware Backup"; |
287 | // remove invalid character(s) | 287 | // remove invalid character(s) |
288 | targetFolder.remove(QRegExp("[:/]")); | 288 | targetFolder.remove(QRegExp("[:/]")); |
@@ -319,7 +319,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
319 | // open dialog to browse to of file | 319 | // open dialog to browse to of file |
320 | QString offile; | 320 | QString offile; |
321 | QString filter | 321 | QString filter |
322 | = SystemInfo::value(SystemInfo::CurBootloaderFilter).toString(); | 322 | = SystemInfo::platformValue(SystemInfo::CurBootloaderFilter).toString(); |
323 | if(!filter.isEmpty()) { | 323 | if(!filter.isEmpty()) { |
324 | filter = tr("Bootloader files (%1)").arg(filter) + ";;"; | 324 | filter = tr("Bootloader files (%1)").arg(filter) + ";;"; |
325 | } | 325 | } |
@@ -385,12 +385,12 @@ void SelectiveInstallWidget::installRockbox(void) | |||
385 | RbSettings::setValue(RbSettings::Build, selected); | 385 | RbSettings::setValue(RbSettings::Build, selected); |
386 | RbSettings::sync(); | 386 | RbSettings::sync(); |
387 | 387 | ||
388 | if(selected == "release") url = ServerInfo::platformValue(m_target, | 388 | if(selected == "release") url = ServerInfo::platformValue( |
389 | ServerInfo::CurReleaseUrl).toString(); | 389 | ServerInfo::CurReleaseUrl, m_target).toString(); |
390 | else if(selected == "development") url = ServerInfo::platformValue(m_target, | 390 | else if(selected == "development") url = ServerInfo::platformValue( |
391 | ServerInfo::CurDevelUrl).toString(); | 391 | ServerInfo::CurDevelUrl, m_target).toString(); |
392 | else if(selected == "rc") url = ServerInfo::platformValue(m_target, | 392 | else if(selected == "rc") url = ServerInfo::platformValue( |
393 | ServerInfo::RelCandidateUrl).toString(); | 393 | ServerInfo::RelCandidateUrl, m_target).toString(); |
394 | 394 | ||
395 | //! install build | 395 | //! install build |
396 | if(m_zipinstaller != NULL) m_zipinstaller->deleteLater(); | 396 | if(m_zipinstaller != NULL) m_zipinstaller->deleteLater(); |
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index 1c00ef9a07..6f8bfb37af 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp | |||
@@ -390,11 +390,11 @@ void RbUtilQt::updateDevice() | |||
390 | 390 | ||
391 | /* Enable bootloader installation, if possible */ | 391 | /* Enable bootloader installation, if possible */ |
392 | bool bootloaderInstallable = | 392 | bool bootloaderInstallable = |
393 | SystemInfo::value(SystemInfo::CurBootloaderMethod) != "none"; | 393 | SystemInfo::platformValue(SystemInfo::CurBootloaderMethod) != "none"; |
394 | 394 | ||
395 | /* Enable bootloader uninstallation, if possible */ | 395 | /* Enable bootloader uninstallation, if possible */ |
396 | bool bootloaderUninstallable = bootloaderInstallable && | 396 | bool bootloaderUninstallable = bootloaderInstallable && |
397 | SystemInfo::value(SystemInfo::CurBootloaderMethod) != "fwpatcher"; | 397 | SystemInfo::platformValue(SystemInfo::CurBootloaderMethod) != "fwpatcher"; |
398 | ui.labelRemoveBootloader->setEnabled(bootloaderUninstallable); | 398 | ui.labelRemoveBootloader->setEnabled(bootloaderUninstallable); |
399 | ui.buttonRemoveBootloader->setEnabled(bootloaderUninstallable); | 399 | ui.buttonRemoveBootloader->setEnabled(bootloaderUninstallable); |
400 | ui.actionRemove_bootloader->setEnabled(bootloaderUninstallable); | 400 | ui.actionRemove_bootloader->setEnabled(bootloaderUninstallable); |
@@ -405,10 +405,10 @@ void RbUtilQt::updateDevice() | |||
405 | ui.menuA_ctions->setEnabled(configurationValid); | 405 | ui.menuA_ctions->setEnabled(configurationValid); |
406 | 406 | ||
407 | // displayed device info | 407 | // displayed device info |
408 | QString brand = SystemInfo::value(SystemInfo::CurBrand).toString(); | 408 | QString brand = SystemInfo::platformValue(SystemInfo::CurBrand).toString(); |
409 | QString name | 409 | QString name |
410 | = QString("%1 (%2)").arg(SystemInfo::value(SystemInfo::CurName).toString(), | 410 | = QString("%1 (%2)").arg(SystemInfo::platformValue(SystemInfo::CurName).toString(), |
411 | ServerInfo::value(ServerInfo::CurStatus).toString()); | 411 | ServerInfo::platformValue(ServerInfo::CurStatus).toString()); |
412 | ui.labelDevice->setText(QString("<b>%1 %2</b>").arg(brand, name)); | 412 | ui.labelDevice->setText(QString("<b>%1 %2</b>").arg(brand, name)); |
413 | 413 | ||
414 | QString mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); | 414 | QString mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); |
@@ -423,7 +423,7 @@ void RbUtilQt::updateDevice() | |||
423 | } | 423 | } |
424 | 424 | ||
425 | QPixmap pm; | 425 | QPixmap pm; |
426 | QString m = SystemInfo::value(SystemInfo::CurPlayerPicture).toString(); | 426 | QString m = SystemInfo::platformValue(SystemInfo::CurPlayerPicture).toString(); |
427 | pm.load(":/icons/players/" + m + "-small.png"); | 427 | pm.load(":/icons/players/" + m + "-small.png"); |
428 | pm = pm.scaledToHeight(QFontMetrics(QApplication::font()).height() * 3); | 428 | pm = pm.scaledToHeight(QFontMetrics(QApplication::font()).height() * 3); |
429 | ui.labelPlayerPic->setPixmap(pm); | 429 | ui.labelPlayerPic->setPixmap(pm); |
@@ -491,7 +491,7 @@ void RbUtilQt::installVoice() | |||
491 | QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) | 491 | QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) |
492 | return; | 492 | return; |
493 | 493 | ||
494 | QString model = SystemInfo::value(SystemInfo::CurBuildserverModel).toString(); | 494 | QString model = SystemInfo::platformValue(SystemInfo::CurBuildserverModel).toString(); |
495 | // replace placeholder in voice url | 495 | // replace placeholder in voice url |
496 | voiceurl.replace("%MODEL%", model); | 496 | voiceurl.replace("%MODEL%", model); |
497 | voiceurl.replace("%RELVERSION%", relversion); | 497 | voiceurl.replace("%RELVERSION%", relversion); |
@@ -560,14 +560,14 @@ void RbUtilQt::uninstallBootloader(void) | |||
560 | // create installer | 560 | // create installer |
561 | BootloaderInstallBase *bl | 561 | BootloaderInstallBase *bl |
562 | = BootloaderInstallHelper::createBootloaderInstaller(this, | 562 | = BootloaderInstallHelper::createBootloaderInstaller(this, |
563 | SystemInfo::value(SystemInfo::CurBootloaderMethod).toString()); | 563 | SystemInfo::platformValue(SystemInfo::CurBootloaderMethod).toString()); |
564 | 564 | ||
565 | if(bl == NULL) { | 565 | if(bl == NULL) { |
566 | logger->addItem(tr("No uninstall method for this target known."), LOGERROR); | 566 | logger->addItem(tr("No uninstall method for this target known."), LOGERROR); |
567 | logger->setFinished(); | 567 | logger->setFinished(); |
568 | return; | 568 | return; |
569 | } | 569 | } |
570 | QStringList blfile = SystemInfo::value(SystemInfo::CurBootloaderFile).toStringList(); | 570 | QStringList blfile = SystemInfo::platformValue(SystemInfo::CurBootloaderFile).toStringList(); |
571 | QStringList blfilepath; | 571 | QStringList blfilepath; |
572 | for(int a = 0; a < blfile.size(); a++) { | 572 | for(int a = 0; a < blfile.size(); a++) { |
573 | blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString() | 573 | blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString() |
diff --git a/rbutil/rbutilqt/themesinstallwindow.cpp b/rbutil/rbutilqt/themesinstallwindow.cpp index 58f407cf99..1377607438 100644 --- a/rbutil/rbutilqt/themesinstallwindow.cpp +++ b/rbutil/rbutilqt/themesinstallwindow.cpp | |||
@@ -86,7 +86,7 @@ void ThemesInstallWindow::downloadInfo() | |||
86 | 86 | ||
87 | QString infoUrl = SystemInfo::value(SystemInfo::ThemesInfoUrl).toString(); | 87 | QString infoUrl = SystemInfo::value(SystemInfo::ThemesInfoUrl).toString(); |
88 | infoUrl.replace("%TARGET%", | 88 | infoUrl.replace("%TARGET%", |
89 | SystemInfo::value(SystemInfo::CurConfigureModel).toString()); | 89 | SystemInfo::platformValue(SystemInfo::CurConfigureModel).toString()); |
90 | infoUrl.replace("%REVISION%", installInfo.revision()); | 90 | infoUrl.replace("%REVISION%", installInfo.revision()); |
91 | infoUrl.replace("%RELEASE%", installInfo.release()); | 91 | infoUrl.replace("%RELEASE%", installInfo.release()); |
92 | infoUrl.replace("%RBUTILVER%", VERSION); | 92 | infoUrl.replace("%RBUTILVER%", VERSION); |