LEFT | RIGHT |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 public: | 62 public: |
63 ~CPluginSettings(); | 63 ~CPluginSettings(); |
64 | 64 |
65 static CPluginSettings* s_instance; | 65 static CPluginSettings* s_instance; |
66 | 66 |
67 static CPluginSettings* GetInstance(); | 67 static CPluginSettings* GetInstance(); |
68 | 68 |
69 bool IsPluginEnabled() const; | 69 bool IsPluginEnabled() const; |
70 | 70 |
71 std::map<CString, CString> GetFilterLanguageTitleList() const; | 71 std::map<std::wstring, std::wstring> GetFilterLanguageTitleList() const; |
72 | |
73 DWORD m_WindowsBuildNumber; | |
74 | 72 |
75 public: | 73 public: |
76 | 74 |
77 void TogglePluginEnabled(); | 75 void TogglePluginEnabled(); |
78 bool GetPluginEnabled() const; | 76 bool GetPluginEnabled() const; |
79 | 77 |
80 // Settings whitelist | 78 // Settings whitelist |
81 private: | 79 private: |
82 std::vector<std::wstring> m_whitelistedDomains; | 80 std::vector<std::wstring> m_whitelistedDomains; |
83 void ClearWhitelist(); | 81 void ClearWhitelist(); |
84 bool ReadWhitelist(bool bDebug=true); | 82 bool ReadWhitelist(bool bDebug=true); |
85 | 83 |
86 public: | 84 public: |
87 void AddWhiteListedDomain(const CString& domain); | 85 void AddWhiteListedDomain(const std::wstring& domain); |
88 void RemoveWhiteListedDomain(const CString& domain); | 86 void RemoveWhiteListedDomain(const std::wstring& domain); |
89 int GetWhiteListedDomainCount() const; | 87 int GetWhiteListedDomainCount() const; |
90 std::vector<std::wstring> GetWhiteListedDomainList(); | 88 std::vector<std::wstring> GetWhiteListedDomainList(); |
91 | 89 |
92 bool RefreshWhitelist(); | 90 bool RefreshWhitelist(); |
93 DWORD GetWindowsBuildNumber(); | |
94 | 91 |
95 void SetSubscription(const std::wstring& url); | 92 void SetSubscription(const std::wstring& url); |
96 void SetDefaultSubscription(); | 93 std::wstring GetSubscription(); |
97 CString GetSubscription(); | |
98 CString GetAppLocale(); | |
99 CString GetDocumentationLink(); | |
100 }; | 94 }; |
101 | 95 |
102 #endif // _PLUGIN_SETTINGS_H_ | 96 #endif // _PLUGIN_SETTINGS_H_ |
LEFT | RIGHT |