path: root/rbutil/rbutilqt/base/rbsettings.h
diff options
authorDominik Riebeling <>2009-08-11 17:02:35 +0000
committerDominik Riebeling <>2009-08-11 17:02:35 +0000
commit6cea3308d05c21aabe073f77c3d013485b0429a0 (patch)
tree63b6774909837045ff6635e232293c7818e826da /rbutil/rbutilqt/base/rbsettings.h
parent9a5174c8a3a1a2a358be57ecb72fa2740b10cd0d (diff)
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:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/rbsettings.h')
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);
//! you shouldnt call this, its a fully static calls
@@ -137,3 +139,4 @@ class RbSettings : public QObject