Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: src/plugin/PluginSettings.h

Issue 29323611: Issue #1234, #2058 - Rewrite log facility, improving thread implementation
Left Patch Set: Created Aug. 19, 2015, 5:42 p.m.
Right Patch Set: rebase only Created July 27, 2016, 9:11 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/PluginMutex.cpp ('k') | src/plugin/PluginSettings.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld