|
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.CookieModel</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.CookieModel</h1> |
|
24 <p> |
|
25 Module implementing the cookie 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="#CookieModel">CookieModel</a></td> |
|
35 <td>Class implementing the cookie 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="CookieModel" ID="CookieModel"></a> |
|
44 <h2>CookieModel</h2> |
|
45 <p> |
|
46 Class implementing the cookie 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="#CookieModel.__init__">CookieModel</a></td> |
|
58 <td>Constructor</td> |
|
59 </tr><tr> |
|
60 <td><a href="#CookieModel.__cookiesChanged">__cookiesChanged</a></td> |
|
61 <td>Private slot handling changes of the cookies list in the cookie jar.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#CookieModel.columnCount">columnCount</a></td> |
|
64 <td>Public method to get the number of columns of the model.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#CookieModel.data">data</a></td> |
|
67 <td>Public method to get data from the model.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#CookieModel.headerData">headerData</a></td> |
|
70 <td>Public method to get header data from the model.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#CookieModel.removeRows">removeRows</a></td> |
|
73 <td>Public method to remove entries from the model.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#CookieModel.rowCount">rowCount</a></td> |
|
76 <td>Public method to get the number of rows of the model.</td> |
|
77 </tr> |
|
78 </table> |
|
79 <a NAME="CookieModel.__init__" ID="CookieModel.__init__"></a> |
|
80 <h4>CookieModel (Constructor)</h4> |
|
81 <b>CookieModel</b>(<i>cookieJar, parent = None</i>) |
|
82 <p> |
|
83 Constructor |
|
84 </p><dl> |
|
85 <dt><i>cookieJar</i></dt> |
|
86 <dd> |
|
87 reference to the cookie jar (CookieJar) |
|
88 </dd><dt><i>parent</i></dt> |
|
89 <dd> |
|
90 reference to the parent object (QObject) |
|
91 </dd> |
|
92 </dl><a NAME="CookieModel.__cookiesChanged" ID="CookieModel.__cookiesChanged"></a> |
|
93 <h4>CookieModel.__cookiesChanged</h4> |
|
94 <b>__cookiesChanged</b>(<i></i>) |
|
95 <p> |
|
96 Private slot handling changes of the cookies list in the cookie jar. |
|
97 </p><a NAME="CookieModel.columnCount" ID="CookieModel.columnCount"></a> |
|
98 <h4>CookieModel.columnCount</h4> |
|
99 <b>columnCount</b>(<i>parent = QModelIndex()</i>) |
|
100 <p> |
|
101 Public method to get the number of columns of the model. |
|
102 </p><dl> |
|
103 <dt><i>parent</i></dt> |
|
104 <dd> |
|
105 parent index (QModelIndex) |
|
106 </dd> |
|
107 </dl><dl> |
|
108 <dt>Returns:</dt> |
|
109 <dd> |
|
110 number of columns (integer) |
|
111 </dd> |
|
112 </dl><a NAME="CookieModel.data" ID="CookieModel.data"></a> |
|
113 <h4>CookieModel.data</h4> |
|
114 <b>data</b>(<i>index, role</i>) |
|
115 <p> |
|
116 Public method to get data from the model. |
|
117 </p><dl> |
|
118 <dt><i>index</i></dt> |
|
119 <dd> |
|
120 index to get data for (QModelIndex) |
|
121 </dd><dt><i>role</i></dt> |
|
122 <dd> |
|
123 role of the data to retrieve (integer) |
|
124 </dd> |
|
125 </dl><dl> |
|
126 <dt>Returns:</dt> |
|
127 <dd> |
|
128 requested data (QVariant) |
|
129 </dd> |
|
130 </dl><a NAME="CookieModel.headerData" ID="CookieModel.headerData"></a> |
|
131 <h4>CookieModel.headerData</h4> |
|
132 <b>headerData</b>(<i>section, orientation, role</i>) |
|
133 <p> |
|
134 Public method to get header data from the model. |
|
135 </p><dl> |
|
136 <dt><i>section</i></dt> |
|
137 <dd> |
|
138 section number (integer) |
|
139 </dd><dt><i>orientation</i></dt> |
|
140 <dd> |
|
141 orientation (Qt.Orientation) |
|
142 </dd><dt><i>role</i></dt> |
|
143 <dd> |
|
144 role of the data to retrieve (integer) |
|
145 </dd> |
|
146 </dl><dl> |
|
147 <dt>Returns:</dt> |
|
148 <dd> |
|
149 requested data |
|
150 </dd> |
|
151 </dl><a NAME="CookieModel.removeRows" ID="CookieModel.removeRows"></a> |
|
152 <h4>CookieModel.removeRows</h4> |
|
153 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) |
|
154 <p> |
|
155 Public method to remove entries from the model. |
|
156 </p><dl> |
|
157 <dt><i>row</i></dt> |
|
158 <dd> |
|
159 start row (integer) |
|
160 </dd><dt><i>count</i></dt> |
|
161 <dd> |
|
162 number of rows to remove (integer) |
|
163 </dd><dt><i>parent</i></dt> |
|
164 <dd> |
|
165 parent index (QModelIndex) |
|
166 </dd> |
|
167 </dl><dl> |
|
168 <dt>Returns:</dt> |
|
169 <dd> |
|
170 flag indicating success (boolean) |
|
171 </dd> |
|
172 </dl><a NAME="CookieModel.rowCount" ID="CookieModel.rowCount"></a> |
|
173 <h4>CookieModel.rowCount</h4> |
|
174 <b>rowCount</b>(<i>parent = QModelIndex()</i>) |
|
175 <p> |
|
176 Public method to get the number of rows of the model. |
|
177 </p><dl> |
|
178 <dt><i>parent</i></dt> |
|
179 <dd> |
|
180 parent index (QModelIndex) |
|
181 </dd> |
|
182 </dl><dl> |
|
183 <dt>Returns:</dt> |
|
184 <dd> |
|
185 number of columns (integer) |
|
186 </dd> |
|
187 </dl> |
|
188 <div align="right"><a href="#top">Up</a></div> |
|
189 <hr /> |
|
190 </body></html> |