summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbsettings.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-04-24 20:40:33 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-04-24 20:40:33 +0000
commit7449751cffe45d70c3c43a9b10752711a601b45e (patch)
treea0b154ecaa7991baf1dbf9568058ccc6c1adfc8b /rbutil/rbutilqt/rbsettings.h
parent35f41e666df3641c2b017b20c87870f1166db886 (diff)
downloadrockbox-7449751cffe45d70c3c43a9b10752711a601b45e.tar.gz
rockbox-7449751cffe45d70c3c43a9b10752711a601b45e.tar.bz2
rockbox-7449751cffe45d70c3c43a9b10752711a601b45e.zip
rbutil: rework rbsettings to have less code dublication.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17244 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbsettings.h')
-rw-r--r--rbutil/rbutilqt/rbsettings.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbsettings.h b/rbutil/rbutilqt/rbsettings.h
index 89064aa899..815bf3bc27 100644
--- a/rbutil/rbutilqt/rbsettings.h
+++ b/rbutil/rbutilqt/rbsettings.h
@@ -101,6 +101,7 @@ class RbSettings : public QObject
QString curResolution();
int curTargetId();
+ //! Set Fucntions
void setOfPath(QString path);
void setCachePath(QString path);
void setBuild(QString build);
@@ -130,6 +131,20 @@ class RbSettings : public QObject
void setEncoderNarrowband(QString enc,bool nb);
private:
+
+ //! helper function to get an entry in the current platform section
+ QVariant deviceSettingCurGet(QString entry,QString def="");
+ //! helper function to get an entry out of a group in the userSettings
+ QVariant userSettingsGroupGet(QString group,QString entry,QVariant def="");
+ //! helper function to set an entry in a group in the userSettings
+ void userSettingsGroupSet(QString group,QString entry,QVariant value);
+
+
+ //! private copy constructors to prvent copying
+ RbSettings& operator= (const RbSettings& other) {return *this; }
+ RbSettings(const RbSettings& other) {}
+
+ //! pointers to our setting objects
QSettings *devices;
QSettings *userSettings;