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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 public List<Subscription> getListedSubscriptions() | 64 public List<Subscription> getListedSubscriptions() |
65 { | 65 { |
66 return getListedSubscriptions(this.ptr); | 66 return getListedSubscriptions(this.ptr); |
67 } | 67 } |
68 | 68 |
69 public List<Subscription> fetchAvailableSubscriptions() | 69 public List<Subscription> fetchAvailableSubscriptions() |
70 { | 70 { |
71 return fetchAvailableSubscriptions(this.ptr); | 71 return fetchAvailableSubscriptions(this.ptr); |
72 } | 72 } |
73 | 73 |
74 public void removeUpdateAvailableCallback() | |
75 { | |
76 removeUpdateAvailableCallback(this.ptr); | |
77 } | |
78 | |
79 public void setUpdateAvailableCallback(final UpdateAvailableCallback callback) | |
80 { | |
81 setUpdateAvailableCallback(this.ptr, callback.ptr); | |
82 } | |
83 | |
84 public void removeFilterChangeCallback() | 74 public void removeFilterChangeCallback() |
85 { | 75 { |
86 removeFilterChangeCallback(this.ptr); | 76 removeFilterChangeCallback(this.ptr); |
87 } | 77 } |
88 | 78 |
89 public void setFilterChangeCallback(final FilterChangeCallback callback) | 79 public void setFilterChangeCallback(final FilterChangeCallback callback) |
90 { | 80 { |
91 setFilterChangeCallback(this.ptr, callback.ptr); | 81 setFilterChangeCallback(this.ptr, callback.ptr); |
92 } | 82 } |
93 | 83 |
94 public void forceUpdateCheck() | |
95 { | |
96 forceUpdateCheck(this.ptr, 0); | |
97 } | |
98 | |
99 public void forceUpdateCheck(final UpdateCheckDoneCallback callback) | |
100 { | |
101 forceUpdateCheck(this.ptr, callback != null ? callback.ptr : 0); | |
102 } | |
103 | |
104 public List<String> getElementHidingSelectors(final String domain) | 84 public List<String> getElementHidingSelectors(final String domain) |
105 { | 85 { |
106 return getElementHidingSelectors(this.ptr, domain); | 86 return getElementHidingSelectors(this.ptr, domain); |
107 } | 87 } |
108 | 88 |
109 public void showNextNotification(final String url) | 89 public void showNextNotification(final String url) |
110 { | 90 { |
111 showNextNotification(this.ptr, url); | 91 showNextNotification(this.ptr, url); |
112 } | 92 } |
113 | 93 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 private final static native Filter getFilter(long ptr, String text); | 191 private final static native Filter getFilter(long ptr, String text); |
212 | 192 |
213 private final static native List<Filter> getListedFilters(long ptr); | 193 private final static native List<Filter> getListedFilters(long ptr); |
214 | 194 |
215 private final static native Subscription getSubscription(long ptr, String url)
; | 195 private final static native Subscription getSubscription(long ptr, String url)
; |
216 | 196 |
217 private final static native List<Subscription> getListedSubscriptions(long ptr
); | 197 private final static native List<Subscription> getListedSubscriptions(long ptr
); |
218 | 198 |
219 private final static native List<Subscription> fetchAvailableSubscriptions(lon
g ptr); | 199 private final static native List<Subscription> fetchAvailableSubscriptions(lon
g ptr); |
220 | 200 |
221 private final static native void removeUpdateAvailableCallback(long ptr); | |
222 | |
223 private final static native void setUpdateAvailableCallback(long ptr, long fil
terPtr); | |
224 | |
225 private final static native void removeFilterChangeCallback(long ptr); | 201 private final static native void removeFilterChangeCallback(long ptr); |
226 | 202 |
227 private final static native void setFilterChangeCallback(long ptr, long filter
Ptr); | 203 private final static native void setFilterChangeCallback(long ptr, long filter
Ptr); |
228 | 204 |
229 private final static native void forceUpdateCheck(long ptr, long updatePtr); | |
230 | |
231 private final static native List<String> getElementHidingSelectors(long ptr, S
tring domain); | 205 private final static native List<String> getElementHidingSelectors(long ptr, S
tring domain); |
232 | 206 |
233 private final static native void showNextNotification(long ptr, String url); | 207 private final static native void showNextNotification(long ptr, String url); |
234 | 208 |
235 private final static native void setShowNotificationCallback(long ptr, long ca
llbackPtr); | 209 private final static native void setShowNotificationCallback(long ptr, long ca
llbackPtr); |
236 | 210 |
237 private final static native void removeShowNotificationCallback(long ptr); | 211 private final static native void removeShowNotificationCallback(long ptr); |
238 | 212 |
239 private final static native JsValue getPref(long ptr, String pref); | 213 private final static native JsValue getPref(long ptr, String pref); |
240 | 214 |
(...skipping 16 matching lines...) Expand all Loading... |
257 private final static native void setAcceptableAdsEnabled(long ptr, boolean ena
bled); | 231 private final static native void setAcceptableAdsEnabled(long ptr, boolean ena
bled); |
258 | 232 |
259 private final static native boolean isAcceptableAdsEnabled(long ptr); | 233 private final static native boolean isAcceptableAdsEnabled(long ptr); |
260 | 234 |
261 private final static native String getAcceptableAdsSubscriptionURL(long ptr); | 235 private final static native String getAcceptableAdsSubscriptionURL(long ptr); |
262 | 236 |
263 private final static native void updateFiltersAsync(long ptr, String subscript
ionUrl); | 237 private final static native void updateFiltersAsync(long ptr, String subscript
ionUrl); |
264 | 238 |
265 private final static native long getNativePtr(long ptr); | 239 private final static native long getNativePtr(long ptr); |
266 } | 240 } |
OLD | NEW |