summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/rbsettings.h
diff options
context:
space:
mode:
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
97 CurConfigureModel, 97 CurConfigureModel,
98 }; 98 };
99 99
100 //! All Server settings
101 enum ServerSettings {
102 CurReleaseVersion,
103 CurStatus,
104 DailyRevision,
105 DailyDate,
106 BleedingRevision,
107 BleedingDate,
108 };
109
100 //! call this to flush the user Settings 110 //! call this to flush the user Settings
101 static void sync(); 111 static void sync();
102 //! returns the filename of the usersettings file 112 //! returns the filename of the usersettings file
@@ -115,12 +125,18 @@ class RbSettings : public QObject
115 static QVariant value(enum SystemSettings setting); 125 static QVariant value(enum SystemSettings setting);
116 //! get a value from user settings 126 //! get a value from user settings
117 static QVariant value(enum UserSettings setting); 127 static QVariant value(enum UserSettings setting);
128 //! get a value from server settings
129 static QVariant value(enum ServerSettings setting);
118 //! set a user setting value 130 //! set a user setting value
119 static void setValue(enum UserSettings setting , QVariant value); 131 static void setValue(enum UserSettings setting , QVariant value);
132 //! set a server setting value
133 static void setValue(enum ServerSettings setting , QVariant value);
120 //! get a user setting from a subvalue (ie for encoders and tts engines) 134 //! get a user setting from a subvalue (ie for encoders and tts engines)
121 static QVariant subValue(QString sub, enum UserSettings setting); 135 static QVariant subValue(QString sub, enum UserSettings setting);
122 //! set a user setting from a subvalue (ie for encoders and tts engines) 136 //! set a user setting from a subvalue (ie for encoders and tts engines)
123 static void setSubValue(QString sub, enum UserSettings setting, QVariant value); 137 static void setSubValue(QString sub, enum UserSettings setting, QVariant value);
138 //! set a value for a server settings for a named platform.
139 static void setPlatformValue(QString platform, enum ServerSettings setting, QVariant value);
124 //! get a value from system settings for a named platform. 140 //! get a value from system settings for a named platform.
125 static QVariant platformValue(QString platform, enum SystemSettings setting); 141 static QVariant platformValue(QString platform, enum SystemSettings setting);
126 142
@@ -135,6 +151,7 @@ class RbSettings : public QObject
135 //! pointers to our setting objects 151 //! pointers to our setting objects
136 static QSettings *systemSettings; 152 static QSettings *systemSettings;
137 static QSettings *userSettings; 153 static QSettings *userSettings;
154 static QSettings *serverSettings;
138}; 155};
139 156
140#endif 157#endif