summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/gui/selectiveinstallwidget.cpp')
-rw-r--r--rbutil/rbutilqt/gui/selectiveinstallwidget.cpp36
1 files changed, 18 insertions, 18 deletions
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();