| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 static CPluginSettings* GetInstance(); | 70 static CPluginSettings* GetInstance(); |
| 71 | 71 |
| 72 bool IsPluginEnabled() const; | 72 bool IsPluginEnabled() const; |
| 73 | 73 |
| 74 std::map<CString, CString> GetFilterLanguageTitleList() const; | 74 std::map<CString, CString> GetFilterLanguageTitleList() const; |
| 75 | 75 |
| 76 void SetWorkingThreadId(); | 76 void SetWorkingThreadId(); |
| 77 void SetWorkingThreadId(DWORD id); | 77 void SetWorkingThreadId(DWORD id); |
| 78 bool IsWorkingThread(DWORD dwThread=0) const; | 78 bool IsWorkingThread(DWORD dwThread=0) const; |
| 79 | 79 |
| 80 DWORD m_WindowsBuildNumber; | |
| 81 | |
| 82 public: | 80 public: |
| 83 | 81 |
| 84 void TogglePluginEnabled(); | 82 void TogglePluginEnabled(); |
| 85 bool GetPluginEnabled() const; | 83 bool GetPluginEnabled() const; |
| 86 | 84 |
| 87 void AddError(const CString& error, const CString& errorCode); | 85 void AddError(const CString& error, const CString& errorCode); |
| 88 | 86 |
| 89 // Settings whitelist | 87 // Settings whitelist |
| 90 private: | 88 private: |
| 91 std::vector<std::wstring> m_whitelistedDomains; | 89 std::vector<std::wstring> m_whitelistedDomains; |
| 92 void ClearWhitelist(); | 90 void ClearWhitelist(); |
| 93 bool ReadWhitelist(bool bDebug=true); | 91 bool ReadWhitelist(bool bDebug=true); |
| 94 | 92 |
| 95 public: | 93 public: |
| 96 void AddWhiteListedDomain(const CString& domain); | 94 void AddWhiteListedDomain(const CString& domain); |
| 97 void RemoveWhiteListedDomain(const CString& domain); | 95 void RemoveWhiteListedDomain(const CString& domain); |
| 98 int GetWhiteListedDomainCount() const; | 96 int GetWhiteListedDomainCount() const; |
| 99 std::vector<std::wstring> GetWhiteListedDomainList(); | 97 std::vector<std::wstring> GetWhiteListedDomainList(); |
| 100 | 98 |
| 101 bool RefreshWhitelist(); | 99 bool RefreshWhitelist(); |
| 102 DWORD GetWindowsBuildNumber(); | |
| 103 | 100 |
| 104 void SetSubscription(const std::wstring& url); | 101 void SetSubscription(const std::wstring& url); |
| 105 void SetDefaultSubscription(); | 102 void SetDefaultSubscription(); |
| 106 CString GetSubscription(); | 103 CString GetSubscription(); |
| 107 CString GetAppLocale(); | 104 CString GetAppLocale(); |
| 108 CString GetDocumentationLink(); | 105 CString GetDocumentationLink(); |
| 109 }; | 106 }; |
| 110 | 107 |
| 111 std::wstring GetDataPath(const std::wstring& filename=L""); | 108 std::wstring GetDataPath(const std::wstring& filename=L""); |
| 112 | 109 |
| 113 #endif // _PLUGIN_SETTINGS_H_ | 110 #endif // _PLUGIN_SETTINGS_H_ |
| OLD | NEW |