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

changeset 1960
d8c45fe8a1b9
parent 1228
7afaf2fca55b
child 2367
78f6c8193d37
equal deleted inserted replaced
1957:2fed7bc4ad83 1960:d8c45fe8a1b9
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#AdBlockPage">AdBlockPage</a></td> 34 <td><a href="#AdBlockPage">AdBlockPage</a></td>
35 <td>Class to apply AdBlock rules to a web page.</td> 35 <td>Class to apply AdBlock rules to a web page.</td>
36 </tr><tr>
37 <td><a href="#AdBlockedPageEntry">AdBlockedPageEntry</a></td>
38 <td>Class implementing a data structure for web page rules.</td>
36 </tr> 39 </tr>
37 </table> 40 </table>
38 <h3>Functions</h3> 41 <h3>Functions</h3>
39 <table> 42 <table>
40 <tr><td>None</td></tr> 43 <tr><td>None</td></tr>
56 <tr><td>None</td></tr> 59 <tr><td>None</td></tr>
57 </table> 60 </table>
58 <h3>Methods</h3> 61 <h3>Methods</h3>
59 <table> 62 <table>
60 <tr> 63 <tr>
61 <td><a href="#AdBlockPage.__checkRule">__checkRule</a></td> 64 <td><a href="#AdBlockPage.hideBlockedPageEntries">hideBlockedPageEntries</a></td>
62 <td>Private method to check, if a rule applies to the given web page and host.</td> 65 <td>Public method to apply AdBlock rules to a web page.</td>
63 </tr><tr>
64 <td><a href="#AdBlockPage.applyRulesToPage">applyRulesToPage</a></td>
65 <td>Public method to applay AdBlock rules to a web page.</td>
66 </tr> 66 </tr>
67 </table> 67 </table>
68 <h3>Static Methods</h3> 68 <h3>Static Methods</h3>
69 <table> 69 <table>
70 <tr><td>None</td></tr> 70 <tr><td>None</td></tr>
71 </table> 71 </table>
72 <a NAME="AdBlockPage.__checkRule" ID="AdBlockPage.__checkRule"></a> 72 <a NAME="AdBlockPage.hideBlockedPageEntries" ID="AdBlockPage.hideBlockedPageEntries"></a>
73 <h4>AdBlockPage.__checkRule</h4> 73 <h4>AdBlockPage.hideBlockedPageEntries</h4>
74 <b>__checkRule</b>(<i>rule, page, host</i>) 74 <b>hideBlockedPageEntries</b>(<i>page</i>)
75 <p> 75 <p>
76 Private method to check, if a rule applies to the given web page and host. 76 Public method to apply AdBlock rules to a web page.
77 </p><dl>
78 <dt><i>page</i></dt>
79 <dd>
80 reference to the web page (HelpWebPage)
81 </dd>
82 </dl>
83 <div align="right"><a href="#top">Up</a></div>
84 <hr /><hr />
85 <a NAME="AdBlockedPageEntry" ID="AdBlockedPageEntry"></a>
86 <h2>AdBlockedPageEntry</h2>
87 <p>
88 Class implementing a data structure for web page rules.
89 </p>
90 <h3>Derived from</h3>
91 object
92 <h3>Class Attributes</h3>
93 <table>
94 <tr><td>None</td></tr>
95 </table>
96 <h3>Class Methods</h3>
97 <table>
98 <tr><td>None</td></tr>
99 </table>
100 <h3>Methods</h3>
101 <table>
102 <tr>
103 <td><a href="#AdBlockedPageEntry.__init__">AdBlockedPageEntry</a></td>
104 <td>Constructor</td>
105 </tr><tr>
106 <td><a href="#AdBlockedPageEntry.__eq__">__eq__</a></td>
107 <td>Special method to test equality.</td>
108 </tr><tr>
109 <td><a href="#AdBlockedPageEntry.urlString">urlString</a></td>
110 <td>Public method to get the URL as a string.</td>
111 </tr>
112 </table>
113 <h3>Static Methods</h3>
114 <table>
115 <tr><td>None</td></tr>
116 </table>
117 <a NAME="AdBlockedPageEntry.__init__" ID="AdBlockedPageEntry.__init__"></a>
118 <h4>AdBlockedPageEntry (Constructor)</h4>
119 <b>AdBlockedPageEntry</b>(<i>rule, url</i>)
120 <p>
121 Constructor
77 </p><dl> 122 </p><dl>
78 <dt><i>rule</i></dt> 123 <dt><i>rule</i></dt>
79 <dd> 124 <dd>
80 reference to the rule to check (AdBlockRule) 125 AdBlock rule to add (AdBlockRule)
81 </dd><dt><i>page</i></dt> 126 </dd><dt><i>url</i></dt>
82 <dd> 127 <dd>
83 reference to the web page (QWebPage) 128 URL that matched the rule (QUrl)
84 </dd><dt><i>host</i></dt> 129 </dd>
130 </dl><a NAME="AdBlockedPageEntry.__eq__" ID="AdBlockedPageEntry.__eq__"></a>
131 <h4>AdBlockedPageEntry.__eq__</h4>
132 <b>__eq__</b>(<i>other</i>)
133 <p>
134 Special method to test equality.
135 </p><dl>
136 <dt><i>other</i></dt>
85 <dd> 137 <dd>
86 host name (string) 138 reference to the other entry (AdBlockedPageEntry)
87 </dd> 139 </dd>
88 </dl><a NAME="AdBlockPage.applyRulesToPage" ID="AdBlockPage.applyRulesToPage"></a> 140 </dl><dl>
89 <h4>AdBlockPage.applyRulesToPage</h4> 141 <dt>Returns:</dt>
90 <b>applyRulesToPage</b>(<i>page</i>) 142 <dd>
143 flag indicating equality (boolean)
144 </dd>
145 </dl><a NAME="AdBlockedPageEntry.urlString" ID="AdBlockedPageEntry.urlString"></a>
146 <h4>AdBlockedPageEntry.urlString</h4>
147 <b>urlString</b>(<i></i>)
91 <p> 148 <p>
92 Public method to applay AdBlock rules to a web page. 149 Public method to get the URL as a string.
93 </p><dl> 150 </p><dl>
94 <dt><i>page</i></dt> 151 <dt>Returns:</dt>
95 <dd> 152 <dd>
96 reference to the web page (QWebPage) 153 URL as a string (string)
97 </dd> 154 </dd>
98 </dl> 155 </dl>
99 <div align="right"><a href="#top">Up</a></div> 156 <div align="right"><a href="#top">Up</a></div>
100 <hr /> 157 <hr />
101 </body></html> 158 </body></html>

eric ide

mercurial