Documentation/Source/eric4.Helpviewer.AdBlock.AdBlockPage.html

changeset 3
0d9daebf5b8c
equal deleted inserted replaced
2:bc6196164237 3:0d9daebf5b8c
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>eric4.Helpviewer.AdBlock.AdBlockPage</title>
6 <style>
7 body {
8 background:white;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #4FA4FF; }
14 h2 { color: white; background: #4FA4FF; }
15 h3 { color: white; background: #00557F; }
16 h4 { color: white; background: #00557F; }
17
18 a { color: #AA5500; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric4.Helpviewer.AdBlock.AdBlockPage</h1>
24 <p>
25 Module implementing a class to apply AdBlock rules to a web page.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#AdBlockPage">AdBlockPage</a></td>
35 <td>Class to apply AdBlock rules to a web page.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="AdBlockPage" ID="AdBlockPage"></a>
44 <h2>AdBlockPage</h2>
45 <p>
46 Class to apply AdBlock rules to a web page.
47 </p>
48 <h3>Derived from</h3>
49 QObject
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Methods</h3>
55 <table>
56 <tr>
57 <td><a href="#AdBlockPage.__checkRule">__checkRule</a></td>
58 <td>Private method to check, if a rule applies to the given web page and host.</td>
59 </tr><tr>
60 <td><a href="#AdBlockPage.applyRulesToPage">applyRulesToPage</a></td>
61 <td>Public method to applay AdBlock rules to a web page.</td>
62 </tr>
63 </table>
64 <a NAME="AdBlockPage.__checkRule" ID="AdBlockPage.__checkRule"></a>
65 <h4>AdBlockPage.__checkRule</h4>
66 <b>__checkRule</b>(<i>rule, page, host</i>)
67 <p>
68 Private method to check, if a rule applies to the given web page and host.
69 </p><dl>
70 <dt><i>rule</i></dt>
71 <dd>
72 reference to the rule to check (AdBlockRule)
73 </dd><dt><i>page</i></dt>
74 <dd>
75 reference to the web page (QWebPage)
76 </dd><dt><i>host</i></dt>
77 <dd>
78 host name (string)
79 </dd>
80 </dl><a NAME="AdBlockPage.applyRulesToPage" ID="AdBlockPage.applyRulesToPage"></a>
81 <h4>AdBlockPage.applyRulesToPage</h4>
82 <b>applyRulesToPage</b>(<i>page</i>)
83 <p>
84 Public method to applay AdBlock rules to a web page.
85 </p><dl>
86 <dt><i>page</i></dt>
87 <dd>
88 reference to the web page (QWebPage)
89 </dd>
90 </dl>
91 <div align="right"><a href="#top">Up</a></div>
92 <hr />
93 </body></html>

eric ide

mercurial