summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/rbsettings.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2010-01-20 22:18:36 +0000
committerDominik Wenger <domonoky@googlemail.com>2010-01-20 22:18:36 +0000
commit8363619e666b37cf8e33f71ea1bfe44676b401e3 (patch)
tree2090e3f3c2bfbd5908c18b453c6d228de3d5c42e /rbutil/rbutilqt/base/rbsettings.h
parentb5d16e79e191af7c4cb34be685770166e8dfcfa6 (diff)
downloadrockbox-8363619e666b37cf8e33f71ea1bfe44676b401e3.tar.gz
rockbox-8363619e666b37cf8e33f71ea1bfe44676b401e3.tar.bz2
rockbox-8363619e666b37cf8e33f71ea1bfe44676b401e3.zip
rbutil: store the info from the server centrally in RbSetttings. Dont download build-info multiple times. Rename install.cpp
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24301 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/rbsettings.h')
-rw-r--r--rbutil/rbutilqt/base/rbsettings.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/rbsettings.h b/rbutil/rbutilqt/base/rbsettings.h
index b3f0430208..5e128e602d 100644
--- a/rbutil/rbutilqt/base/rbsettings.h
+++ b/rbutil/rbutilqt/base/rbsettings.h
@@ -97,6 +97,16 @@ class RbSettings : public QObject
CurConfigureModel,
};
+ //! All Server settings
+ enum ServerSettings {
+ CurReleaseVersion,
+ CurStatus,
+ DailyRevision,
+ DailyDate,
+ BleedingRevision,
+ BleedingDate,
+ };
+
//! call this to flush the user Settings
static void sync();
//! returns the filename of the usersettings file
@@ -115,12 +125,18 @@ class RbSettings : public QObject
static QVariant value(enum SystemSettings setting);
//! get a value from user settings
static QVariant value(enum UserSettings setting);
+ //! get a value from server settings
+ static QVariant value(enum ServerSettings setting);
//! set a user setting value
static void setValue(enum UserSettings setting , QVariant value);
+ //! set a server setting value
+ static void setValue(enum ServerSettings setting , QVariant value);
//! get a user setting from a subvalue (ie for encoders and tts engines)
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);
+ //! set a value for a server settings for a named platform.
+ static void setPlatformValue(QString platform, enum ServerSettings setting, QVariant value);
//! get a value from system settings for a named platform.
static QVariant platformValue(QString platform, enum SystemSettings setting);
@@ -135,6 +151,7 @@ class RbSettings : public QObject
//! pointers to our setting objects
static QSettings *systemSettings;
static QSettings *userSettings;
+ static QSettings *serverSettings;
};
#endif