Documentation/Source/eric4.Helpviewer.CookieJar.CookieExceptionsModel.html

changeset 3
0d9daebf5b8c
equal deleted inserted replaced
2:bc6196164237 3:0d9daebf5b8c
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric4.Helpviewer.CookieJar.CookieExceptionsModel</title>
6 <style>
7 body {
8 background:white;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #4FA4FF; }
14 h2 { color: white; background: #4FA4FF; }
15 h3 { color: white; background: #00557F; }
16 h4 { color: white; background: #00557F; }
17
18 a { color: #AA5500; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric4.Helpviewer.CookieJar.CookieExceptionsModel</h1>
24 <p>
25 Module implementing the cookie exceptions model.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#CookieExceptionsModel">CookieExceptionsModel</a></td>
35 <td>Class implementing the cookie exceptions model.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="CookieExceptionsModel" ID="CookieExceptionsModel"></a>
44 <h2>CookieExceptionsModel</h2>
45 <p>
46 Class implementing the cookie exceptions model.
47 </p>
48 <h3>Derived from</h3>
49 QAbstractTableModel
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Methods</h3>
55 <table>
56 <tr>
57 <td><a href="#CookieExceptionsModel.__init__">CookieExceptionsModel</a></td>
58 <td>Constructor</td>
59 </tr><tr>
60 <td><a href="#CookieExceptionsModel.__addHost">__addHost</a></td>
61 <td>Private method to add a host to an exception list.</td>
62 </tr><tr>
63 <td><a href="#CookieExceptionsModel.addRule">addRule</a></td>
64 <td>Public method to add an exception rule.</td>
65 </tr><tr>
66 <td><a href="#CookieExceptionsModel.columnCount">columnCount</a></td>
67 <td>Public method to get the number of columns of the model.</td>
68 </tr><tr>
69 <td><a href="#CookieExceptionsModel.data">data</a></td>
70 <td>Public method to get data from the model.</td>
71 </tr><tr>
72 <td><a href="#CookieExceptionsModel.headerData">headerData</a></td>
73 <td>Public method to get header data from the model.</td>
74 </tr><tr>
75 <td><a href="#CookieExceptionsModel.removeRows">removeRows</a></td>
76 <td>Public method to remove entries from the model.</td>
77 </tr><tr>
78 <td><a href="#CookieExceptionsModel.rowCount">rowCount</a></td>
79 <td>Public method to get the number of rows of the model.</td>
80 </tr>
81 </table>
82 <a NAME="CookieExceptionsModel.__init__" ID="CookieExceptionsModel.__init__"></a>
83 <h4>CookieExceptionsModel (Constructor)</h4>
84 <b>CookieExceptionsModel</b>(<i>cookieJar, parent = None</i>)
85 <p>
86 Constructor
87 </p><dl>
88 <dt><i>cookieJar</i></dt>
89 <dd>
90 reference to the cookie jar (CookieJar)
91 </dd><dt><i>parent</i></dt>
92 <dd>
93 reference to the parent object (QObject)
94 </dd>
95 </dl><a NAME="CookieExceptionsModel.__addHost" ID="CookieExceptionsModel.__addHost"></a>
96 <h4>CookieExceptionsModel.__addHost</h4>
97 <b>__addHost</b>(<i>host, addList, removeList1, removeList2</i>)
98 <p>
99 Private method to add a host to an exception list.
100 </p><dl>
101 <dt><i>host</i></dt>
102 <dd>
103 name of the host to add (string)
104 </dd><dt><i>addList</i></dt>
105 <dd>
106 reference to the list to add it to (list of strings)
107 </dd><dt><i>removeList1</i></dt>
108 <dd>
109 reference to first list to remove it from (list of strings)
110 </dd><dt><i>removeList2</i></dt>
111 <dd>
112 reference to second list to remove it from (list of strings)
113 </dd>
114 </dl><a NAME="CookieExceptionsModel.addRule" ID="CookieExceptionsModel.addRule"></a>
115 <h4>CookieExceptionsModel.addRule</h4>
116 <b>addRule</b>(<i>host, rule</i>)
117 <p>
118 Public method to add an exception rule.
119 </p><dl>
120 <dt><i>host</i></dt>
121 <dd>
122 name of the host to add a rule for (string)
123 </dd><dt><i>rule</i></dt>
124 <dd>
125 type of rule to add (CookieJar.Allow, CookieJar.Block or
126 CookieJar.AllowForSession)
127 </dd>
128 </dl><a NAME="CookieExceptionsModel.columnCount" ID="CookieExceptionsModel.columnCount"></a>
129 <h4>CookieExceptionsModel.columnCount</h4>
130 <b>columnCount</b>(<i>parent = QModelIndex()</i>)
131 <p>
132 Public method to get the number of columns of the model.
133 </p><dl>
134 <dt><i>parent</i></dt>
135 <dd>
136 parent index (QModelIndex)
137 </dd>
138 </dl><dl>
139 <dt>Returns:</dt>
140 <dd>
141 number of columns (integer)
142 </dd>
143 </dl><a NAME="CookieExceptionsModel.data" ID="CookieExceptionsModel.data"></a>
144 <h4>CookieExceptionsModel.data</h4>
145 <b>data</b>(<i>index, role</i>)
146 <p>
147 Public method to get data from the model.
148 </p><dl>
149 <dt><i>index</i></dt>
150 <dd>
151 index to get data for (QModelIndex)
152 </dd><dt><i>role</i></dt>
153 <dd>
154 role of the data to retrieve (integer)
155 </dd>
156 </dl><dl>
157 <dt>Returns:</dt>
158 <dd>
159 requested data
160 </dd>
161 </dl><a NAME="CookieExceptionsModel.headerData" ID="CookieExceptionsModel.headerData"></a>
162 <h4>CookieExceptionsModel.headerData</h4>
163 <b>headerData</b>(<i>section, orientation, role</i>)
164 <p>
165 Public method to get header data from the model.
166 </p><dl>
167 <dt><i>section</i></dt>
168 <dd>
169 section number (integer)
170 </dd><dt><i>orientation</i></dt>
171 <dd>
172 orientation (Qt.Orientation)
173 </dd><dt><i>role</i></dt>
174 <dd>
175 role of the data to retrieve (integer)
176 </dd>
177 </dl><dl>
178 <dt>Returns:</dt>
179 <dd>
180 requested data
181 </dd>
182 </dl><a NAME="CookieExceptionsModel.removeRows" ID="CookieExceptionsModel.removeRows"></a>
183 <h4>CookieExceptionsModel.removeRows</h4>
184 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>)
185 <p>
186 Public method to remove entries from the model.
187 </p><dl>
188 <dt><i>row</i></dt>
189 <dd>
190 start row (integer)
191 </dd><dt><i>count</i></dt>
192 <dd>
193 number of rows to remove (integer)
194 </dd><dt><i>parent</i></dt>
195 <dd>
196 parent index (QModelIndex)
197 </dd>
198 </dl><dl>
199 <dt>Returns:</dt>
200 <dd>
201 flag indicating success (boolean)
202 </dd>
203 </dl><a NAME="CookieExceptionsModel.rowCount" ID="CookieExceptionsModel.rowCount"></a>
204 <h4>CookieExceptionsModel.rowCount</h4>
205 <b>rowCount</b>(<i>parent = QModelIndex()</i>)
206 <p>
207 Public method to get the number of rows of the model.
208 </p><dl>
209 <dt><i>parent</i></dt>
210 <dd>
211 parent index (QModelIndex)
212 </dd>
213 </dl><dl>
214 <dt>Returns:</dt>
215 <dd>
216 number of columns (integer)
217 </dd>
218 </dl>
219 <div align="right"><a href="#top">Up</a></div>
220 <hr />
221 </body></html>

eric ide

mercurial