summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/rbsettings.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-08-11 17:02:35 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-08-11 17:02:35 +0000
commit6cea3308d05c21aabe073f77c3d013485b0429a0 (patch)
tree63b6774909837045ff6635e232293c7818e826da /rbutil/rbutilqt/base/rbsettings.h
parent9a5174c8a3a1a2a358be57ecb72fa2740b10cd0d (diff)
downloadrockbox-6cea3308d05c21aabe073f77c3d013485b0429a0.tar.gz
rockbox-6cea3308d05c21aabe073f77c3d013485b0429a0.tar.bz2
rockbox-6cea3308d05c21aabe073f77c3d013485b0429a0.zip
Clean up accessing system setting values for a specific player.
Remove the ugly "save, change and restore platform" accesses and extend the settings class to allow accessing player specific system values. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22254 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/rbsettings.h')
-rw-r--r--rbutil/rbutilqt/base/rbsettings.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/rbsettings.h b/rbutil/rbutilqt/base/rbsettings.h
index 4f2a5c3617..c9aceb4039 100644
--- a/rbutil/rbutilqt/base/rbsettings.h
+++ b/rbutil/rbutilqt/base/rbsettings.h
@@ -114,7 +114,7 @@ class RbSettings : public QObject
static QMap<int, QString> usbIdMap(enum MapType);
//! get a value from system settings
static QVariant value(enum SystemSettings setting);
- //! get a vaulue from user settings
+ //! get a value from user settings
static QVariant value(enum UserSettings setting);
//! set a user setting value
static void setValue(enum UserSettings setting , QVariant value);
@@ -122,6 +122,8 @@ class RbSettings : public QObject
static QVariant subValue(QString sub, enum UserSettings setting);
//! set a user setting from a subvalue (ie for encoders and tts engines)
static void setSubValue(QString sub, enum UserSettings setting, QVariant value);
+ //! get a value from system settings for a named platform.
+ static QVariant platformValue(QString platform, enum SystemSettings setting);
private:
//! you shouldnt call this, its a fully static calls
@@ -137,3 +139,4 @@ class RbSettings : public QObject
};
#endif
+