|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Helpviewer.AdBlock.AdBlockPage</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Helpviewer.AdBlock.AdBlockPage</h1> |
|
12 <p> |
|
13 Module implementing a class to apply AdBlock rules to a web page. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#AdBlockPage">AdBlockPage</a></td> |
|
23 <td>Class to apply AdBlock rules to a web page.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="AdBlockPage" ID="AdBlockPage"></a> |
|
32 <h2>AdBlockPage</h2> |
|
33 <p> |
|
34 Class to apply AdBlock rules to a web page. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QObject |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#AdBlockPage.__checkRule">__checkRule</a></td> |
|
46 <td>Private method to check, if a rule applies to the given web page and host.</td> |
|
47 </tr><tr> |
|
48 <td><a href="#AdBlockPage.applyRulesToPage">applyRulesToPage</a></td> |
|
49 <td>Public method to applay AdBlock rules to a web page.</td> |
|
50 </tr> |
|
51 </table> |
|
52 <a NAME="AdBlockPage.__checkRule" ID="AdBlockPage.__checkRule"></a> |
|
53 <h4>AdBlockPage.__checkRule</h4> |
|
54 <b>__checkRule</b>(<i>rule, page, host</i>) |
|
55 <p> |
|
56 Private method to check, if a rule applies to the given web page and host. |
|
57 </p><dl> |
|
58 <dt><i>rule</i></dt> |
|
59 <dd> |
|
60 reference to the rule to check (AdBlockRule) |
|
61 </dd><dt><i>page</i></dt> |
|
62 <dd> |
|
63 reference to the web page (QWebPage) |
|
64 </dd><dt><i>host</i></dt> |
|
65 <dd> |
|
66 host name (string) |
|
67 </dd> |
|
68 </dl><a NAME="AdBlockPage.applyRulesToPage" ID="AdBlockPage.applyRulesToPage"></a> |
|
69 <h4>AdBlockPage.applyRulesToPage</h4> |
|
70 <b>applyRulesToPage</b>(<i>page</i>) |
|
71 <p> |
|
72 Public method to applay AdBlock rules to a web page. |
|
73 </p><dl> |
|
74 <dt><i>page</i></dt> |
|
75 <dd> |
|
76 reference to the web page (QWebPage) |
|
77 </dd> |
|
78 </dl> |
|
79 <div align="right"><a href="#top">Up</a></div> |
|
80 <hr /> |
|
81 </body></html> |