eric7/Documentation/Source/eric7.WebBrowser.CookieJar.CookieExceptionsModel.html

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

eric ide

mercurial