OLD | NEW |
1 /** | 1 /** |
2 * This class contains all client functionality of the IE plugin | 2 * This class contains all client functionality of the IE plugin |
3 * | 3 * |
4 * Exception errors are tested by calls to ExceptionsTest from: Main ... | 4 * Exception errors are tested by calls to ExceptionsTest from: Main ... |
5 */ | 5 */ |
6 | 6 |
7 #ifndef _PLUGIN_SETTINGS_H_ | 7 #ifndef _PLUGIN_SETTINGS_H_ |
8 #define _PLUGIN_SETTINGS_H_ | 8 #define _PLUGIN_SETTINGS_H_ |
9 | 9 |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 void RefreshTab(); | 194 void RefreshTab(); |
195 | 195 |
196 int GetTabVersion(const CString& key) const; | 196 int GetTabVersion(const CString& key) const; |
197 void IncrementTabVersion(const CString& key); | 197 void IncrementTabVersion(const CString& key); |
198 | 198 |
199 // Settings whitelist | 199 // Settings whitelist |
200 #ifdef SUPPORT_WHITELIST | 200 #ifdef SUPPORT_WHITELIST |
201 | 201 |
202 private: | 202 private: |
203 std::vector<std::string> m_whitelistedDomains; | 203 std::vector<std::wstring> m_whitelistedDomains; |
204 | 204 |
205 void ClearWhitelist(); | 205 void ClearWhitelist(); |
206 bool ReadWhitelist(bool bDebug=true); | 206 bool ReadWhitelist(bool bDebug=true); |
207 | 207 |
208 public: | 208 public: |
209 void AddWhiteListedDomain(const CString& domain); | 209 void AddWhiteListedDomain(const CString& domain); |
210 void RemoveWhiteListedDomain(const CString& domain); | 210 void RemoveWhiteListedDomain(const CString& domain); |
211 int GetWhiteListedDomainCount() const; | 211 int GetWhiteListedDomainCount() const; |
212 std::vector<std::string> GetWhiteListedDomainList(); | 212 std::vector<std::wstring> GetWhiteListedDomainList(); |
213 #endif //SUPPORT_WHITELIST | 213 #endif //SUPPORT_WHITELIST |
214 | 214 |
215 bool RefreshWhitelist(); | 215 bool RefreshWhitelist(); |
216 DWORD GetWindowsBuildNumber(); | 216 DWORD GetWindowsBuildNumber(); |
217 | 217 |
218 void SetSubscription(BSTR language); | 218 void SetSubscription(const std::wstring& url); |
219 void SetSubscription(std::string language); | |
220 void SetDefaultSubscription(); | 219 void SetDefaultSubscription(); |
221 CString GetSubscription(); | 220 CString GetSubscription(); |
222 void RefreshFilterlist(); | 221 void RefreshFilterlist(); |
223 | 222 |
224 std::vector<SubscriptionDescription> m_subscriptions; | 223 std::vector<SubscriptionDescription> m_subscriptions; |
225 }; | 224 }; |
226 | 225 |
227 | 226 |
228 #endif // _PLUGIN_SETTINGS_H_ | 227 #endif // _PLUGIN_SETTINGS_H_ |
OLD | NEW |