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

changeset 4918
71caf42a13d8
child 5656
9c21b2746218
equal deleted inserted replaced
4917:682750cc7bd5 4918:71caf42a13d8
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.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><a NAME="top" ID="top"></a>
22 <h1>eric6.WebBrowser.CookieJar.CookieExceptionsModel</h1>
23 <p>
24 Module implementing the cookie exceptions model.
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="#CookieExceptionsModel">CookieExceptionsModel</a></td>
34 <td>Class implementing the cookie exceptions model.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="CookieExceptionsModel" ID="CookieExceptionsModel"></a>
43 <h2>CookieExceptionsModel</h2>
44 <p>
45 Class implementing the cookie exceptions model.
46 </p>
47 <h3>Derived from</h3>
48 QAbstractTableModel
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#CookieExceptionsModel.__init__">CookieExceptionsModel</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#CookieExceptionsModel.__addHost">__addHost</a></td>
64 <td>Private method to add a host to an exception list.</td>
65 </tr><tr>
66 <td><a href="#CookieExceptionsModel.addRule">addRule</a></td>
67 <td>Public method to add an exception rule.</td>
68 </tr><tr>
69 <td><a href="#CookieExceptionsModel.columnCount">columnCount</a></td>
70 <td>Public method to get the number of columns of the model.</td>
71 </tr><tr>
72 <td><a href="#CookieExceptionsModel.data">data</a></td>
73 <td>Public method to get data from the model.</td>
74 </tr><tr>
75 <td><a href="#CookieExceptionsModel.headerData">headerData</a></td>
76 <td>Public method to get header data from the model.</td>
77 </tr><tr>
78 <td><a href="#CookieExceptionsModel.removeRows">removeRows</a></td>
79 <td>Public method to remove entries from the model.</td>
80 </tr><tr>
81 <td><a href="#CookieExceptionsModel.rowCount">rowCount</a></td>
82 <td>Public method to get the number of rows of the model.</td>
83 </tr>
84 </table>
85 <h3>Static Methods</h3>
86 <table>
87 <tr><td>None</td></tr>
88 </table>
89 <a NAME="CookieExceptionsModel.__init__" ID="CookieExceptionsModel.__init__"></a>
90 <h4>CookieExceptionsModel (Constructor)</h4>
91 <b>CookieExceptionsModel</b>(<i>cookieJar, parent=None</i>)
92 <p>
93 Constructor
94 </p><dl>
95 <dt><i>cookieJar</i></dt>
96 <dd>
97 reference to the cookie jar (CookieJar)
98 </dd><dt><i>parent</i></dt>
99 <dd>
100 reference to the parent object (QObject)
101 </dd>
102 </dl><a NAME="CookieExceptionsModel.__addHost" ID="CookieExceptionsModel.__addHost"></a>
103 <h4>CookieExceptionsModel.__addHost</h4>
104 <b>__addHost</b>(<i>host, addList, removeList1, removeList2</i>)
105 <p>
106 Private method to add a host to an exception list.
107 </p><dl>
108 <dt><i>host</i></dt>
109 <dd>
110 name of the host to add (string)
111 </dd><dt><i>addList</i></dt>
112 <dd>
113 reference to the list to add it to (list of strings)
114 </dd><dt><i>removeList1</i></dt>
115 <dd>
116 reference to first list to remove it from
117 (list of strings)
118 </dd><dt><i>removeList2</i></dt>
119 <dd>
120 reference to second list to remove it from
121 (list of strings)
122 </dd>
123 </dl><a NAME="CookieExceptionsModel.addRule" ID="CookieExceptionsModel.addRule"></a>
124 <h4>CookieExceptionsModel.addRule</h4>
125 <b>addRule</b>(<i>host, rule</i>)
126 <p>
127 Public method to add an exception rule.
128 </p><dl>
129 <dt><i>host</i></dt>
130 <dd>
131 name of the host to add a rule for (string)
132 </dd><dt><i>rule</i></dt>
133 <dd>
134 type of rule to add (CookieJar.Allow, CookieJar.Block or
135 CookieJar.AllowForSession)
136 </dd>
137 </dl><a NAME="CookieExceptionsModel.columnCount" ID="CookieExceptionsModel.columnCount"></a>
138 <h4>CookieExceptionsModel.columnCount</h4>
139 <b>columnCount</b>(<i>parent=QModelIndex()</i>)
140 <p>
141 Public method to get the number of columns of the model.
142 </p><dl>
143 <dt><i>parent</i></dt>
144 <dd>
145 parent index (QModelIndex)
146 </dd>
147 </dl><dl>
148 <dt>Returns:</dt>
149 <dd>
150 number of columns (integer)
151 </dd>
152 </dl><a NAME="CookieExceptionsModel.data" ID="CookieExceptionsModel.data"></a>
153 <h4>CookieExceptionsModel.data</h4>
154 <b>data</b>(<i>index, role</i>)
155 <p>
156 Public method to get data from the model.
157 </p><dl>
158 <dt><i>index</i></dt>
159 <dd>
160 index to get data for (QModelIndex)
161 </dd><dt><i>role</i></dt>
162 <dd>
163 role of the data to retrieve (integer)
164 </dd>
165 </dl><dl>
166 <dt>Returns:</dt>
167 <dd>
168 requested data
169 </dd>
170 </dl><a NAME="CookieExceptionsModel.headerData" ID="CookieExceptionsModel.headerData"></a>
171 <h4>CookieExceptionsModel.headerData</h4>
172 <b>headerData</b>(<i>section, orientation, role</i>)
173 <p>
174 Public method to get header data from the model.
175 </p><dl>
176 <dt><i>section</i></dt>
177 <dd>
178 section number (integer)
179 </dd><dt><i>orientation</i></dt>
180 <dd>
181 orientation (Qt.Orientation)
182 </dd><dt><i>role</i></dt>
183 <dd>
184 role of the data to retrieve (integer)
185 </dd>
186 </dl><dl>
187 <dt>Returns:</dt>
188 <dd>
189 requested data
190 </dd>
191 </dl><a NAME="CookieExceptionsModel.removeRows" ID="CookieExceptionsModel.removeRows"></a>
192 <h4>CookieExceptionsModel.removeRows</h4>
193 <b>removeRows</b>(<i>row, count, parent=QModelIndex()</i>)
194 <p>
195 Public method to remove entries from the model.
196 </p><dl>
197 <dt><i>row</i></dt>
198 <dd>
199 start row (integer)
200 </dd><dt><i>count</i></dt>
201 <dd>
202 number of rows to remove (integer)
203 </dd><dt><i>parent</i></dt>
204 <dd>
205 parent index (QModelIndex)
206 </dd>
207 </dl><dl>
208 <dt>Returns:</dt>
209 <dd>
210 flag indicating success (boolean)
211 </dd>
212 </dl><a NAME="CookieExceptionsModel.rowCount" ID="CookieExceptionsModel.rowCount"></a>
213 <h4>CookieExceptionsModel.rowCount</h4>
214 <b>rowCount</b>(<i>parent=QModelIndex()</i>)
215 <p>
216 Public method to get the number of rows of the model.
217 </p><dl>
218 <dt><i>parent</i></dt>
219 <dd>
220 parent index (QModelIndex)
221 </dd>
222 </dl><dl>
223 <dt>Returns:</dt>
224 <dd>
225 number of rows (integer)
226 </dd>
227 </dl>
228 <div align="right"><a href="#top">Up</a></div>
229 <hr />
230 </body></html>

eric ide

mercurial