74 <td>Private method to generate the URL for custom subscriptions.</td> |
74 <td>Private method to generate the URL for custom subscriptions.</td> |
75 </tr><tr> |
75 </tr><tr> |
76 <td><a href="#AdBlockManager.__loadSubscriptions">__loadSubscriptions</a></td> |
76 <td><a href="#AdBlockManager.__loadSubscriptions">__loadSubscriptions</a></td> |
77 <td>Private method to load the set of subscriptions.</td> |
77 <td>Private method to load the set of subscriptions.</td> |
78 </tr><tr> |
78 </tr><tr> |
|
79 <td><a href="#AdBlockManager.addException">addException</a></td> |
|
80 <td>Public method to add an exception.</td> |
|
81 </tr><tr> |
79 <td><a href="#AdBlockManager.addSubscription">addSubscription</a></td> |
82 <td><a href="#AdBlockManager.addSubscription">addSubscription</a></td> |
80 <td>Public method to add an AdBlock subscription.</td> |
83 <td>Public method to add an AdBlock subscription.</td> |
81 </tr><tr> |
84 </tr><tr> |
82 <td><a href="#AdBlockManager.close">close</a></td> |
85 <td><a href="#AdBlockManager.close">close</a></td> |
83 <td>Public method to close the open search engines manager.</td> |
86 <td>Public method to close the open search engines manager.</td> |
89 <td>Public method to get the element hiding rules.</td> |
92 <td>Public method to get the element hiding rules.</td> |
90 </tr><tr> |
93 </tr><tr> |
91 <td><a href="#AdBlockManager.elementHidingRulesForDomain">elementHidingRulesForDomain</a></td> |
94 <td><a href="#AdBlockManager.elementHidingRulesForDomain">elementHidingRulesForDomain</a></td> |
92 <td>Public method to get the element hiding rules for a domain.</td> |
95 <td>Public method to get the element hiding rules for a domain.</td> |
93 </tr><tr> |
96 </tr><tr> |
|
97 <td><a href="#AdBlockManager.exceptions">exceptions</a></td> |
|
98 <td>Public method to get a list of excepted hosts.</td> |
|
99 </tr><tr> |
94 <td><a href="#AdBlockManager.getRequiresSubscriptions">getRequiresSubscriptions</a></td> |
100 <td><a href="#AdBlockManager.getRequiresSubscriptions">getRequiresSubscriptions</a></td> |
95 <td>Public method to get a list of subscriptions, that require the given one.</td> |
101 <td>Public method to get a list of subscriptions, that require the given one.</td> |
96 </tr><tr> |
102 </tr><tr> |
97 <td><a href="#AdBlockManager.isEnabled">isEnabled</a></td> |
103 <td><a href="#AdBlockManager.isEnabled">isEnabled</a></td> |
98 <td>Public method to check, if blocking ads is enabled.</td> |
104 <td>Public method to check, if blocking ads is enabled.</td> |
99 </tr><tr> |
105 </tr><tr> |
|
106 <td><a href="#AdBlockManager.isHostExcepted">isHostExcepted</a></td> |
|
107 <td>Public slot to check, if a host is excepted.</td> |
|
108 </tr><tr> |
100 <td><a href="#AdBlockManager.load">load</a></td> |
109 <td><a href="#AdBlockManager.load">load</a></td> |
101 <td>Public method to load the AdBlock subscriptions.</td> |
110 <td>Public method to load the AdBlock subscriptions.</td> |
102 </tr><tr> |
111 </tr><tr> |
103 <td><a href="#AdBlockManager.loadRequiredSubscription">loadRequiredSubscription</a></td> |
112 <td><a href="#AdBlockManager.loadRequiredSubscription">loadRequiredSubscription</a></td> |
104 <td>Public method to load a subscription required by another one.</td> |
113 <td>Public method to load a subscription required by another one.</td> |
107 <td>Public method to get a reference to the network block object.</td> |
116 <td>Public method to get a reference to the network block object.</td> |
108 </tr><tr> |
117 </tr><tr> |
109 <td><a href="#AdBlockManager.page">page</a></td> |
118 <td><a href="#AdBlockManager.page">page</a></td> |
110 <td>Public method to get a reference to the page block object.</td> |
119 <td>Public method to get a reference to the page block object.</td> |
111 </tr><tr> |
120 </tr><tr> |
|
121 <td><a href="#AdBlockManager.removeException">removeException</a></td> |
|
122 <td>Public method to remove an exception.</td> |
|
123 </tr><tr> |
112 <td><a href="#AdBlockManager.removeSubscription">removeSubscription</a></td> |
124 <td><a href="#AdBlockManager.removeSubscription">removeSubscription</a></td> |
113 <td>Public method to remove an AdBlock subscription.</td> |
125 <td>Public method to remove an AdBlock subscription.</td> |
114 </tr><tr> |
126 </tr><tr> |
115 <td><a href="#AdBlockManager.save">save</a></td> |
127 <td><a href="#AdBlockManager.save">save</a></td> |
116 <td>Public method to save the AdBlock subscriptions.</td> |
128 <td>Public method to save the AdBlock subscriptions.</td> |
117 </tr><tr> |
129 </tr><tr> |
118 <td><a href="#AdBlockManager.setEnabled">setEnabled</a></td> |
130 <td><a href="#AdBlockManager.setEnabled">setEnabled</a></td> |
119 <td>Public slot to set the enabled state.</td> |
131 <td>Public slot to set the enabled state.</td> |
120 </tr><tr> |
132 </tr><tr> |
|
133 <td><a href="#AdBlockManager.setExceptions">setExceptions</a></td> |
|
134 <td>Public method to set the list of excepted hosts.</td> |
|
135 </tr><tr> |
121 <td><a href="#AdBlockManager.showDialog">showDialog</a></td> |
136 <td><a href="#AdBlockManager.showDialog">showDialog</a></td> |
122 <td>Public slot to show the AdBlock subscription management dialog.</td> |
137 <td>Public slot to show the AdBlock subscription management dialog.</td> |
|
138 </tr><tr> |
|
139 <td><a href="#AdBlockManager.showExceptionsDialog">showExceptionsDialog</a></td> |
|
140 <td>Public method to show the AdBlock Exceptions dialog.</td> |
123 </tr><tr> |
141 </tr><tr> |
124 <td><a href="#AdBlockManager.showRule">showRule</a></td> |
142 <td><a href="#AdBlockManager.showRule">showRule</a></td> |
125 <td>Public slot to show an AdBlock rule.</td> |
143 <td>Public slot to show an AdBlock rule.</td> |
126 </tr><tr> |
144 </tr><tr> |
127 <td><a href="#AdBlockManager.subscription">subscription</a></td> |
145 <td><a href="#AdBlockManager.subscription">subscription</a></td> |
171 </dl><a NAME="AdBlockManager.__loadSubscriptions" ID="AdBlockManager.__loadSubscriptions"></a> |
189 </dl><a NAME="AdBlockManager.__loadSubscriptions" ID="AdBlockManager.__loadSubscriptions"></a> |
172 <h4>AdBlockManager.__loadSubscriptions</h4> |
190 <h4>AdBlockManager.__loadSubscriptions</h4> |
173 <b>__loadSubscriptions</b>(<i></i>) |
191 <b>__loadSubscriptions</b>(<i></i>) |
174 <p> |
192 <p> |
175 Private method to load the set of subscriptions. |
193 Private method to load the set of subscriptions. |
176 </p><a NAME="AdBlockManager.addSubscription" ID="AdBlockManager.addSubscription"></a> |
194 </p><a NAME="AdBlockManager.addException" ID="AdBlockManager.addException"></a> |
|
195 <h4>AdBlockManager.addException</h4> |
|
196 <b>addException</b>(<i>host</i>) |
|
197 <p> |
|
198 Public method to add an exception. |
|
199 </p><dl> |
|
200 <dt><i>host</i></dt> |
|
201 <dd> |
|
202 to be excepted (string) |
|
203 </dd> |
|
204 </dl><a NAME="AdBlockManager.addSubscription" ID="AdBlockManager.addSubscription"></a> |
177 <h4>AdBlockManager.addSubscription</h4> |
205 <h4>AdBlockManager.addSubscription</h4> |
178 <b>addSubscription</b>(<i>subscription</i>) |
206 <b>addSubscription</b>(<i>subscription</i>) |
179 <p> |
207 <p> |
180 Public method to add an AdBlock subscription. |
208 Public method to add an AdBlock subscription. |
181 </p><dl> |
209 </p><dl> |
221 </dl><dl> |
249 </dl><dl> |
222 <dt>Returns:</dt> |
250 <dt>Returns:</dt> |
223 <dd> |
251 <dd> |
224 element hiding rules (string) |
252 element hiding rules (string) |
225 </dd> |
253 </dd> |
|
254 </dl><a NAME="AdBlockManager.exceptions" ID="AdBlockManager.exceptions"></a> |
|
255 <h4>AdBlockManager.exceptions</h4> |
|
256 <b>exceptions</b>(<i></i>) |
|
257 <p> |
|
258 Public method to get a list of excepted hosts. |
|
259 </p><dl> |
|
260 <dt>Returns:</dt> |
|
261 <dd> |
|
262 list of excepted hosts (list of string) |
|
263 </dd> |
226 </dl><a NAME="AdBlockManager.getRequiresSubscriptions" ID="AdBlockManager.getRequiresSubscriptions"></a> |
264 </dl><a NAME="AdBlockManager.getRequiresSubscriptions" ID="AdBlockManager.getRequiresSubscriptions"></a> |
227 <h4>AdBlockManager.getRequiresSubscriptions</h4> |
265 <h4>AdBlockManager.getRequiresSubscriptions</h4> |
228 <b>getRequiresSubscriptions</b>(<i>subscription</i>) |
266 <b>getRequiresSubscriptions</b>(<i>subscription</i>) |
229 <p> |
267 <p> |
230 Public method to get a list of subscriptions, that require the given one. |
268 Public method to get a list of subscriptions, that require the given one. |
245 Public method to check, if blocking ads is enabled. |
283 Public method to check, if blocking ads is enabled. |
246 </p><dl> |
284 </p><dl> |
247 <dt>Returns:</dt> |
285 <dt>Returns:</dt> |
248 <dd> |
286 <dd> |
249 flag indicating the enabled state (boolean) |
287 flag indicating the enabled state (boolean) |
|
288 </dd> |
|
289 </dl><a NAME="AdBlockManager.isHostExcepted" ID="AdBlockManager.isHostExcepted"></a> |
|
290 <h4>AdBlockManager.isHostExcepted</h4> |
|
291 <b>isHostExcepted</b>(<i>host</i>) |
|
292 <p> |
|
293 Public slot to check, if a host is excepted. |
|
294 </p><dl> |
|
295 <dt><i>host</i></dt> |
|
296 <dd> |
|
297 host to check (string) |
|
298 </dd> |
|
299 </dl><dl> |
|
300 <dt>Returns:</dt> |
|
301 <dd> |
|
302 flag indicating an exception (boolean) |
250 </dd> |
303 </dd> |
251 </dl><a NAME="AdBlockManager.load" ID="AdBlockManager.load"></a> |
304 </dl><a NAME="AdBlockManager.load" ID="AdBlockManager.load"></a> |
252 <h4>AdBlockManager.load</h4> |
305 <h4>AdBlockManager.load</h4> |
253 <b>load</b>(<i></i>) |
306 <b>load</b>(<i></i>) |
254 <p> |
307 <p> |
284 </p><dl> |
337 </p><dl> |
285 <dt>Returns:</dt> |
338 <dt>Returns:</dt> |
286 <dd> |
339 <dd> |
287 reference to the page block object (AdBlockPage) |
340 reference to the page block object (AdBlockPage) |
288 </dd> |
341 </dd> |
|
342 </dl><a NAME="AdBlockManager.removeException" ID="AdBlockManager.removeException"></a> |
|
343 <h4>AdBlockManager.removeException</h4> |
|
344 <b>removeException</b>(<i>host</i>) |
|
345 <p> |
|
346 Public method to remove an exception. |
|
347 </p><dl> |
|
348 <dt><i>host</i></dt> |
|
349 <dd> |
|
350 to be removed from the list of exceptions (string) |
|
351 </dd> |
289 </dl><a NAME="AdBlockManager.removeSubscription" ID="AdBlockManager.removeSubscription"></a> |
352 </dl><a NAME="AdBlockManager.removeSubscription" ID="AdBlockManager.removeSubscription"></a> |
290 <h4>AdBlockManager.removeSubscription</h4> |
353 <h4>AdBlockManager.removeSubscription</h4> |
291 <b>removeSubscription</b>(<i>subscription, emitSignal=True</i>) |
354 <b>removeSubscription</b>(<i>subscription, emitSignal=True</i>) |
292 <p> |
355 <p> |
293 Public method to remove an AdBlock subscription. |
356 Public method to remove an AdBlock subscription. |
312 </p><dl> |
375 </p><dl> |
313 <dt><i>enabled</i></dt> |
376 <dt><i>enabled</i></dt> |
314 <dd> |
377 <dd> |
315 flag indicating the enabled state (boolean) |
378 flag indicating the enabled state (boolean) |
316 </dd> |
379 </dd> |
|
380 </dl><a NAME="AdBlockManager.setExceptions" ID="AdBlockManager.setExceptions"></a> |
|
381 <h4>AdBlockManager.setExceptions</h4> |
|
382 <b>setExceptions</b>(<i>hosts</i>) |
|
383 <p> |
|
384 Public method to set the list of excepted hosts. |
|
385 </p><dl> |
|
386 <dt><i>hosts</i></dt> |
|
387 <dd> |
|
388 list of excepted hosts (list of string) |
|
389 </dd> |
317 </dl><a NAME="AdBlockManager.showDialog" ID="AdBlockManager.showDialog"></a> |
390 </dl><a NAME="AdBlockManager.showDialog" ID="AdBlockManager.showDialog"></a> |
318 <h4>AdBlockManager.showDialog</h4> |
391 <h4>AdBlockManager.showDialog</h4> |
319 <b>showDialog</b>(<i></i>) |
392 <b>showDialog</b>(<i></i>) |
320 <p> |
393 <p> |
321 Public slot to show the AdBlock subscription management dialog. |
394 Public slot to show the AdBlock subscription management dialog. |
322 </p><a NAME="AdBlockManager.showRule" ID="AdBlockManager.showRule"></a> |
395 </p><dl> |
|
396 <dt>Returns:</dt> |
|
397 <dd> |
|
398 reference to the dialog (AdBlockDialog) |
|
399 </dd> |
|
400 </dl><a NAME="AdBlockManager.showExceptionsDialog" ID="AdBlockManager.showExceptionsDialog"></a> |
|
401 <h4>AdBlockManager.showExceptionsDialog</h4> |
|
402 <b>showExceptionsDialog</b>(<i></i>) |
|
403 <p> |
|
404 Public method to show the AdBlock Exceptions dialog. |
|
405 </p><dl> |
|
406 <dt>Returns:</dt> |
|
407 <dd> |
|
408 reference to the exceptions dialog (AdBlockExceptionsDialog) |
|
409 </dd> |
|
410 </dl><a NAME="AdBlockManager.showRule" ID="AdBlockManager.showRule"></a> |
323 <h4>AdBlockManager.showRule</h4> |
411 <h4>AdBlockManager.showRule</h4> |
324 <b>showRule</b>(<i></i>) |
412 <b>showRule</b>(<i></i>) |
325 <p> |
413 <p> |
326 Public slot to show an AdBlock rule. |
414 Public slot to show an AdBlock rule. |
327 </p><a NAME="AdBlockManager.subscription" ID="AdBlockManager.subscription"></a> |
415 </p><a NAME="AdBlockManager.subscription" ID="AdBlockManager.subscription"></a> |