16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.WebBrowser.AdBlock.AdBlockManager</h1> |
23 <h1>eric6.WebBrowser.AdBlock.AdBlockManager</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing the AdBlock manager. |
26 Module implementing the AdBlock manager. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
|
34 |
31 <table> |
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#AdBlockManager">AdBlockManager</a></td> |
38 <td><a href="#AdBlockManager">AdBlockManager</a></td> |
34 <td>Class implementing the AdBlock manager.</td> |
39 <td>Class implementing the AdBlock manager.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
|
43 |
38 <table> |
44 <table> |
39 <tr><td>None</td></tr> |
45 <tr><td>None</td></tr> |
40 </table> |
46 </table> |
41 <hr /><hr /> |
47 <hr /> |
|
48 <hr /> |
42 <a NAME="AdBlockManager" ID="AdBlockManager"></a> |
49 <a NAME="AdBlockManager" ID="AdBlockManager"></a> |
43 <h2>AdBlockManager</h2> |
50 <h2>AdBlockManager</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing the AdBlock manager. |
53 Class implementing the AdBlock manager. |
46 </p><h3>Signals</h3> |
54 </p> |
47 <dl> |
55 <h3>Signals</h3> |
|
56 <dl> |
|
57 |
48 <dt>enabledChanged(enabled)</dt> |
58 <dt>enabledChanged(enabled)</dt> |
49 <dd> |
59 <dd> |
50 emitted to indicate a change of the |
60 emitted to indicate a change of the |
51 enabled state |
61 enabled state |
52 </dd><dt>requiredSubscriptionLoaded(subscription)</dt> |
62 </dd> |
|
63 <dt>requiredSubscriptionLoaded(subscription)</dt> |
53 <dd> |
64 <dd> |
54 emitted to indicate |
65 emitted to indicate |
55 loading of a required subscription is finished (AdBlockSubscription) |
66 loading of a required subscription is finished (AdBlockSubscription) |
56 </dd><dt>rulesChanged()</dt> |
67 </dd> |
|
68 <dt>rulesChanged()</dt> |
57 <dd> |
69 <dd> |
58 emitted after some rule has changed |
70 emitted after some rule has changed |
59 </dd> |
71 </dd> |
60 </dl> |
72 </dl> |
61 <h3>Derived from</h3> |
73 <h3>Derived from</h3> |
62 QObject |
74 QObject |
63 <h3>Class Attributes</h3> |
75 <h3>Class Attributes</h3> |
|
76 |
64 <table> |
77 <table> |
65 <tr><td>None</td></tr> |
78 <tr><td>None</td></tr> |
66 </table> |
79 </table> |
67 <h3>Class Methods</h3> |
80 <h3>Class Methods</h3> |
|
81 |
68 <table> |
82 <table> |
69 <tr><td>None</td></tr> |
83 <tr><td>None</td></tr> |
70 </table> |
84 </table> |
71 <h3>Methods</h3> |
85 <h3>Methods</h3> |
|
86 |
72 <table> |
87 <table> |
|
88 |
73 <tr> |
89 <tr> |
74 <td><a href="#AdBlockManager.__init__">AdBlockManager</a></td> |
90 <td><a href="#AdBlockManager.__init__">AdBlockManager</a></td> |
75 <td>Constructor</td> |
91 <td>Constructor</td> |
76 </tr><tr> |
92 </tr> |
|
93 <tr> |
77 <td><a href="#AdBlockManager.__canBeBlocked">__canBeBlocked</a></td> |
94 <td><a href="#AdBlockManager.__canBeBlocked">__canBeBlocked</a></td> |
78 <td>Private method to check, if the given URL could be blocked (i.e.</td> |
95 <td>Private method to check, if the given URL could be blocked (i.e.</td> |
79 </tr><tr> |
96 </tr> |
|
97 <tr> |
80 <td><a href="#AdBlockManager.__customSubscriptionLocation">__customSubscriptionLocation</a></td> |
98 <td><a href="#AdBlockManager.__customSubscriptionLocation">__customSubscriptionLocation</a></td> |
81 <td>Private method to generate the path for custom subscriptions.</td> |
99 <td>Private method to generate the path for custom subscriptions.</td> |
82 </tr><tr> |
100 </tr> |
|
101 <tr> |
83 <td><a href="#AdBlockManager.__customSubscriptionUrl">__customSubscriptionUrl</a></td> |
102 <td><a href="#AdBlockManager.__customSubscriptionUrl">__customSubscriptionUrl</a></td> |
84 <td>Private method to generate the URL for custom subscriptions.</td> |
103 <td>Private method to generate the URL for custom subscriptions.</td> |
85 </tr><tr> |
104 </tr> |
|
105 <tr> |
86 <td><a href="#AdBlockManager.__loadSubscriptions">__loadSubscriptions</a></td> |
106 <td><a href="#AdBlockManager.__loadSubscriptions">__loadSubscriptions</a></td> |
87 <td>Private method to load the set of subscriptions.</td> |
107 <td>Private method to load the set of subscriptions.</td> |
88 </tr><tr> |
108 </tr> |
|
109 <tr> |
89 <td><a href="#AdBlockManager.__rulesChanged">__rulesChanged</a></td> |
110 <td><a href="#AdBlockManager.__rulesChanged">__rulesChanged</a></td> |
90 <td>Private slot handling a change of the AdBlock rules.</td> |
111 <td>Private slot handling a change of the AdBlock rules.</td> |
91 </tr><tr> |
112 </tr> |
|
113 <tr> |
92 <td><a href="#AdBlockManager.__updateMatcher">__updateMatcher</a></td> |
114 <td><a href="#AdBlockManager.__updateMatcher">__updateMatcher</a></td> |
93 <td>Private slot to update the adblock matcher.</td> |
115 <td>Private slot to update the adblock matcher.</td> |
94 </tr><tr> |
116 </tr> |
|
117 <tr> |
95 <td><a href="#AdBlockManager.addException">addException</a></td> |
118 <td><a href="#AdBlockManager.addException">addException</a></td> |
96 <td>Public method to add an exception.</td> |
119 <td>Public method to add an exception.</td> |
97 </tr><tr> |
120 </tr> |
|
121 <tr> |
98 <td><a href="#AdBlockManager.addSubscription">addSubscription</a></td> |
122 <td><a href="#AdBlockManager.addSubscription">addSubscription</a></td> |
99 <td>Public method to add an AdBlock subscription.</td> |
123 <td>Public method to add an AdBlock subscription.</td> |
100 </tr><tr> |
124 </tr> |
|
125 <tr> |
101 <td><a href="#AdBlockManager.addSubscriptionFromUrl">addSubscriptionFromUrl</a></td> |
126 <td><a href="#AdBlockManager.addSubscriptionFromUrl">addSubscriptionFromUrl</a></td> |
102 <td>Public method to ad an AdBlock subscription given the abp URL.</td> |
127 <td>Public method to ad an AdBlock subscription given the abp URL.</td> |
103 </tr><tr> |
128 </tr> |
|
129 <tr> |
104 <td><a href="#AdBlockManager.block">block</a></td> |
130 <td><a href="#AdBlockManager.block">block</a></td> |
105 <td>Public method to check, if a request should be blocked.</td> |
131 <td>Public method to check, if a request should be blocked.</td> |
106 </tr><tr> |
132 </tr> |
|
133 <tr> |
107 <td><a href="#AdBlockManager.canRunOnScheme">canRunOnScheme</a></td> |
134 <td><a href="#AdBlockManager.canRunOnScheme">canRunOnScheme</a></td> |
108 <td>Public method to check, if AdBlock can be performed on the scheme.</td> |
135 <td>Public method to check, if AdBlock can be performed on the scheme.</td> |
109 </tr><tr> |
136 </tr> |
|
137 <tr> |
110 <td><a href="#AdBlockManager.close">close</a></td> |
138 <td><a href="#AdBlockManager.close">close</a></td> |
111 <td>Public method to close the open search engines manager.</td> |
139 <td>Public method to close the open search engines manager.</td> |
112 </tr><tr> |
140 </tr> |
|
141 <tr> |
113 <td><a href="#AdBlockManager.customRules">customRules</a></td> |
142 <td><a href="#AdBlockManager.customRules">customRules</a></td> |
114 <td>Public method to get a subscription for custom rules.</td> |
143 <td>Public method to get a subscription for custom rules.</td> |
115 </tr><tr> |
144 </tr> |
|
145 <tr> |
116 <td><a href="#AdBlockManager.elementHidingRules">elementHidingRules</a></td> |
146 <td><a href="#AdBlockManager.elementHidingRules">elementHidingRules</a></td> |
117 <td>Public method to get the element hiding rules.</td> |
147 <td>Public method to get the element hiding rules.</td> |
118 </tr><tr> |
148 </tr> |
|
149 <tr> |
119 <td><a href="#AdBlockManager.elementHidingRulesForDomain">elementHidingRulesForDomain</a></td> |
150 <td><a href="#AdBlockManager.elementHidingRulesForDomain">elementHidingRulesForDomain</a></td> |
120 <td>Public method to get the element hiding rules for a domain.</td> |
151 <td>Public method to get the element hiding rules for a domain.</td> |
121 </tr><tr> |
152 </tr> |
|
153 <tr> |
122 <td><a href="#AdBlockManager.exceptions">exceptions</a></td> |
154 <td><a href="#AdBlockManager.exceptions">exceptions</a></td> |
123 <td>Public method to get a list of excepted hosts.</td> |
155 <td>Public method to get a list of excepted hosts.</td> |
124 </tr><tr> |
156 </tr> |
|
157 <tr> |
125 <td><a href="#AdBlockManager.getDefaultSubscriptionUrl">getDefaultSubscriptionUrl</a></td> |
158 <td><a href="#AdBlockManager.getDefaultSubscriptionUrl">getDefaultSubscriptionUrl</a></td> |
126 <td>Public method to get the default subscription URL.</td> |
159 <td>Public method to get the default subscription URL.</td> |
127 </tr><tr> |
160 </tr> |
|
161 <tr> |
128 <td><a href="#AdBlockManager.getRequiresSubscriptions">getRequiresSubscriptions</a></td> |
162 <td><a href="#AdBlockManager.getRequiresSubscriptions">getRequiresSubscriptions</a></td> |
129 <td>Public method to get a list of subscriptions, that require the given one.</td> |
163 <td>Public method to get a list of subscriptions, that require the given one.</td> |
130 </tr><tr> |
164 </tr> |
|
165 <tr> |
131 <td><a href="#AdBlockManager.isEnabled">isEnabled</a></td> |
166 <td><a href="#AdBlockManager.isEnabled">isEnabled</a></td> |
132 <td>Public method to check, if blocking ads is enabled.</td> |
167 <td>Public method to check, if blocking ads is enabled.</td> |
133 </tr><tr> |
168 </tr> |
|
169 <tr> |
134 <td><a href="#AdBlockManager.isHostExcepted">isHostExcepted</a></td> |
170 <td><a href="#AdBlockManager.isHostExcepted">isHostExcepted</a></td> |
135 <td>Public slot to check, if a host is excepted.</td> |
171 <td>Public slot to check, if a host is excepted.</td> |
136 </tr><tr> |
172 </tr> |
|
173 <tr> |
137 <td><a href="#AdBlockManager.load">load</a></td> |
174 <td><a href="#AdBlockManager.load">load</a></td> |
138 <td>Public method to load the AdBlock subscriptions.</td> |
175 <td>Public method to load the AdBlock subscriptions.</td> |
139 </tr><tr> |
176 </tr> |
|
177 <tr> |
140 <td><a href="#AdBlockManager.loadRequiredSubscription">loadRequiredSubscription</a></td> |
178 <td><a href="#AdBlockManager.loadRequiredSubscription">loadRequiredSubscription</a></td> |
141 <td>Public method to load a subscription required by another one.</td> |
179 <td>Public method to load a subscription required by another one.</td> |
142 </tr><tr> |
180 </tr> |
|
181 <tr> |
143 <td><a href="#AdBlockManager.page">page</a></td> |
182 <td><a href="#AdBlockManager.page">page</a></td> |
144 <td>Public method to get a reference to the page block object.</td> |
183 <td>Public method to get a reference to the page block object.</td> |
145 </tr><tr> |
184 </tr> |
|
185 <tr> |
146 <td><a href="#AdBlockManager.removeException">removeException</a></td> |
186 <td><a href="#AdBlockManager.removeException">removeException</a></td> |
147 <td>Public method to remove an exception.</td> |
187 <td>Public method to remove an exception.</td> |
148 </tr><tr> |
188 </tr> |
|
189 <tr> |
149 <td><a href="#AdBlockManager.removeSubscription">removeSubscription</a></td> |
190 <td><a href="#AdBlockManager.removeSubscription">removeSubscription</a></td> |
150 <td>Public method to remove an AdBlock subscription.</td> |
191 <td>Public method to remove an AdBlock subscription.</td> |
151 </tr><tr> |
192 </tr> |
|
193 <tr> |
152 <td><a href="#AdBlockManager.save">save</a></td> |
194 <td><a href="#AdBlockManager.save">save</a></td> |
153 <td>Public method to save the AdBlock subscriptions.</td> |
195 <td>Public method to save the AdBlock subscriptions.</td> |
154 </tr><tr> |
196 </tr> |
|
197 <tr> |
155 <td><a href="#AdBlockManager.setEnabled">setEnabled</a></td> |
198 <td><a href="#AdBlockManager.setEnabled">setEnabled</a></td> |
156 <td>Public slot to set the enabled state.</td> |
199 <td>Public slot to set the enabled state.</td> |
157 </tr><tr> |
200 </tr> |
|
201 <tr> |
158 <td><a href="#AdBlockManager.setExceptions">setExceptions</a></td> |
202 <td><a href="#AdBlockManager.setExceptions">setExceptions</a></td> |
159 <td>Public method to set the list of excepted hosts.</td> |
203 <td>Public method to set the list of excepted hosts.</td> |
160 </tr><tr> |
204 </tr> |
|
205 <tr> |
161 <td><a href="#AdBlockManager.setUseLimitedEasyList">setUseLimitedEasyList</a></td> |
206 <td><a href="#AdBlockManager.setUseLimitedEasyList">setUseLimitedEasyList</a></td> |
162 <td>Public method to set the limited EasyList flag.</td> |
207 <td>Public method to set the limited EasyList flag.</td> |
163 </tr><tr> |
208 </tr> |
|
209 <tr> |
164 <td><a href="#AdBlockManager.showDialog">showDialog</a></td> |
210 <td><a href="#AdBlockManager.showDialog">showDialog</a></td> |
165 <td>Public slot to show the AdBlock subscription management dialog.</td> |
211 <td>Public slot to show the AdBlock subscription management dialog.</td> |
166 </tr><tr> |
212 </tr> |
|
213 <tr> |
167 <td><a href="#AdBlockManager.showExceptionsDialog">showExceptionsDialog</a></td> |
214 <td><a href="#AdBlockManager.showExceptionsDialog">showExceptionsDialog</a></td> |
168 <td>Public method to show the AdBlock Exceptions dialog.</td> |
215 <td>Public method to show the AdBlock Exceptions dialog.</td> |
169 </tr><tr> |
216 </tr> |
|
217 <tr> |
170 <td><a href="#AdBlockManager.subscription">subscription</a></td> |
218 <td><a href="#AdBlockManager.subscription">subscription</a></td> |
171 <td>Public method to get a subscription based on its location.</td> |
219 <td>Public method to get a subscription based on its location.</td> |
172 </tr><tr> |
220 </tr> |
|
221 <tr> |
173 <td><a href="#AdBlockManager.subscriptions">subscriptions</a></td> |
222 <td><a href="#AdBlockManager.subscriptions">subscriptions</a></td> |
174 <td>Public method to get all subscriptions.</td> |
223 <td>Public method to get all subscriptions.</td> |
175 </tr><tr> |
224 </tr> |
|
225 <tr> |
176 <td><a href="#AdBlockManager.updateAllSubscriptions">updateAllSubscriptions</a></td> |
226 <td><a href="#AdBlockManager.updateAllSubscriptions">updateAllSubscriptions</a></td> |
177 <td>Public method to update all subscriptions.</td> |
227 <td>Public method to update all subscriptions.</td> |
178 </tr><tr> |
228 </tr> |
|
229 <tr> |
179 <td><a href="#AdBlockManager.useLimitedEasyList">useLimitedEasyList</a></td> |
230 <td><a href="#AdBlockManager.useLimitedEasyList">useLimitedEasyList</a></td> |
180 <td>Public method to test, if limited EasyList rules shall be used.</td> |
231 <td>Public method to test, if limited EasyList rules shall be used.</td> |
181 </tr> |
232 </tr> |
182 </table> |
233 </table> |
183 <h3>Static Methods</h3> |
234 <h3>Static Methods</h3> |
|
235 |
184 <table> |
236 <table> |
185 <tr><td>None</td></tr> |
237 <tr><td>None</td></tr> |
186 </table> |
238 </table> |
|
239 |
187 <a NAME="AdBlockManager.__init__" ID="AdBlockManager.__init__"></a> |
240 <a NAME="AdBlockManager.__init__" ID="AdBlockManager.__init__"></a> |
188 <h4>AdBlockManager (Constructor)</h4> |
241 <h4>AdBlockManager (Constructor)</h4> |
189 <b>AdBlockManager</b>(<i>parent=None</i>) |
242 <b>AdBlockManager</b>(<i>parent=None</i>) |
|
243 |
190 <p> |
244 <p> |
191 Constructor |
245 Constructor |
192 </p><dl> |
246 </p> |
|
247 <dl> |
|
248 |
193 <dt><i>parent</i> (QObject)</dt> |
249 <dt><i>parent</i> (QObject)</dt> |
194 <dd> |
250 <dd> |
195 reference to the parent object |
251 reference to the parent object |
196 </dd> |
252 </dd> |
197 </dl><a NAME="AdBlockManager.__canBeBlocked" ID="AdBlockManager.__canBeBlocked"></a> |
253 </dl> |
|
254 <a NAME="AdBlockManager.__canBeBlocked" ID="AdBlockManager.__canBeBlocked"></a> |
198 <h4>AdBlockManager.__canBeBlocked</h4> |
255 <h4>AdBlockManager.__canBeBlocked</h4> |
199 <b>__canBeBlocked</b>(<i>url</i>) |
256 <b>__canBeBlocked</b>(<i>url</i>) |
|
257 |
200 <p> |
258 <p> |
201 Private method to check, if the given URL could be blocked (i.e. is |
259 Private method to check, if the given URL could be blocked (i.e. is |
202 not whitelisted). |
260 not whitelisted). |
203 </p><dl> |
261 </p> |
|
262 <dl> |
|
263 |
204 <dt><i>url</i> (QUrl)</dt> |
264 <dt><i>url</i> (QUrl)</dt> |
205 <dd> |
265 <dd> |
206 URL to be checked |
266 URL to be checked |
207 </dd> |
267 </dd> |
208 </dl><dl> |
268 </dl> |
|
269 <dl> |
209 <dt>Returns:</dt> |
270 <dt>Returns:</dt> |
210 <dd> |
271 <dd> |
211 flag indicating that the given URL can be blocked |
272 flag indicating that the given URL can be blocked |
212 </dd> |
273 </dd> |
213 </dl><dl> |
274 </dl> |
|
275 <dl> |
214 <dt>Return Type:</dt> |
276 <dt>Return Type:</dt> |
215 <dd> |
277 <dd> |
216 bool |
278 bool |
217 </dd> |
279 </dd> |
218 </dl><a NAME="AdBlockManager.__customSubscriptionLocation" ID="AdBlockManager.__customSubscriptionLocation"></a> |
280 </dl> |
|
281 <a NAME="AdBlockManager.__customSubscriptionLocation" ID="AdBlockManager.__customSubscriptionLocation"></a> |
219 <h4>AdBlockManager.__customSubscriptionLocation</h4> |
282 <h4>AdBlockManager.__customSubscriptionLocation</h4> |
220 <b>__customSubscriptionLocation</b>(<i></i>) |
283 <b>__customSubscriptionLocation</b>(<i></i>) |
|
284 |
221 <p> |
285 <p> |
222 Private method to generate the path for custom subscriptions. |
286 Private method to generate the path for custom subscriptions. |
223 </p><dl> |
287 </p> |
|
288 <dl> |
224 <dt>Returns:</dt> |
289 <dt>Returns:</dt> |
225 <dd> |
290 <dd> |
226 URL for custom subscriptions |
291 URL for custom subscriptions |
227 </dd> |
292 </dd> |
228 </dl><dl> |
293 </dl> |
|
294 <dl> |
229 <dt>Return Type:</dt> |
295 <dt>Return Type:</dt> |
230 <dd> |
296 <dd> |
231 QUrl |
297 QUrl |
232 </dd> |
298 </dd> |
233 </dl><a NAME="AdBlockManager.__customSubscriptionUrl" ID="AdBlockManager.__customSubscriptionUrl"></a> |
299 </dl> |
|
300 <a NAME="AdBlockManager.__customSubscriptionUrl" ID="AdBlockManager.__customSubscriptionUrl"></a> |
234 <h4>AdBlockManager.__customSubscriptionUrl</h4> |
301 <h4>AdBlockManager.__customSubscriptionUrl</h4> |
235 <b>__customSubscriptionUrl</b>(<i></i>) |
302 <b>__customSubscriptionUrl</b>(<i></i>) |
|
303 |
236 <p> |
304 <p> |
237 Private method to generate the URL for custom subscriptions. |
305 Private method to generate the URL for custom subscriptions. |
238 </p><dl> |
306 </p> |
|
307 <dl> |
239 <dt>Returns:</dt> |
308 <dt>Returns:</dt> |
240 <dd> |
309 <dd> |
241 URL for custom subscriptions |
310 URL for custom subscriptions |
242 </dd> |
311 </dd> |
243 </dl><dl> |
312 </dl> |
|
313 <dl> |
244 <dt>Return Type:</dt> |
314 <dt>Return Type:</dt> |
245 <dd> |
315 <dd> |
246 QUrl |
316 QUrl |
247 </dd> |
317 </dd> |
248 </dl><a NAME="AdBlockManager.__loadSubscriptions" ID="AdBlockManager.__loadSubscriptions"></a> |
318 </dl> |
|
319 <a NAME="AdBlockManager.__loadSubscriptions" ID="AdBlockManager.__loadSubscriptions"></a> |
249 <h4>AdBlockManager.__loadSubscriptions</h4> |
320 <h4>AdBlockManager.__loadSubscriptions</h4> |
250 <b>__loadSubscriptions</b>(<i></i>) |
321 <b>__loadSubscriptions</b>(<i></i>) |
|
322 |
251 <p> |
323 <p> |
252 Private method to load the set of subscriptions. |
324 Private method to load the set of subscriptions. |
253 </p><a NAME="AdBlockManager.__rulesChanged" ID="AdBlockManager.__rulesChanged"></a> |
325 </p> |
|
326 <a NAME="AdBlockManager.__rulesChanged" ID="AdBlockManager.__rulesChanged"></a> |
254 <h4>AdBlockManager.__rulesChanged</h4> |
327 <h4>AdBlockManager.__rulesChanged</h4> |
255 <b>__rulesChanged</b>(<i></i>) |
328 <b>__rulesChanged</b>(<i></i>) |
|
329 |
256 <p> |
330 <p> |
257 Private slot handling a change of the AdBlock rules. |
331 Private slot handling a change of the AdBlock rules. |
258 </p><a NAME="AdBlockManager.__updateMatcher" ID="AdBlockManager.__updateMatcher"></a> |
332 </p> |
|
333 <a NAME="AdBlockManager.__updateMatcher" ID="AdBlockManager.__updateMatcher"></a> |
259 <h4>AdBlockManager.__updateMatcher</h4> |
334 <h4>AdBlockManager.__updateMatcher</h4> |
260 <b>__updateMatcher</b>(<i></i>) |
335 <b>__updateMatcher</b>(<i></i>) |
|
336 |
261 <p> |
337 <p> |
262 Private slot to update the adblock matcher. |
338 Private slot to update the adblock matcher. |
263 </p><a NAME="AdBlockManager.addException" ID="AdBlockManager.addException"></a> |
339 </p> |
|
340 <a NAME="AdBlockManager.addException" ID="AdBlockManager.addException"></a> |
264 <h4>AdBlockManager.addException</h4> |
341 <h4>AdBlockManager.addException</h4> |
265 <b>addException</b>(<i>host</i>) |
342 <b>addException</b>(<i>host</i>) |
|
343 |
266 <p> |
344 <p> |
267 Public method to add an exception. |
345 Public method to add an exception. |
268 </p><dl> |
346 </p> |
|
347 <dl> |
|
348 |
269 <dt><i>host</i> (str)</dt> |
349 <dt><i>host</i> (str)</dt> |
270 <dd> |
350 <dd> |
271 to be excepted |
351 to be excepted |
272 </dd> |
352 </dd> |
273 </dl><a NAME="AdBlockManager.addSubscription" ID="AdBlockManager.addSubscription"></a> |
353 </dl> |
|
354 <a NAME="AdBlockManager.addSubscription" ID="AdBlockManager.addSubscription"></a> |
274 <h4>AdBlockManager.addSubscription</h4> |
355 <h4>AdBlockManager.addSubscription</h4> |
275 <b>addSubscription</b>(<i>subscription</i>) |
356 <b>addSubscription</b>(<i>subscription</i>) |
|
357 |
276 <p> |
358 <p> |
277 Public method to add an AdBlock subscription. |
359 Public method to add an AdBlock subscription. |
278 </p><dl> |
360 </p> |
|
361 <dl> |
|
362 |
279 <dt><i>subscription</i> (AdBlockSubscription)</dt> |
363 <dt><i>subscription</i> (AdBlockSubscription)</dt> |
280 <dd> |
364 <dd> |
281 AdBlock subscription to be added |
365 AdBlock subscription to be added |
282 </dd> |
366 </dd> |
283 </dl><a NAME="AdBlockManager.addSubscriptionFromUrl" ID="AdBlockManager.addSubscriptionFromUrl"></a> |
367 </dl> |
|
368 <a NAME="AdBlockManager.addSubscriptionFromUrl" ID="AdBlockManager.addSubscriptionFromUrl"></a> |
284 <h4>AdBlockManager.addSubscriptionFromUrl</h4> |
369 <h4>AdBlockManager.addSubscriptionFromUrl</h4> |
285 <b>addSubscriptionFromUrl</b>(<i>url</i>) |
370 <b>addSubscriptionFromUrl</b>(<i>url</i>) |
|
371 |
286 <p> |
372 <p> |
287 Public method to ad an AdBlock subscription given the abp URL. |
373 Public method to ad an AdBlock subscription given the abp URL. |
288 </p><dl> |
374 </p> |
|
375 <dl> |
|
376 |
289 <dt><i>url</i> (QUrl)</dt> |
377 <dt><i>url</i> (QUrl)</dt> |
290 <dd> |
378 <dd> |
291 URL to subscribe an AdBlock subscription |
379 URL to subscribe an AdBlock subscription |
292 </dd> |
380 </dd> |
293 </dl><dl> |
381 </dl> |
|
382 <dl> |
294 <dt>Returns:</dt> |
383 <dt>Returns:</dt> |
295 <dd> |
384 <dd> |
296 flag indicating success |
385 flag indicating success |
297 </dd> |
386 </dd> |
298 </dl><dl> |
387 </dl> |
|
388 <dl> |
299 <dt>Return Type:</dt> |
389 <dt>Return Type:</dt> |
300 <dd> |
390 <dd> |
301 bool |
391 bool |
302 </dd> |
392 </dd> |
303 </dl><a NAME="AdBlockManager.block" ID="AdBlockManager.block"></a> |
393 </dl> |
|
394 <a NAME="AdBlockManager.block" ID="AdBlockManager.block"></a> |
304 <h4>AdBlockManager.block</h4> |
395 <h4>AdBlockManager.block</h4> |
305 <b>block</b>(<i>info</i>) |
396 <b>block</b>(<i>info</i>) |
|
397 |
306 <p> |
398 <p> |
307 Public method to check, if a request should be blocked. |
399 Public method to check, if a request should be blocked. |
308 </p><dl> |
400 </p> |
|
401 <dl> |
|
402 |
309 <dt><i>info</i> (QWebEngineUrlRequestInfo)</dt> |
403 <dt><i>info</i> (QWebEngineUrlRequestInfo)</dt> |
310 <dd> |
404 <dd> |
311 request info object |
405 request info object |
312 </dd> |
406 </dd> |
313 </dl><dl> |
407 </dl> |
|
408 <dl> |
314 <dt>Returns:</dt> |
409 <dt>Returns:</dt> |
315 <dd> |
410 <dd> |
316 flag indicating to block the request |
411 flag indicating to block the request |
317 </dd> |
412 </dd> |
318 </dl><dl> |
413 </dl> |
|
414 <dl> |
319 <dt>Return Type:</dt> |
415 <dt>Return Type:</dt> |
320 <dd> |
416 <dd> |
321 bool |
417 bool |
322 </dd> |
418 </dd> |
323 </dl><a NAME="AdBlockManager.canRunOnScheme" ID="AdBlockManager.canRunOnScheme"></a> |
419 </dl> |
|
420 <a NAME="AdBlockManager.canRunOnScheme" ID="AdBlockManager.canRunOnScheme"></a> |
324 <h4>AdBlockManager.canRunOnScheme</h4> |
421 <h4>AdBlockManager.canRunOnScheme</h4> |
325 <b>canRunOnScheme</b>(<i>scheme</i>) |
422 <b>canRunOnScheme</b>(<i>scheme</i>) |
|
423 |
326 <p> |
424 <p> |
327 Public method to check, if AdBlock can be performed on the scheme. |
425 Public method to check, if AdBlock can be performed on the scheme. |
328 </p><dl> |
426 </p> |
|
427 <dl> |
|
428 |
329 <dt><i>scheme</i> (str)</dt> |
429 <dt><i>scheme</i> (str)</dt> |
330 <dd> |
430 <dd> |
331 scheme to check |
431 scheme to check |
332 </dd> |
432 </dd> |
333 </dl><dl> |
433 </dl> |
|
434 <dl> |
334 <dt>Returns:</dt> |
435 <dt>Returns:</dt> |
335 <dd> |
436 <dd> |
336 flag indicating, that AdBlock can be performed |
437 flag indicating, that AdBlock can be performed |
337 </dd> |
438 </dd> |
338 </dl><dl> |
439 </dl> |
|
440 <dl> |
339 <dt>Return Type:</dt> |
441 <dt>Return Type:</dt> |
340 <dd> |
442 <dd> |
341 bool |
443 bool |
342 </dd> |
444 </dd> |
343 </dl><a NAME="AdBlockManager.close" ID="AdBlockManager.close"></a> |
445 </dl> |
|
446 <a NAME="AdBlockManager.close" ID="AdBlockManager.close"></a> |
344 <h4>AdBlockManager.close</h4> |
447 <h4>AdBlockManager.close</h4> |
345 <b>close</b>(<i></i>) |
448 <b>close</b>(<i></i>) |
|
449 |
346 <p> |
450 <p> |
347 Public method to close the open search engines manager. |
451 Public method to close the open search engines manager. |
348 </p><a NAME="AdBlockManager.customRules" ID="AdBlockManager.customRules"></a> |
452 </p> |
|
453 <a NAME="AdBlockManager.customRules" ID="AdBlockManager.customRules"></a> |
349 <h4>AdBlockManager.customRules</h4> |
454 <h4>AdBlockManager.customRules</h4> |
350 <b>customRules</b>(<i></i>) |
455 <b>customRules</b>(<i></i>) |
|
456 |
351 <p> |
457 <p> |
352 Public method to get a subscription for custom rules. |
458 Public method to get a subscription for custom rules. |
353 </p><dl> |
459 </p> |
|
460 <dl> |
354 <dt>Returns:</dt> |
461 <dt>Returns:</dt> |
355 <dd> |
462 <dd> |
356 subscription object for custom rules |
463 subscription object for custom rules |
357 </dd> |
464 </dd> |
358 </dl><dl> |
465 </dl> |
|
466 <dl> |
359 <dt>Return Type:</dt> |
467 <dt>Return Type:</dt> |
360 <dd> |
468 <dd> |
361 AdBlockSubscription |
469 AdBlockSubscription |
362 </dd> |
470 </dd> |
363 </dl><a NAME="AdBlockManager.elementHidingRules" ID="AdBlockManager.elementHidingRules"></a> |
471 </dl> |
|
472 <a NAME="AdBlockManager.elementHidingRules" ID="AdBlockManager.elementHidingRules"></a> |
364 <h4>AdBlockManager.elementHidingRules</h4> |
473 <h4>AdBlockManager.elementHidingRules</h4> |
365 <b>elementHidingRules</b>(<i>url</i>) |
474 <b>elementHidingRules</b>(<i>url</i>) |
|
475 |
366 <p> |
476 <p> |
367 Public method to get the element hiding rules. |
477 Public method to get the element hiding rules. |
368 </p><p> |
478 </p> |
369 |
479 <p> |
370 </p><dl> |
480 |
|
481 </p> |
|
482 <dl> |
|
483 |
371 <dt><i>url</i> (QUrl)</dt> |
484 <dt><i>url</i> (QUrl)</dt> |
372 <dd> |
485 <dd> |
373 URL to get hiding rules for |
486 URL to get hiding rules for |
374 </dd> |
487 </dd> |
375 </dl><dl> |
488 </dl> |
|
489 <dl> |
376 <dt>Returns:</dt> |
490 <dt>Returns:</dt> |
377 <dd> |
491 <dd> |
378 element hiding rules |
492 element hiding rules |
379 </dd> |
493 </dd> |
380 </dl><dl> |
494 </dl> |
|
495 <dl> |
381 <dt>Return Type:</dt> |
496 <dt>Return Type:</dt> |
382 <dd> |
497 <dd> |
383 str |
498 str |
384 </dd> |
499 </dd> |
385 </dl><a NAME="AdBlockManager.elementHidingRulesForDomain" ID="AdBlockManager.elementHidingRulesForDomain"></a> |
500 </dl> |
|
501 <a NAME="AdBlockManager.elementHidingRulesForDomain" ID="AdBlockManager.elementHidingRulesForDomain"></a> |
386 <h4>AdBlockManager.elementHidingRulesForDomain</h4> |
502 <h4>AdBlockManager.elementHidingRulesForDomain</h4> |
387 <b>elementHidingRulesForDomain</b>(<i>url</i>) |
503 <b>elementHidingRulesForDomain</b>(<i>url</i>) |
|
504 |
388 <p> |
505 <p> |
389 Public method to get the element hiding rules for a domain. |
506 Public method to get the element hiding rules for a domain. |
390 </p><dl> |
507 </p> |
|
508 <dl> |
|
509 |
391 <dt><i>url</i> (QUrl)</dt> |
510 <dt><i>url</i> (QUrl)</dt> |
392 <dd> |
511 <dd> |
393 URL to get hiding rules for |
512 URL to get hiding rules for |
394 </dd> |
513 </dd> |
395 </dl><dl> |
514 </dl> |
|
515 <dl> |
396 <dt>Returns:</dt> |
516 <dt>Returns:</dt> |
397 <dd> |
517 <dd> |
398 element hiding rules |
518 element hiding rules |
399 </dd> |
519 </dd> |
400 </dl><dl> |
520 </dl> |
|
521 <dl> |
401 <dt>Return Type:</dt> |
522 <dt>Return Type:</dt> |
402 <dd> |
523 <dd> |
403 str |
524 str |
404 </dd> |
525 </dd> |
405 </dl><a NAME="AdBlockManager.exceptions" ID="AdBlockManager.exceptions"></a> |
526 </dl> |
|
527 <a NAME="AdBlockManager.exceptions" ID="AdBlockManager.exceptions"></a> |
406 <h4>AdBlockManager.exceptions</h4> |
528 <h4>AdBlockManager.exceptions</h4> |
407 <b>exceptions</b>(<i></i>) |
529 <b>exceptions</b>(<i></i>) |
|
530 |
408 <p> |
531 <p> |
409 Public method to get a list of excepted hosts. |
532 Public method to get a list of excepted hosts. |
410 </p><dl> |
533 </p> |
|
534 <dl> |
411 <dt>Returns:</dt> |
535 <dt>Returns:</dt> |
412 <dd> |
536 <dd> |
413 list of excepted hosts |
537 list of excepted hosts |
414 </dd> |
538 </dd> |
415 </dl><dl> |
539 </dl> |
|
540 <dl> |
416 <dt>Return Type:</dt> |
541 <dt>Return Type:</dt> |
417 <dd> |
542 <dd> |
418 list of str |
543 list of str |
419 </dd> |
544 </dd> |
420 </dl><a NAME="AdBlockManager.getDefaultSubscriptionUrl" ID="AdBlockManager.getDefaultSubscriptionUrl"></a> |
545 </dl> |
|
546 <a NAME="AdBlockManager.getDefaultSubscriptionUrl" ID="AdBlockManager.getDefaultSubscriptionUrl"></a> |
421 <h4>AdBlockManager.getDefaultSubscriptionUrl</h4> |
547 <h4>AdBlockManager.getDefaultSubscriptionUrl</h4> |
422 <b>getDefaultSubscriptionUrl</b>(<i></i>) |
548 <b>getDefaultSubscriptionUrl</b>(<i></i>) |
|
549 |
423 <p> |
550 <p> |
424 Public method to get the default subscription URL. |
551 Public method to get the default subscription URL. |
425 </p><dl> |
552 </p> |
|
553 <dl> |
426 <dt>Returns:</dt> |
554 <dt>Returns:</dt> |
427 <dd> |
555 <dd> |
428 default subscription URL |
556 default subscription URL |
429 </dd> |
557 </dd> |
430 </dl><dl> |
558 </dl> |
|
559 <dl> |
431 <dt>Return Type:</dt> |
560 <dt>Return Type:</dt> |
432 <dd> |
561 <dd> |
433 str |
562 str |
434 </dd> |
563 </dd> |
435 </dl><a NAME="AdBlockManager.getRequiresSubscriptions" ID="AdBlockManager.getRequiresSubscriptions"></a> |
564 </dl> |
|
565 <a NAME="AdBlockManager.getRequiresSubscriptions" ID="AdBlockManager.getRequiresSubscriptions"></a> |
436 <h4>AdBlockManager.getRequiresSubscriptions</h4> |
566 <h4>AdBlockManager.getRequiresSubscriptions</h4> |
437 <b>getRequiresSubscriptions</b>(<i>subscription</i>) |
567 <b>getRequiresSubscriptions</b>(<i>subscription</i>) |
|
568 |
438 <p> |
569 <p> |
439 Public method to get a list of subscriptions, that require the given |
570 Public method to get a list of subscriptions, that require the given |
440 one. |
571 one. |
441 </p><dl> |
572 </p> |
|
573 <dl> |
|
574 |
442 <dt><i>subscription</i> (AdBlockSubscription)</dt> |
575 <dt><i>subscription</i> (AdBlockSubscription)</dt> |
443 <dd> |
576 <dd> |
444 subscription to check for |
577 subscription to check for |
445 </dd> |
578 </dd> |
446 </dl><dl> |
579 </dl> |
|
580 <dl> |
447 <dt>Returns:</dt> |
581 <dt>Returns:</dt> |
448 <dd> |
582 <dd> |
449 list of subscription requiring the given one |
583 list of subscription requiring the given one |
450 </dd> |
584 </dd> |
451 </dl><dl> |
585 </dl> |
|
586 <dl> |
452 <dt>Return Type:</dt> |
587 <dt>Return Type:</dt> |
453 <dd> |
588 <dd> |
454 list of AdBlockSubscription |
589 list of AdBlockSubscription |
455 </dd> |
590 </dd> |
456 </dl><a NAME="AdBlockManager.isEnabled" ID="AdBlockManager.isEnabled"></a> |
591 </dl> |
|
592 <a NAME="AdBlockManager.isEnabled" ID="AdBlockManager.isEnabled"></a> |
457 <h4>AdBlockManager.isEnabled</h4> |
593 <h4>AdBlockManager.isEnabled</h4> |
458 <b>isEnabled</b>(<i></i>) |
594 <b>isEnabled</b>(<i></i>) |
|
595 |
459 <p> |
596 <p> |
460 Public method to check, if blocking ads is enabled. |
597 Public method to check, if blocking ads is enabled. |
461 </p><dl> |
598 </p> |
|
599 <dl> |
462 <dt>Returns:</dt> |
600 <dt>Returns:</dt> |
463 <dd> |
601 <dd> |
464 flag indicating the enabled state |
602 flag indicating the enabled state |
465 </dd> |
603 </dd> |
466 </dl><dl> |
604 </dl> |
|
605 <dl> |
467 <dt>Return Type:</dt> |
606 <dt>Return Type:</dt> |
468 <dd> |
607 <dd> |
469 bool |
608 bool |
470 </dd> |
609 </dd> |
471 </dl><a NAME="AdBlockManager.isHostExcepted" ID="AdBlockManager.isHostExcepted"></a> |
610 </dl> |
|
611 <a NAME="AdBlockManager.isHostExcepted" ID="AdBlockManager.isHostExcepted"></a> |
472 <h4>AdBlockManager.isHostExcepted</h4> |
612 <h4>AdBlockManager.isHostExcepted</h4> |
473 <b>isHostExcepted</b>(<i>host</i>) |
613 <b>isHostExcepted</b>(<i>host</i>) |
|
614 |
474 <p> |
615 <p> |
475 Public slot to check, if a host is excepted. |
616 Public slot to check, if a host is excepted. |
476 </p><dl> |
617 </p> |
|
618 <dl> |
|
619 |
477 <dt><i>host</i> (str)</dt> |
620 <dt><i>host</i> (str)</dt> |
478 <dd> |
621 <dd> |
479 host to check |
622 host to check |
480 </dd> |
623 </dd> |
481 </dl><dl> |
624 </dl> |
|
625 <dl> |
482 <dt>Returns:</dt> |
626 <dt>Returns:</dt> |
483 <dd> |
627 <dd> |
484 flag indicating an exception |
628 flag indicating an exception |
485 </dd> |
629 </dd> |
486 </dl><dl> |
630 </dl> |
|
631 <dl> |
487 <dt>Return Type:</dt> |
632 <dt>Return Type:</dt> |
488 <dd> |
633 <dd> |
489 bool |
634 bool |
490 </dd> |
635 </dd> |
491 </dl><a NAME="AdBlockManager.load" ID="AdBlockManager.load"></a> |
636 </dl> |
|
637 <a NAME="AdBlockManager.load" ID="AdBlockManager.load"></a> |
492 <h4>AdBlockManager.load</h4> |
638 <h4>AdBlockManager.load</h4> |
493 <b>load</b>(<i></i>) |
639 <b>load</b>(<i></i>) |
|
640 |
494 <p> |
641 <p> |
495 Public method to load the AdBlock subscriptions. |
642 Public method to load the AdBlock subscriptions. |
496 </p><a NAME="AdBlockManager.loadRequiredSubscription" ID="AdBlockManager.loadRequiredSubscription"></a> |
643 </p> |
|
644 <a NAME="AdBlockManager.loadRequiredSubscription" ID="AdBlockManager.loadRequiredSubscription"></a> |
497 <h4>AdBlockManager.loadRequiredSubscription</h4> |
645 <h4>AdBlockManager.loadRequiredSubscription</h4> |
498 <b>loadRequiredSubscription</b>(<i>location, title</i>) |
646 <b>loadRequiredSubscription</b>(<i>location, title</i>) |
|
647 |
499 <p> |
648 <p> |
500 Public method to load a subscription required by another one. |
649 Public method to load a subscription required by another one. |
501 </p><dl> |
650 </p> |
|
651 <dl> |
|
652 |
502 <dt><i>location</i> (str)</dt> |
653 <dt><i>location</i> (str)</dt> |
503 <dd> |
654 <dd> |
504 location of the required subscription |
655 location of the required subscription |
505 </dd><dt><i>title</i> (str)</dt> |
656 </dd> |
|
657 <dt><i>title</i> (str)</dt> |
506 <dd> |
658 <dd> |
507 title of the required subscription |
659 title of the required subscription |
508 </dd> |
660 </dd> |
509 </dl><a NAME="AdBlockManager.page" ID="AdBlockManager.page"></a> |
661 </dl> |
|
662 <a NAME="AdBlockManager.page" ID="AdBlockManager.page"></a> |
510 <h4>AdBlockManager.page</h4> |
663 <h4>AdBlockManager.page</h4> |
511 <b>page</b>(<i></i>) |
664 <b>page</b>(<i></i>) |
|
665 |
512 <p> |
666 <p> |
513 Public method to get a reference to the page block object. |
667 Public method to get a reference to the page block object. |
514 </p><dl> |
668 </p> |
|
669 <dl> |
515 <dt>Returns:</dt> |
670 <dt>Returns:</dt> |
516 <dd> |
671 <dd> |
517 reference to the page block object |
672 reference to the page block object |
518 </dd> |
673 </dd> |
519 </dl><dl> |
674 </dl> |
|
675 <dl> |
520 <dt>Return Type:</dt> |
676 <dt>Return Type:</dt> |
521 <dd> |
677 <dd> |
522 AdBlockPage |
678 AdBlockPage |
523 </dd> |
679 </dd> |
524 </dl><a NAME="AdBlockManager.removeException" ID="AdBlockManager.removeException"></a> |
680 </dl> |
|
681 <a NAME="AdBlockManager.removeException" ID="AdBlockManager.removeException"></a> |
525 <h4>AdBlockManager.removeException</h4> |
682 <h4>AdBlockManager.removeException</h4> |
526 <b>removeException</b>(<i>host</i>) |
683 <b>removeException</b>(<i>host</i>) |
|
684 |
527 <p> |
685 <p> |
528 Public method to remove an exception. |
686 Public method to remove an exception. |
529 </p><dl> |
687 </p> |
|
688 <dl> |
|
689 |
530 <dt><i>host</i> (str)</dt> |
690 <dt><i>host</i> (str)</dt> |
531 <dd> |
691 <dd> |
532 to be removed from the list of exceptions |
692 to be removed from the list of exceptions |
533 </dd> |
693 </dd> |
534 </dl><a NAME="AdBlockManager.removeSubscription" ID="AdBlockManager.removeSubscription"></a> |
694 </dl> |
|
695 <a NAME="AdBlockManager.removeSubscription" ID="AdBlockManager.removeSubscription"></a> |
535 <h4>AdBlockManager.removeSubscription</h4> |
696 <h4>AdBlockManager.removeSubscription</h4> |
536 <b>removeSubscription</b>(<i>subscription, emitSignal=True</i>) |
697 <b>removeSubscription</b>(<i>subscription, emitSignal=True</i>) |
|
698 |
537 <p> |
699 <p> |
538 Public method to remove an AdBlock subscription. |
700 Public method to remove an AdBlock subscription. |
539 </p><dl> |
701 </p> |
|
702 <dl> |
|
703 |
540 <dt><i>subscription</i> (AdBlockSubscription)</dt> |
704 <dt><i>subscription</i> (AdBlockSubscription)</dt> |
541 <dd> |
705 <dd> |
542 AdBlock subscription to be removed |
706 AdBlock subscription to be removed |
543 </dd><dt><i>emitSignal</i> (bool)</dt> |
707 </dd> |
|
708 <dt><i>emitSignal</i> (bool)</dt> |
544 <dd> |
709 <dd> |
545 flag indicating to send a signal |
710 flag indicating to send a signal |
546 </dd> |
711 </dd> |
547 </dl><a NAME="AdBlockManager.save" ID="AdBlockManager.save"></a> |
712 </dl> |
|
713 <a NAME="AdBlockManager.save" ID="AdBlockManager.save"></a> |
548 <h4>AdBlockManager.save</h4> |
714 <h4>AdBlockManager.save</h4> |
549 <b>save</b>(<i></i>) |
715 <b>save</b>(<i></i>) |
|
716 |
550 <p> |
717 <p> |
551 Public method to save the AdBlock subscriptions. |
718 Public method to save the AdBlock subscriptions. |
552 </p><a NAME="AdBlockManager.setEnabled" ID="AdBlockManager.setEnabled"></a> |
719 </p> |
|
720 <a NAME="AdBlockManager.setEnabled" ID="AdBlockManager.setEnabled"></a> |
553 <h4>AdBlockManager.setEnabled</h4> |
721 <h4>AdBlockManager.setEnabled</h4> |
554 <b>setEnabled</b>(<i>enabled</i>) |
722 <b>setEnabled</b>(<i>enabled</i>) |
|
723 |
555 <p> |
724 <p> |
556 Public slot to set the enabled state. |
725 Public slot to set the enabled state. |
557 </p><dl> |
726 </p> |
|
727 <dl> |
|
728 |
558 <dt><i>enabled</i> (bool)</dt> |
729 <dt><i>enabled</i> (bool)</dt> |
559 <dd> |
730 <dd> |
560 flag indicating the enabled state |
731 flag indicating the enabled state |
561 </dd> |
732 </dd> |
562 </dl><a NAME="AdBlockManager.setExceptions" ID="AdBlockManager.setExceptions"></a> |
733 </dl> |
|
734 <a NAME="AdBlockManager.setExceptions" ID="AdBlockManager.setExceptions"></a> |
563 <h4>AdBlockManager.setExceptions</h4> |
735 <h4>AdBlockManager.setExceptions</h4> |
564 <b>setExceptions</b>(<i>hosts</i>) |
736 <b>setExceptions</b>(<i>hosts</i>) |
|
737 |
565 <p> |
738 <p> |
566 Public method to set the list of excepted hosts. |
739 Public method to set the list of excepted hosts. |
567 </p><dl> |
740 </p> |
|
741 <dl> |
|
742 |
568 <dt><i>hosts</i> (list of str)</dt> |
743 <dt><i>hosts</i> (list of str)</dt> |
569 <dd> |
744 <dd> |
570 list of excepted hosts |
745 list of excepted hosts |
571 </dd> |
746 </dd> |
572 </dl><a NAME="AdBlockManager.setUseLimitedEasyList" ID="AdBlockManager.setUseLimitedEasyList"></a> |
747 </dl> |
|
748 <a NAME="AdBlockManager.setUseLimitedEasyList" ID="AdBlockManager.setUseLimitedEasyList"></a> |
573 <h4>AdBlockManager.setUseLimitedEasyList</h4> |
749 <h4>AdBlockManager.setUseLimitedEasyList</h4> |
574 <b>setUseLimitedEasyList</b>(<i>limited</i>) |
750 <b>setUseLimitedEasyList</b>(<i>limited</i>) |
|
751 |
575 <p> |
752 <p> |
576 Public method to set the limited EasyList flag. |
753 Public method to set the limited EasyList flag. |
577 </p><dl> |
754 </p> |
|
755 <dl> |
|
756 |
578 <dt><i>limited</i> (bool)</dt> |
757 <dt><i>limited</i> (bool)</dt> |
579 <dd> |
758 <dd> |
580 flag indicating to use limited EasyList |
759 flag indicating to use limited EasyList |
581 </dd> |
760 </dd> |
582 </dl><a NAME="AdBlockManager.showDialog" ID="AdBlockManager.showDialog"></a> |
761 </dl> |
|
762 <a NAME="AdBlockManager.showDialog" ID="AdBlockManager.showDialog"></a> |
583 <h4>AdBlockManager.showDialog</h4> |
763 <h4>AdBlockManager.showDialog</h4> |
584 <b>showDialog</b>(<i></i>) |
764 <b>showDialog</b>(<i></i>) |
|
765 |
585 <p> |
766 <p> |
586 Public slot to show the AdBlock subscription management dialog. |
767 Public slot to show the AdBlock subscription management dialog. |
587 </p><dl> |
768 </p> |
|
769 <dl> |
588 <dt>Returns:</dt> |
770 <dt>Returns:</dt> |
589 <dd> |
771 <dd> |
590 reference to the dialog |
772 reference to the dialog |
591 </dd> |
773 </dd> |
592 </dl><dl> |
774 </dl> |
|
775 <dl> |
593 <dt>Return Type:</dt> |
776 <dt>Return Type:</dt> |
594 <dd> |
777 <dd> |
595 AdBlockDialog |
778 AdBlockDialog |
596 </dd> |
779 </dd> |
597 </dl><a NAME="AdBlockManager.showExceptionsDialog" ID="AdBlockManager.showExceptionsDialog"></a> |
780 </dl> |
|
781 <a NAME="AdBlockManager.showExceptionsDialog" ID="AdBlockManager.showExceptionsDialog"></a> |
598 <h4>AdBlockManager.showExceptionsDialog</h4> |
782 <h4>AdBlockManager.showExceptionsDialog</h4> |
599 <b>showExceptionsDialog</b>(<i></i>) |
783 <b>showExceptionsDialog</b>(<i></i>) |
|
784 |
600 <p> |
785 <p> |
601 Public method to show the AdBlock Exceptions dialog. |
786 Public method to show the AdBlock Exceptions dialog. |
602 </p><dl> |
787 </p> |
|
788 <dl> |
603 <dt>Returns:</dt> |
789 <dt>Returns:</dt> |
604 <dd> |
790 <dd> |
605 reference to the exceptions dialog |
791 reference to the exceptions dialog |
606 </dd> |
792 </dd> |
607 </dl><dl> |
793 </dl> |
|
794 <dl> |
608 <dt>Return Type:</dt> |
795 <dt>Return Type:</dt> |
609 <dd> |
796 <dd> |
610 AdBlockExceptionsDialog |
797 AdBlockExceptionsDialog |
611 </dd> |
798 </dd> |
612 </dl><a NAME="AdBlockManager.subscription" ID="AdBlockManager.subscription"></a> |
799 </dl> |
|
800 <a NAME="AdBlockManager.subscription" ID="AdBlockManager.subscription"></a> |
613 <h4>AdBlockManager.subscription</h4> |
801 <h4>AdBlockManager.subscription</h4> |
614 <b>subscription</b>(<i>location</i>) |
802 <b>subscription</b>(<i>location</i>) |
|
803 |
615 <p> |
804 <p> |
616 Public method to get a subscription based on its location. |
805 Public method to get a subscription based on its location. |
617 </p><dl> |
806 </p> |
|
807 <dl> |
|
808 |
618 <dt><i>location</i> (str)</dt> |
809 <dt><i>location</i> (str)</dt> |
619 <dd> |
810 <dd> |
620 location of the subscription to search for |
811 location of the subscription to search for |
621 </dd> |
812 </dd> |
622 </dl><dl> |
813 </dl> |
|
814 <dl> |
623 <dt>Returns:</dt> |
815 <dt>Returns:</dt> |
624 <dd> |
816 <dd> |
625 subscription or None |
817 subscription or None |
626 </dd> |
818 </dd> |
627 </dl><dl> |
819 </dl> |
|
820 <dl> |
628 <dt>Return Type:</dt> |
821 <dt>Return Type:</dt> |
629 <dd> |
822 <dd> |
630 AdBlockSubscription |
823 AdBlockSubscription |
631 </dd> |
824 </dd> |
632 </dl><a NAME="AdBlockManager.subscriptions" ID="AdBlockManager.subscriptions"></a> |
825 </dl> |
|
826 <a NAME="AdBlockManager.subscriptions" ID="AdBlockManager.subscriptions"></a> |
633 <h4>AdBlockManager.subscriptions</h4> |
827 <h4>AdBlockManager.subscriptions</h4> |
634 <b>subscriptions</b>(<i></i>) |
828 <b>subscriptions</b>(<i></i>) |
|
829 |
635 <p> |
830 <p> |
636 Public method to get all subscriptions. |
831 Public method to get all subscriptions. |
637 </p><dl> |
832 </p> |
|
833 <dl> |
638 <dt>Returns:</dt> |
834 <dt>Returns:</dt> |
639 <dd> |
835 <dd> |
640 list of subscriptions |
836 list of subscriptions |
641 </dd> |
837 </dd> |
642 </dl><dl> |
838 </dl> |
|
839 <dl> |
643 <dt>Return Type:</dt> |
840 <dt>Return Type:</dt> |
644 <dd> |
841 <dd> |
645 list of AdBlockSubscription |
842 list of AdBlockSubscription |
646 </dd> |
843 </dd> |
647 </dl><a NAME="AdBlockManager.updateAllSubscriptions" ID="AdBlockManager.updateAllSubscriptions"></a> |
844 </dl> |
|
845 <a NAME="AdBlockManager.updateAllSubscriptions" ID="AdBlockManager.updateAllSubscriptions"></a> |
648 <h4>AdBlockManager.updateAllSubscriptions</h4> |
846 <h4>AdBlockManager.updateAllSubscriptions</h4> |
649 <b>updateAllSubscriptions</b>(<i></i>) |
847 <b>updateAllSubscriptions</b>(<i></i>) |
|
848 |
650 <p> |
849 <p> |
651 Public method to update all subscriptions. |
850 Public method to update all subscriptions. |
652 </p><a NAME="AdBlockManager.useLimitedEasyList" ID="AdBlockManager.useLimitedEasyList"></a> |
851 </p> |
|
852 <a NAME="AdBlockManager.useLimitedEasyList" ID="AdBlockManager.useLimitedEasyList"></a> |
653 <h4>AdBlockManager.useLimitedEasyList</h4> |
853 <h4>AdBlockManager.useLimitedEasyList</h4> |
654 <b>useLimitedEasyList</b>(<i></i>) |
854 <b>useLimitedEasyList</b>(<i></i>) |
|
855 |
655 <p> |
856 <p> |
656 Public method to test, if limited EasyList rules shall be used. |
857 Public method to test, if limited EasyList rules shall be used. |
657 </p><dl> |
858 </p> |
|
859 <dl> |
658 <dt>Returns:</dt> |
860 <dt>Returns:</dt> |
659 <dd> |
861 <dd> |
660 flag indicating limited EasyList rules |
862 flag indicating limited EasyList rules |
661 </dd> |
863 </dd> |
662 </dl><dl> |
864 </dl> |
|
865 <dl> |
663 <dt>Return Type:</dt> |
866 <dt>Return Type:</dt> |
664 <dd> |
867 <dd> |
665 bool |
868 bool |
666 </dd> |
869 </dd> |
667 </dl> |
870 </dl> |