summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbsettings.cpp
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-07-07 21:40:44 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-07-07 21:40:44 +0000
commitee3ed8a163823c2ee7f087985b7a36e10806f5f6 (patch)
tree90ddf4bca6021f759cf3f98cacd6e207311a843b /rbutil/rbutilqt/rbsettings.cpp
parente6553f821881ace5f904fb077ae8a1aba7154474 (diff)
downloadrockbox-ee3ed8a163823c2ee7f087985b7a36e10806f5f6.tar.gz
rockbox-ee3ed8a163823c2ee7f087985b7a36e10806f5f6.tar.bz2
rockbox-ee3ed8a163823c2ee7f087985b7a36e10806f5f6.zip
handle new installations (or upgrades) differently from invalid configurations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17983 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbsettings.cpp')
-rw-r--r--rbutil/rbutilqt/rbsettings.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/rbsettings.cpp b/rbutil/rbutilqt/rbsettings.cpp
index 99c23856ab..38ed542ee7 100644
--- a/rbutil/rbutilqt/rbsettings.cpp
+++ b/rbutil/rbutilqt/rbsettings.cpp
@@ -77,6 +77,11 @@ QString RbSettings::userSettingFilename()
return userSettings->fileName();
}
+QString RbSettings::curVersion()
+{
+ return userSettings->value("rbutil_version").toString();
+}
+
bool RbSettings::cacheOffline()
{
return userSettings->value("offline").toBool();
@@ -108,7 +113,6 @@ QString RbSettings::bleedingUrl()
return devices->value("bleeding_url").toString();
}
-
QString RbSettings::lastRelease()
{
return devices->value("last_release").toString();
@@ -327,7 +331,7 @@ bool RbSettings::encoderNarrowband(QString enc)
{
return userSettingsGroupGet(enc,"narrowband",false).toBool();
}
-
+
QStringList RbSettings::allPlatforms()
{
QStringList result;
@@ -481,6 +485,10 @@ int RbSettings::curTargetId()
return deviceSettingCurGet("targetid").toInt();
}
+void RbSettings::setCurVersion(QString version)
+{
+ userSettings->setValue("rbutil_version",version);
+}
void RbSettings::setOfPath(QString path)
{