summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtSettingsProvider.h')
-rw-r--r--Swift/QtUI/QtSettingsProvider.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSettingsProvider.h b/Swift/QtUI/QtSettingsProvider.h
new file mode 100644
index 0000000..4739f60
--- /dev/null
+++ b/Swift/QtUI/QtSettingsProvider.h
@@ -0,0 +1,24 @@
+#ifndef SWIFT_QtSettingsProvider_H
+#define SWIFT_QtSettingsProvider_H
+
+#include "Swiften/Settings/SettingsProvider.h"
+
+#include <QSettings>
+
+namespace Swift {
+
+class QtSettingsProvider : public SettingsProvider {
+ public:
+ QtSettingsProvider();
+ virtual ~QtSettingsProvider();
+ virtual String getStringSetting(const String &settingPath);
+ virtual void storeString(const String &settingPath, const String &settingValue);
+ private:
+ QSettings settings_;
+};
+
+}
+#endif
+
+
+