| 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-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 | 
| 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  * | 
| 14  * You should have received a copy of the GNU General Public License | 14  * You should have received a copy of the GNU General Public License | 
| 15  * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 15  * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 
| 16  */ | 16  */ | 
| 17 | 17 | 
| 18 #ifndef _ADBLOCK_PLUS_CLIENT_H_ | 18 #ifndef _ADBLOCK_PLUS_CLIENT_H_ | 
| 19 #define _ADBLOCK_PLUS_CLIENT_H_ | 19 #define _ADBLOCK_PLUS_CLIENT_H_ | 
| 20 | 20 | 
| 21 #include <MsHTML.h> | 21 #include <MsHTML.h> | 
| 22 |  | 
| 23 #include "PluginClientBase.h" |  | 
| 24 #include "../shared/Communication.h" | 22 #include "../shared/Communication.h" | 
| 25 #include "../shared/CriticalSection.h" | 23 #include "../shared/CriticalSection.h" | 
| 26 #include <AdblockPlus/FilterEngine.h> | 24 #include <AdblockPlus/FilterEngine.h> | 
| 27 |  | 
| 28 | 25 | 
| 29 class CPluginFilter; | 26 class CPluginFilter; | 
| 30 | 27 | 
| 31 struct SubscriptionDescription | 28 struct SubscriptionDescription | 
| 32 { | 29 { | 
| 33   std::wstring url; | 30   std::wstring url; | 
| 34   std::wstring title; | 31   std::wstring title; | 
| 35   std::wstring specialization; | 32   std::wstring specialization; | 
| 36   bool listed; | 33   bool listed; | 
| 37 }; | 34 }; | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 89   void RemoveFilter(const std::wstring& text); | 86   void RemoveFilter(const std::wstring& text); | 
| 90   void RemoveFilter(const std::string& text); | 87   void RemoveFilter(const std::string& text); | 
| 91   void SetPref(const std::wstring& name, const std::wstring& value); | 88   void SetPref(const std::wstring& name, const std::wstring& value); | 
| 92   void SetPref(const std::wstring& name, const int64_t& value); | 89   void SetPref(const std::wstring& name, const int64_t& value); | 
| 93   void SetPref(const std::wstring& name, bool value); | 90   void SetPref(const std::wstring& name, bool value); | 
| 94   std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValu
     e = L""); | 91   std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValu
     e = L""); | 
| 95   std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue); | 92   std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue); | 
| 96   bool GetPref(const std::wstring& name, bool defaultValue = false); | 93   bool GetPref(const std::wstring& name, bool defaultValue = false); | 
| 97   int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0); | 94   int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0); | 
| 98   void CheckForUpdates(HWND callbackWindow); | 95   void CheckForUpdates(HWND callbackWindow); | 
| 99   std::wstring GetAppLocale(); |  | 
| 100   std::wstring GetDocumentationLink(); | 96   std::wstring GetDocumentationLink(); | 
| 101   bool TogglePluginEnabled(); | 97   bool TogglePluginEnabled(); | 
| 102   std::wstring GetHostFromUrl(const std::wstring& url); | 98   std::wstring GetHostFromUrl(const std::wstring& url); | 
| 103   int CompareVersions(const std::wstring& v1, const std::wstring& v2); | 99   int CompareVersions(const std::wstring& v1, const std::wstring& v2); | 
| 104 | 100 | 
| 105   bool IsFirstRun(); | 101   bool IsFirstRun(); | 
| 106 }; | 102 }; | 
| 107 | 103 | 
|  | 104 typedef CAdblockPlusClient CPluginClient; | 
|  | 105 | 
| 108 #endif // _ADBLOCK_PLUS_CLIENT_H_ | 106 #endif // _ADBLOCK_PLUS_CLIENT_H_ | 
| LEFT | RIGHT | 
|---|