| OLD | NEW |
| 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-2015 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 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 void AddError(const CString& error, const CString& errorCode); | 87 void AddError(const CString& error, const CString& errorCode); |
| 88 | 88 |
| 89 // Settings whitelist | 89 // Settings whitelist |
| 90 private: | 90 private: |
| 91 std::vector<std::wstring> m_whitelistedDomains; | 91 std::vector<std::wstring> m_whitelistedDomains; |
| 92 void ClearWhitelist(); | 92 void ClearWhitelist(); |
| 93 bool ReadWhitelist(bool bDebug=true); | 93 bool ReadWhitelist(bool bDebug=true); |
| 94 | 94 |
| 95 public: | 95 public: |
| 96 void AddWhiteListedDomain(const CString& domain); | 96 void AddWhiteListedDomain(const std::wstring& url); |
| 97 void RemoveWhiteListedDomain(const CString& domain); | 97 void RemoveWhiteListedDomain(const std::wstring& url); |
| 98 int GetWhiteListedDomainCount() const; | 98 int GetWhiteListedDomainCount() const; |
| 99 std::vector<std::wstring> GetWhiteListedDomainList(); | 99 std::vector<std::wstring> GetWhiteListedDomainList(); |
| 100 | 100 |
| 101 bool RefreshWhitelist(); | 101 bool RefreshWhitelist(); |
| 102 DWORD GetWindowsBuildNumber(); | 102 DWORD GetWindowsBuildNumber(); |
| 103 | 103 |
| 104 void SetSubscription(const std::wstring& url); | 104 void SetSubscription(const std::wstring& url); |
| 105 void SetDefaultSubscription(); | 105 void SetDefaultSubscription(); |
| 106 CString GetSubscription(); | 106 CString GetSubscription(); |
| 107 CString GetAppLocale(); | 107 CString GetAppLocale(); |
| 108 CString GetDocumentationLink(); | 108 CString GetDocumentationLink(); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 std::wstring GetDataPath(const std::wstring& filename=L""); | 111 std::wstring GetDataPath(const std::wstring& filename=L""); |
| 112 | 112 |
| 113 #endif // _PLUGIN_SETTINGS_H_ | 113 #endif // _PLUGIN_SETTINGS_H_ |
| OLD | NEW |