summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/ProfileSettingsProvider.h')
-rw-r--r--Swift/Controllers/ProfileSettingsProvider.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Swift/Controllers/ProfileSettingsProvider.h b/Swift/Controllers/ProfileSettingsProvider.h
index 8bbc635..02e1e81 100644
--- a/Swift/Controllers/ProfileSettingsProvider.h
+++ b/Swift/Controllers/ProfileSettingsProvider.h
@@ -1,27 +1,28 @@
1/* 1/*
2 * Copyright (c) 2010-2012 Isode Limited. 2 * Copyright (c) 2010-2015 Isode Limited.
3 * All rights reserved. 3 * All rights reserved.
4 * See the COPYING file for more information. 4 * See the COPYING file for more information.
5 */ 5 */
6 6
7#pragma once 7#pragma once
8 8
9#include <Swift/Controllers/Settings/SettingsProvider.h>
10#include <Swiften/Base/foreach.h> 9#include <Swiften/Base/foreach.h>
11 10
11#include <Swift/Controllers/Settings/SettingsProvider.h>
12
12namespace Swift { 13namespace Swift {
13 14
14class ProfileSettingsProvider { 15class ProfileSettingsProvider {
15 public: 16 public:
16 ProfileSettingsProvider(const std::string& profile, SettingsProvider* provider); 17 ProfileSettingsProvider(const std::string& profile, SettingsProvider* provider);
17 virtual ~ProfileSettingsProvider(); 18 virtual ~ProfileSettingsProvider();
18 virtual std::string getStringSetting(const std::string &settingPath); 19 virtual std::string getStringSetting(const std::string &settingPath);
19 virtual void storeString(const std::string &settingPath, const std::string &settingValue); 20 virtual void storeString(const std::string &settingPath, const std::string &settingValue);
20 virtual int getIntSetting(const std::string& settingPath, int defaultValue); 21 virtual int getIntSetting(const std::string& settingPath, int defaultValue);
21 virtual void storeInt(const std::string& settingPath, int settingValue); 22 virtual void storeInt(const std::string& settingPath, int settingValue);
22 /** See @SettingsProvider::getIsSettingFinal for discussion of what this means.*/ 23 /** See \ref SettingsProvider::getIsSettingFinal for discussion of what this means.*/
23 virtual bool getIsSettingFinal(const std::string& settingPath); 24 virtual bool getIsSettingFinal(const std::string& settingPath);
24 25
25 private: 26 private:
26 std::string profileSettingPath(const std::string &settingPath); 27 std::string profileSettingPath(const std::string &settingPath);
27 SettingsProvider* provider_; 28 SettingsProvider* provider_;