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

Side by Side Diff: libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java

Issue 29361445: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: added retaining in asynchronous mode Created Nov. 25, 2016, 7:08 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
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/>.
16 */
17
18 package org.adblockplus.libadblockplus.android.settings;
19
20 import org.adblockplus.libadblockplus.android.Subscription;
21
22 import java.io.Serializable;
23 import java.util.List;
24
25 /**
26 * Adblock settings
27 */
28 public class AdblockSettings implements Serializable
29 {
30 private transient boolean adblockEnabled;
31
32 public boolean isAdblockEnabled()
33 {
34 return adblockEnabled;
35 }
36
37 public void setAdblockEnabled(boolean adblockEnabled)
38 {
39 this.adblockEnabled = adblockEnabled;
40 }
41
42 private transient Boolean acceptableAdsEnabled;
43
44 public boolean isAcceptableAdsEnabled()
45 {
46 return acceptableAdsEnabled;
47 }
48
49 public void setAcceptableAdsEnabled(boolean acceptableAdsEnabled)
50 {
51 this.acceptableAdsEnabled = acceptableAdsEnabled;
52 }
53
54 private List<Subscription> subscriptions;
55
56 public List<Subscription> getSubscriptions()
57 {
58 return subscriptions;
59 }
60
61 public void setSubscriptions(List<Subscription> subscriptions)
62 {
63 this.subscriptions = subscriptions;
64 }
65
66 private List<String> whitelistedDomains;
67
68 public List<String> getWhitelistedDomains()
69 {
70 return whitelistedDomains;
71 }
72
73 public void setWhitelistedDomains(List<String> whitelistedDomains)
74 {
75 this.whitelistedDomains = whitelistedDomains;
76 }
77
78 @Override
79 public String toString()
80 {
81 return "AdblockSettings{" +
82 "adblockEnabled=" + adblockEnabled +
83 ", acceptableAdsEnabled=" + acceptableAdsEnabled +
84 ", subscriptions:" + (subscriptions != null ? subscriptions.size() : 0) +
85 ", whitelistedDomains:" + (whitelistedDomains != null ? whitelistedDomains .size() : 0) +
86 '}';
87 }
88 }
OLDNEW

Powered by Google App Engine
This is Rietveld