|
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>eric5.Helpviewer.CookieJar.CookieModel</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Helpviewer.CookieJar.CookieModel</h1> |
|
12 <p> |
|
13 Module implementing the cookie model. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#CookieModel">CookieModel</a></td> |
|
23 <td>Class implementing the cookie model.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="CookieModel" ID="CookieModel"></a> |
|
32 <h2>CookieModel</h2> |
|
33 <p> |
|
34 Class implementing the cookie model. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QAbstractTableModel |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#CookieModel.__init__">CookieModel</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#CookieModel.__cookiesChanged">__cookiesChanged</a></td> |
|
49 <td>Private slot handling changes of the cookies list in the cookie jar.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#CookieModel.columnCount">columnCount</a></td> |
|
52 <td>Public method to get the number of columns of the model.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#CookieModel.data">data</a></td> |
|
55 <td>Public method to get data from the model.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#CookieModel.headerData">headerData</a></td> |
|
58 <td>Public method to get header data from the model.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#CookieModel.removeRows">removeRows</a></td> |
|
61 <td>Public method to remove entries from the model.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#CookieModel.rowCount">rowCount</a></td> |
|
64 <td>Public method to get the number of rows of the model.</td> |
|
65 </tr> |
|
66 </table> |
|
67 <a NAME="CookieModel.__init__" ID="CookieModel.__init__"></a> |
|
68 <h4>CookieModel (Constructor)</h4> |
|
69 <b>CookieModel</b>(<i>cookieJar, parent = None</i>) |
|
70 <p> |
|
71 Constructor |
|
72 </p><dl> |
|
73 <dt><i>cookieJar</i></dt> |
|
74 <dd> |
|
75 reference to the cookie jar (CookieJar) |
|
76 </dd><dt><i>parent</i></dt> |
|
77 <dd> |
|
78 reference to the parent object (QObject) |
|
79 </dd> |
|
80 </dl><a NAME="CookieModel.__cookiesChanged" ID="CookieModel.__cookiesChanged"></a> |
|
81 <h4>CookieModel.__cookiesChanged</h4> |
|
82 <b>__cookiesChanged</b>(<i></i>) |
|
83 <p> |
|
84 Private slot handling changes of the cookies list in the cookie jar. |
|
85 </p><a NAME="CookieModel.columnCount" ID="CookieModel.columnCount"></a> |
|
86 <h4>CookieModel.columnCount</h4> |
|
87 <b>columnCount</b>(<i>parent = QModelIndex()</i>) |
|
88 <p> |
|
89 Public method to get the number of columns of the model. |
|
90 </p><dl> |
|
91 <dt><i>parent</i></dt> |
|
92 <dd> |
|
93 parent index (QModelIndex) |
|
94 </dd> |
|
95 </dl><dl> |
|
96 <dt>Returns:</dt> |
|
97 <dd> |
|
98 number of columns (integer) |
|
99 </dd> |
|
100 </dl><a NAME="CookieModel.data" ID="CookieModel.data"></a> |
|
101 <h4>CookieModel.data</h4> |
|
102 <b>data</b>(<i>index, role</i>) |
|
103 <p> |
|
104 Public method to get data from the model. |
|
105 </p><dl> |
|
106 <dt><i>index</i></dt> |
|
107 <dd> |
|
108 index to get data for (QModelIndex) |
|
109 </dd><dt><i>role</i></dt> |
|
110 <dd> |
|
111 role of the data to retrieve (integer) |
|
112 </dd> |
|
113 </dl><dl> |
|
114 <dt>Returns:</dt> |
|
115 <dd> |
|
116 requested data |
|
117 </dd> |
|
118 </dl><a NAME="CookieModel.headerData" ID="CookieModel.headerData"></a> |
|
119 <h4>CookieModel.headerData</h4> |
|
120 <b>headerData</b>(<i>section, orientation, role</i>) |
|
121 <p> |
|
122 Public method to get header data from the model. |
|
123 </p><dl> |
|
124 <dt><i>section</i></dt> |
|
125 <dd> |
|
126 section number (integer) |
|
127 </dd><dt><i>orientation</i></dt> |
|
128 <dd> |
|
129 orientation (Qt.Orientation) |
|
130 </dd><dt><i>role</i></dt> |
|
131 <dd> |
|
132 role of the data to retrieve (integer) |
|
133 </dd> |
|
134 </dl><dl> |
|
135 <dt>Returns:</dt> |
|
136 <dd> |
|
137 requested data |
|
138 </dd> |
|
139 </dl><a NAME="CookieModel.removeRows" ID="CookieModel.removeRows"></a> |
|
140 <h4>CookieModel.removeRows</h4> |
|
141 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) |
|
142 <p> |
|
143 Public method to remove entries from the model. |
|
144 </p><dl> |
|
145 <dt><i>row</i></dt> |
|
146 <dd> |
|
147 start row (integer) |
|
148 </dd><dt><i>count</i></dt> |
|
149 <dd> |
|
150 number of rows to remove (integer) |
|
151 </dd><dt><i>parent</i></dt> |
|
152 <dd> |
|
153 parent index (QModelIndex) |
|
154 </dd> |
|
155 </dl><dl> |
|
156 <dt>Returns:</dt> |
|
157 <dd> |
|
158 flag indicating success (boolean) |
|
159 </dd> |
|
160 </dl><a NAME="CookieModel.rowCount" ID="CookieModel.rowCount"></a> |
|
161 <h4>CookieModel.rowCount</h4> |
|
162 <b>rowCount</b>(<i>parent = QModelIndex()</i>) |
|
163 <p> |
|
164 Public method to get the number of rows of the model. |
|
165 </p><dl> |
|
166 <dt><i>parent</i></dt> |
|
167 <dd> |
|
168 parent index (QModelIndex) |
|
169 </dd> |
|
170 </dl><dl> |
|
171 <dt>Returns:</dt> |
|
172 <dd> |
|
173 number of columns (integer) |
|
174 </dd> |
|
175 </dl> |
|
176 <div align="right"><a href="#top">Up</a></div> |
|
177 <hr /> |
|
178 </body></html> |