16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.WebBrowser.CookieJar.CookieExceptionsModel</h1> |
23 <h1>eric6.WebBrowser.CookieJar.CookieExceptionsModel</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing the cookie exceptions model. |
26 Module implementing the cookie exceptions model. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#CookieExceptionsModel">CookieExceptionsModel</a></td> |
38 <td><a href="#CookieExceptionsModel">CookieExceptionsModel</a></td> |
34 <td>Class implementing the cookie exceptions model.</td> |
39 <td>Class implementing the cookie exceptions model.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
38 <table> |
43 |
39 <tr><td>None</td></tr> |
44 <table> |
40 </table> |
45 <tr><td>None</td></tr> |
41 <hr /><hr /> |
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
42 <a NAME="CookieExceptionsModel" ID="CookieExceptionsModel"></a> |
49 <a NAME="CookieExceptionsModel" ID="CookieExceptionsModel"></a> |
43 <h2>CookieExceptionsModel</h2> |
50 <h2>CookieExceptionsModel</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing the cookie exceptions model. |
53 Class implementing the cookie exceptions model. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QAbstractTableModel |
56 QAbstractTableModel |
49 <h3>Class Attributes</h3> |
57 <h3>Class Attributes</h3> |
|
58 |
50 <table> |
59 <table> |
51 <tr><td>None</td></tr> |
60 <tr><td>None</td></tr> |
52 </table> |
61 </table> |
53 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
|
63 |
54 <table> |
64 <table> |
55 <tr><td>None</td></tr> |
65 <tr><td>None</td></tr> |
56 </table> |
66 </table> |
57 <h3>Methods</h3> |
67 <h3>Methods</h3> |
58 <table> |
68 |
|
69 <table> |
|
70 |
59 <tr> |
71 <tr> |
60 <td><a href="#CookieExceptionsModel.__init__">CookieExceptionsModel</a></td> |
72 <td><a href="#CookieExceptionsModel.__init__">CookieExceptionsModel</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#CookieExceptionsModel.__addHost">__addHost</a></td> |
76 <td><a href="#CookieExceptionsModel.__addHost">__addHost</a></td> |
64 <td>Private method to add a host to an exception list.</td> |
77 <td>Private method to add a host to an exception list.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#CookieExceptionsModel.addRule">addRule</a></td> |
80 <td><a href="#CookieExceptionsModel.addRule">addRule</a></td> |
67 <td>Public method to add an exception rule.</td> |
81 <td>Public method to add an exception rule.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#CookieExceptionsModel.columnCount">columnCount</a></td> |
84 <td><a href="#CookieExceptionsModel.columnCount">columnCount</a></td> |
70 <td>Public method to get the number of columns of the model.</td> |
85 <td>Public method to get the number of columns of the model.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#CookieExceptionsModel.data">data</a></td> |
88 <td><a href="#CookieExceptionsModel.data">data</a></td> |
73 <td>Public method to get data from the model.</td> |
89 <td>Public method to get data from the model.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#CookieExceptionsModel.headerData">headerData</a></td> |
92 <td><a href="#CookieExceptionsModel.headerData">headerData</a></td> |
76 <td>Public method to get header data from the model.</td> |
93 <td>Public method to get header data from the model.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#CookieExceptionsModel.removeRows">removeRows</a></td> |
96 <td><a href="#CookieExceptionsModel.removeRows">removeRows</a></td> |
79 <td>Public method to remove entries from the model.</td> |
97 <td>Public method to remove entries from the model.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#CookieExceptionsModel.rowCount">rowCount</a></td> |
100 <td><a href="#CookieExceptionsModel.rowCount">rowCount</a></td> |
82 <td>Public method to get the number of rows of the model.</td> |
101 <td>Public method to get the number of rows of the model.</td> |
83 </tr> |
102 </tr> |
84 </table> |
103 </table> |
85 <h3>Static Methods</h3> |
104 <h3>Static Methods</h3> |
86 <table> |
105 |
87 <tr><td>None</td></tr> |
106 <table> |
88 </table> |
107 <tr><td>None</td></tr> |
|
108 </table> |
|
109 |
89 <a NAME="CookieExceptionsModel.__init__" ID="CookieExceptionsModel.__init__"></a> |
110 <a NAME="CookieExceptionsModel.__init__" ID="CookieExceptionsModel.__init__"></a> |
90 <h4>CookieExceptionsModel (Constructor)</h4> |
111 <h4>CookieExceptionsModel (Constructor)</h4> |
91 <b>CookieExceptionsModel</b>(<i>cookieJar, parent=None</i>) |
112 <b>CookieExceptionsModel</b>(<i>cookieJar, parent=None</i>) |
|
113 |
92 <p> |
114 <p> |
93 Constructor |
115 Constructor |
94 </p><dl> |
116 </p> |
|
117 <dl> |
|
118 |
95 <dt><i>cookieJar</i></dt> |
119 <dt><i>cookieJar</i></dt> |
96 <dd> |
120 <dd> |
97 reference to the cookie jar (CookieJar) |
121 reference to the cookie jar (CookieJar) |
98 </dd><dt><i>parent</i></dt> |
122 </dd> |
|
123 <dt><i>parent</i></dt> |
99 <dd> |
124 <dd> |
100 reference to the parent object (QObject) |
125 reference to the parent object (QObject) |
101 </dd> |
126 </dd> |
102 </dl><a NAME="CookieExceptionsModel.__addHost" ID="CookieExceptionsModel.__addHost"></a> |
127 </dl> |
|
128 <a NAME="CookieExceptionsModel.__addHost" ID="CookieExceptionsModel.__addHost"></a> |
103 <h4>CookieExceptionsModel.__addHost</h4> |
129 <h4>CookieExceptionsModel.__addHost</h4> |
104 <b>__addHost</b>(<i>host, addList, removeList1, removeList2</i>) |
130 <b>__addHost</b>(<i>host, addList, removeList1, removeList2</i>) |
|
131 |
105 <p> |
132 <p> |
106 Private method to add a host to an exception list. |
133 Private method to add a host to an exception list. |
107 </p><dl> |
134 </p> |
|
135 <dl> |
|
136 |
108 <dt><i>host</i></dt> |
137 <dt><i>host</i></dt> |
109 <dd> |
138 <dd> |
110 name of the host to add (string) |
139 name of the host to add (string) |
111 </dd><dt><i>addList</i></dt> |
140 </dd> |
|
141 <dt><i>addList</i></dt> |
112 <dd> |
142 <dd> |
113 reference to the list to add it to (list of strings) |
143 reference to the list to add it to (list of strings) |
114 </dd><dt><i>removeList1</i></dt> |
144 </dd> |
|
145 <dt><i>removeList1</i></dt> |
115 <dd> |
146 <dd> |
116 reference to first list to remove it from |
147 reference to first list to remove it from |
117 (list of strings) |
148 (list of strings) |
118 </dd><dt><i>removeList2</i></dt> |
149 </dd> |
|
150 <dt><i>removeList2</i></dt> |
119 <dd> |
151 <dd> |
120 reference to second list to remove it from |
152 reference to second list to remove it from |
121 (list of strings) |
153 (list of strings) |
122 </dd> |
154 </dd> |
123 </dl><a NAME="CookieExceptionsModel.addRule" ID="CookieExceptionsModel.addRule"></a> |
155 </dl> |
|
156 <a NAME="CookieExceptionsModel.addRule" ID="CookieExceptionsModel.addRule"></a> |
124 <h4>CookieExceptionsModel.addRule</h4> |
157 <h4>CookieExceptionsModel.addRule</h4> |
125 <b>addRule</b>(<i>host, rule</i>) |
158 <b>addRule</b>(<i>host, rule</i>) |
|
159 |
126 <p> |
160 <p> |
127 Public method to add an exception rule. |
161 Public method to add an exception rule. |
128 </p><dl> |
162 </p> |
|
163 <dl> |
|
164 |
129 <dt><i>host</i></dt> |
165 <dt><i>host</i></dt> |
130 <dd> |
166 <dd> |
131 name of the host to add a rule for (string) |
167 name of the host to add a rule for (string) |
132 </dd><dt><i>rule</i></dt> |
168 </dd> |
|
169 <dt><i>rule</i></dt> |
133 <dd> |
170 <dd> |
134 type of rule to add (CookieJar.Allow, CookieJar.Block or |
171 type of rule to add (CookieJar.Allow, CookieJar.Block or |
135 CookieJar.AllowForSession) |
172 CookieJar.AllowForSession) |
136 </dd> |
173 </dd> |
137 </dl><a NAME="CookieExceptionsModel.columnCount" ID="CookieExceptionsModel.columnCount"></a> |
174 </dl> |
|
175 <a NAME="CookieExceptionsModel.columnCount" ID="CookieExceptionsModel.columnCount"></a> |
138 <h4>CookieExceptionsModel.columnCount</h4> |
176 <h4>CookieExceptionsModel.columnCount</h4> |
139 <b>columnCount</b>(<i>parent=None</i>) |
177 <b>columnCount</b>(<i>parent=None</i>) |
|
178 |
140 <p> |
179 <p> |
141 Public method to get the number of columns of the model. |
180 Public method to get the number of columns of the model. |
142 </p><dl> |
181 </p> |
|
182 <dl> |
|
183 |
143 <dt><i>parent</i></dt> |
184 <dt><i>parent</i></dt> |
144 <dd> |
185 <dd> |
145 parent index (QModelIndex) |
186 parent index (QModelIndex) |
146 </dd> |
187 </dd> |
147 </dl><dl> |
188 </dl> |
|
189 <dl> |
148 <dt>Returns:</dt> |
190 <dt>Returns:</dt> |
149 <dd> |
191 <dd> |
150 number of columns (integer) |
192 number of columns (integer) |
151 </dd> |
193 </dd> |
152 </dl><a NAME="CookieExceptionsModel.data" ID="CookieExceptionsModel.data"></a> |
194 </dl> |
|
195 <a NAME="CookieExceptionsModel.data" ID="CookieExceptionsModel.data"></a> |
153 <h4>CookieExceptionsModel.data</h4> |
196 <h4>CookieExceptionsModel.data</h4> |
154 <b>data</b>(<i>index, role</i>) |
197 <b>data</b>(<i>index, role</i>) |
|
198 |
155 <p> |
199 <p> |
156 Public method to get data from the model. |
200 Public method to get data from the model. |
157 </p><dl> |
201 </p> |
|
202 <dl> |
|
203 |
158 <dt><i>index</i></dt> |
204 <dt><i>index</i></dt> |
159 <dd> |
205 <dd> |
160 index to get data for (QModelIndex) |
206 index to get data for (QModelIndex) |
161 </dd><dt><i>role</i></dt> |
207 </dd> |
|
208 <dt><i>role</i></dt> |
162 <dd> |
209 <dd> |
163 role of the data to retrieve (integer) |
210 role of the data to retrieve (integer) |
164 </dd> |
211 </dd> |
165 </dl><dl> |
212 </dl> |
|
213 <dl> |
166 <dt>Returns:</dt> |
214 <dt>Returns:</dt> |
167 <dd> |
215 <dd> |
168 requested data |
216 requested data |
169 </dd> |
217 </dd> |
170 </dl><a NAME="CookieExceptionsModel.headerData" ID="CookieExceptionsModel.headerData"></a> |
218 </dl> |
|
219 <a NAME="CookieExceptionsModel.headerData" ID="CookieExceptionsModel.headerData"></a> |
171 <h4>CookieExceptionsModel.headerData</h4> |
220 <h4>CookieExceptionsModel.headerData</h4> |
172 <b>headerData</b>(<i>section, orientation, role</i>) |
221 <b>headerData</b>(<i>section, orientation, role</i>) |
|
222 |
173 <p> |
223 <p> |
174 Public method to get header data from the model. |
224 Public method to get header data from the model. |
175 </p><dl> |
225 </p> |
|
226 <dl> |
|
227 |
176 <dt><i>section</i></dt> |
228 <dt><i>section</i></dt> |
177 <dd> |
229 <dd> |
178 section number (integer) |
230 section number (integer) |
179 </dd><dt><i>orientation</i></dt> |
231 </dd> |
|
232 <dt><i>orientation</i></dt> |
180 <dd> |
233 <dd> |
181 orientation (Qt.Orientation) |
234 orientation (Qt.Orientation) |
182 </dd><dt><i>role</i></dt> |
235 </dd> |
|
236 <dt><i>role</i></dt> |
183 <dd> |
237 <dd> |
184 role of the data to retrieve (integer) |
238 role of the data to retrieve (integer) |
185 </dd> |
239 </dd> |
186 </dl><dl> |
240 </dl> |
|
241 <dl> |
187 <dt>Returns:</dt> |
242 <dt>Returns:</dt> |
188 <dd> |
243 <dd> |
189 requested data |
244 requested data |
190 </dd> |
245 </dd> |
191 </dl><a NAME="CookieExceptionsModel.removeRows" ID="CookieExceptionsModel.removeRows"></a> |
246 </dl> |
|
247 <a NAME="CookieExceptionsModel.removeRows" ID="CookieExceptionsModel.removeRows"></a> |
192 <h4>CookieExceptionsModel.removeRows</h4> |
248 <h4>CookieExceptionsModel.removeRows</h4> |
193 <b>removeRows</b>(<i>row, count, parent=None</i>) |
249 <b>removeRows</b>(<i>row, count, parent=None</i>) |
|
250 |
194 <p> |
251 <p> |
195 Public method to remove entries from the model. |
252 Public method to remove entries from the model. |
196 </p><dl> |
253 </p> |
|
254 <dl> |
|
255 |
197 <dt><i>row</i></dt> |
256 <dt><i>row</i></dt> |
198 <dd> |
257 <dd> |
199 start row (integer) |
258 start row (integer) |
200 </dd><dt><i>count</i></dt> |
259 </dd> |
|
260 <dt><i>count</i></dt> |
201 <dd> |
261 <dd> |
202 number of rows to remove (integer) |
262 number of rows to remove (integer) |
203 </dd><dt><i>parent</i></dt> |
263 </dd> |
|
264 <dt><i>parent</i></dt> |
204 <dd> |
265 <dd> |
205 parent index (QModelIndex) |
266 parent index (QModelIndex) |
206 </dd> |
267 </dd> |
207 </dl><dl> |
268 </dl> |
|
269 <dl> |
208 <dt>Returns:</dt> |
270 <dt>Returns:</dt> |
209 <dd> |
271 <dd> |
210 flag indicating success (boolean) |
272 flag indicating success (boolean) |
211 </dd> |
273 </dd> |
212 </dl><a NAME="CookieExceptionsModel.rowCount" ID="CookieExceptionsModel.rowCount"></a> |
274 </dl> |
|
275 <a NAME="CookieExceptionsModel.rowCount" ID="CookieExceptionsModel.rowCount"></a> |
213 <h4>CookieExceptionsModel.rowCount</h4> |
276 <h4>CookieExceptionsModel.rowCount</h4> |
214 <b>rowCount</b>(<i>parent=None</i>) |
277 <b>rowCount</b>(<i>parent=None</i>) |
|
278 |
215 <p> |
279 <p> |
216 Public method to get the number of rows of the model. |
280 Public method to get the number of rows of the model. |
217 </p><dl> |
281 </p> |
|
282 <dl> |
|
283 |
218 <dt><i>parent</i></dt> |
284 <dt><i>parent</i></dt> |
219 <dd> |
285 <dd> |
220 parent index (QModelIndex) |
286 parent index (QModelIndex) |
221 </dd> |
287 </dd> |
222 </dl><dl> |
288 </dl> |
|
289 <dl> |
223 <dt>Returns:</dt> |
290 <dt>Returns:</dt> |
224 <dd> |
291 <dd> |
225 number of rows (integer) |
292 number of rows (integer) |
226 </dd> |
293 </dd> |
227 </dl> |
294 </dl> |