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

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

eric ide

mercurial