|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Helpviewer.AdBlock.AdBlockPage</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Helpviewer.AdBlock.AdBlockPage</h1> |
|
23 <p> |
|
24 Module implementing a class to apply AdBlock rules to a web page. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#AdBlockPage">AdBlockPage</a></td> |
|
34 <td>Class to apply AdBlock rules to a web page.</td> |
|
35 </tr><tr> |
|
36 <td><a href="#AdBlockedPageEntry">AdBlockedPageEntry</a></td> |
|
37 <td>Class implementing a data structure for web page rules.</td> |
|
38 </tr> |
|
39 </table> |
|
40 <h3>Functions</h3> |
|
41 <table> |
|
42 <tr><td>None</td></tr> |
|
43 </table> |
|
44 <hr /><hr /> |
|
45 <a NAME="AdBlockPage" ID="AdBlockPage"></a> |
|
46 <h2>AdBlockPage</h2> |
|
47 <p> |
|
48 Class to apply AdBlock rules to a web page. |
|
49 </p> |
|
50 <h3>Derived from</h3> |
|
51 QObject |
|
52 <h3>Class Attributes</h3> |
|
53 <table> |
|
54 <tr><td>None</td></tr> |
|
55 </table> |
|
56 <h3>Class Methods</h3> |
|
57 <table> |
|
58 <tr><td>None</td></tr> |
|
59 </table> |
|
60 <h3>Methods</h3> |
|
61 <table> |
|
62 <tr> |
|
63 <td><a href="#AdBlockPage.hideBlockedPageEntries">hideBlockedPageEntries</a></td> |
|
64 <td>Public method to apply AdBlock rules to a web page.</td> |
|
65 </tr> |
|
66 </table> |
|
67 <h3>Static Methods</h3> |
|
68 <table> |
|
69 <tr><td>None</td></tr> |
|
70 </table> |
|
71 <a NAME="AdBlockPage.hideBlockedPageEntries" ID="AdBlockPage.hideBlockedPageEntries"></a> |
|
72 <h4>AdBlockPage.hideBlockedPageEntries</h4> |
|
73 <b>hideBlockedPageEntries</b>(<i>page</i>) |
|
74 <p> |
|
75 Public method to apply AdBlock rules to a web page. |
|
76 </p><dl> |
|
77 <dt><i>page</i></dt> |
|
78 <dd> |
|
79 reference to the web page (HelpWebPage) |
|
80 </dd> |
|
81 </dl> |
|
82 <div align="right"><a href="#top">Up</a></div> |
|
83 <hr /><hr /> |
|
84 <a NAME="AdBlockedPageEntry" ID="AdBlockedPageEntry"></a> |
|
85 <h2>AdBlockedPageEntry</h2> |
|
86 <p> |
|
87 Class implementing a data structure for web page rules. |
|
88 </p> |
|
89 <h3>Derived from</h3> |
|
90 object |
|
91 <h3>Class Attributes</h3> |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 <h3>Class Methods</h3> |
|
96 <table> |
|
97 <tr><td>None</td></tr> |
|
98 </table> |
|
99 <h3>Methods</h3> |
|
100 <table> |
|
101 <tr> |
|
102 <td><a href="#AdBlockedPageEntry.__init__">AdBlockedPageEntry</a></td> |
|
103 <td>Constructor</td> |
|
104 </tr><tr> |
|
105 <td><a href="#AdBlockedPageEntry.__eq__">__eq__</a></td> |
|
106 <td>Special method to test equality.</td> |
|
107 </tr><tr> |
|
108 <td><a href="#AdBlockedPageEntry.urlString">urlString</a></td> |
|
109 <td>Public method to get the URL as a string.</td> |
|
110 </tr> |
|
111 </table> |
|
112 <h3>Static Methods</h3> |
|
113 <table> |
|
114 <tr><td>None</td></tr> |
|
115 </table> |
|
116 <a NAME="AdBlockedPageEntry.__init__" ID="AdBlockedPageEntry.__init__"></a> |
|
117 <h4>AdBlockedPageEntry (Constructor)</h4> |
|
118 <b>AdBlockedPageEntry</b>(<i>rule, url</i>) |
|
119 <p> |
|
120 Constructor |
|
121 </p><dl> |
|
122 <dt><i>rule</i></dt> |
|
123 <dd> |
|
124 AdBlock rule to add (AdBlockRule) |
|
125 </dd><dt><i>url</i></dt> |
|
126 <dd> |
|
127 URL that matched the rule (QUrl) |
|
128 </dd> |
|
129 </dl><a NAME="AdBlockedPageEntry.__eq__" ID="AdBlockedPageEntry.__eq__"></a> |
|
130 <h4>AdBlockedPageEntry.__eq__</h4> |
|
131 <b>__eq__</b>(<i>other</i>) |
|
132 <p> |
|
133 Special method to test equality. |
|
134 </p><dl> |
|
135 <dt><i>other</i></dt> |
|
136 <dd> |
|
137 reference to the other entry (AdBlockedPageEntry) |
|
138 </dd> |
|
139 </dl><dl> |
|
140 <dt>Returns:</dt> |
|
141 <dd> |
|
142 flag indicating equality (boolean) |
|
143 </dd> |
|
144 </dl><a NAME="AdBlockedPageEntry.urlString" ID="AdBlockedPageEntry.urlString"></a> |
|
145 <h4>AdBlockedPageEntry.urlString</h4> |
|
146 <b>urlString</b>(<i></i>) |
|
147 <p> |
|
148 Public method to get the URL as a string. |
|
149 </p><dl> |
|
150 <dt>Returns:</dt> |
|
151 <dd> |
|
152 URL as a string (string) |
|
153 </dd> |
|
154 </dl> |
|
155 <div align="right"><a href="#top">Up</a></div> |
|
156 <hr /> |
|
157 </body></html> |