|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.Passwords.PasswordModel</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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.WebBrowser.Passwords.PasswordModel</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a model for password management. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#PasswordModel">PasswordModel</a></td> |
|
39 <td>Class implementing a model for password management.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="PasswordModel" ID="PasswordModel"></a> |
|
50 <h2>PasswordModel</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a model for password management. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QAbstractTableModel |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#PasswordModel.__init__">PasswordModel</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#PasswordModel.__passwordsChanged">__passwordsChanged</a></td> |
|
77 <td>Private slot handling a change of the registered passwords.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#PasswordModel.columnCount">columnCount</a></td> |
|
81 <td>Public method to get the number of columns of the model.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#PasswordModel.data">data</a></td> |
|
85 <td>Public method to get data from the model.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#PasswordModel.headerData">headerData</a></td> |
|
89 <td>Public method to get the header data.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#PasswordModel.removeRows">removeRows</a></td> |
|
93 <td>Public method to remove entries from the model.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#PasswordModel.rowCount">rowCount</a></td> |
|
97 <td>Public method to get the number of rows of the model.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#PasswordModel.setShowPasswords">setShowPasswords</a></td> |
|
101 <td>Public methods to show passwords.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#PasswordModel.showPasswords">showPasswords</a></td> |
|
105 <td>Public method to indicate, if passwords shall be shown.</td> |
|
106 </tr> |
|
107 </table> |
|
108 <h3>Static Methods</h3> |
|
109 |
|
110 <table> |
|
111 <tr><td>None</td></tr> |
|
112 </table> |
|
113 |
|
114 <a NAME="PasswordModel.__init__" ID="PasswordModel.__init__"></a> |
|
115 <h4>PasswordModel (Constructor)</h4> |
|
116 <b>PasswordModel</b>(<i>manager, parent=None</i>) |
|
117 |
|
118 <p> |
|
119 Constructor |
|
120 </p> |
|
121 <dl> |
|
122 |
|
123 <dt><i>manager</i></dt> |
|
124 <dd> |
|
125 reference to the password manager (PasswordManager) |
|
126 </dd> |
|
127 <dt><i>parent</i></dt> |
|
128 <dd> |
|
129 reference to the parent object (QObject) |
|
130 </dd> |
|
131 </dl> |
|
132 <a NAME="PasswordModel.__passwordsChanged" ID="PasswordModel.__passwordsChanged"></a> |
|
133 <h4>PasswordModel.__passwordsChanged</h4> |
|
134 <b>__passwordsChanged</b>(<i></i>) |
|
135 |
|
136 <p> |
|
137 Private slot handling a change of the registered passwords. |
|
138 </p> |
|
139 <a NAME="PasswordModel.columnCount" ID="PasswordModel.columnCount"></a> |
|
140 <h4>PasswordModel.columnCount</h4> |
|
141 <b>columnCount</b>(<i>parent=None</i>) |
|
142 |
|
143 <p> |
|
144 Public method to get the number of columns of the model. |
|
145 </p> |
|
146 <dl> |
|
147 |
|
148 <dt><i>parent</i></dt> |
|
149 <dd> |
|
150 parent index (QModelIndex) (Unused) |
|
151 </dd> |
|
152 </dl> |
|
153 <dl> |
|
154 <dt>Return:</dt> |
|
155 <dd> |
|
156 number of columns (integer) |
|
157 </dd> |
|
158 </dl> |
|
159 <a NAME="PasswordModel.data" ID="PasswordModel.data"></a> |
|
160 <h4>PasswordModel.data</h4> |
|
161 <b>data</b>(<i>index, role</i>) |
|
162 |
|
163 <p> |
|
164 Public method to get data from the model. |
|
165 </p> |
|
166 <dl> |
|
167 |
|
168 <dt><i>index</i></dt> |
|
169 <dd> |
|
170 index to get data for (QModelIndex) |
|
171 </dd> |
|
172 <dt><i>role</i></dt> |
|
173 <dd> |
|
174 role of the data to retrieve (integer) |
|
175 </dd> |
|
176 </dl> |
|
177 <dl> |
|
178 <dt>Return:</dt> |
|
179 <dd> |
|
180 requested data |
|
181 </dd> |
|
182 </dl> |
|
183 <a NAME="PasswordModel.headerData" ID="PasswordModel.headerData"></a> |
|
184 <h4>PasswordModel.headerData</h4> |
|
185 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) |
|
186 |
|
187 <p> |
|
188 Public method to get the header data. |
|
189 </p> |
|
190 <dl> |
|
191 |
|
192 <dt><i>section</i></dt> |
|
193 <dd> |
|
194 section number (integer) |
|
195 </dd> |
|
196 <dt><i>orientation</i></dt> |
|
197 <dd> |
|
198 header orientation (Qt.Orientation) |
|
199 </dd> |
|
200 <dt><i>role</i></dt> |
|
201 <dd> |
|
202 data role (Qt.ItemDataRole) |
|
203 </dd> |
|
204 </dl> |
|
205 <dl> |
|
206 <dt>Return:</dt> |
|
207 <dd> |
|
208 header data |
|
209 </dd> |
|
210 </dl> |
|
211 <a NAME="PasswordModel.removeRows" ID="PasswordModel.removeRows"></a> |
|
212 <h4>PasswordModel.removeRows</h4> |
|
213 <b>removeRows</b>(<i>row, count, parent=None</i>) |
|
214 |
|
215 <p> |
|
216 Public method to remove entries from the model. |
|
217 </p> |
|
218 <dl> |
|
219 |
|
220 <dt><i>row</i></dt> |
|
221 <dd> |
|
222 start row (integer) |
|
223 </dd> |
|
224 <dt><i>count</i></dt> |
|
225 <dd> |
|
226 number of rows to remove (integer) |
|
227 </dd> |
|
228 <dt><i>parent</i></dt> |
|
229 <dd> |
|
230 parent index (QModelIndex) |
|
231 </dd> |
|
232 </dl> |
|
233 <dl> |
|
234 <dt>Return:</dt> |
|
235 <dd> |
|
236 flag indicating success (boolean) |
|
237 </dd> |
|
238 </dl> |
|
239 <a NAME="PasswordModel.rowCount" ID="PasswordModel.rowCount"></a> |
|
240 <h4>PasswordModel.rowCount</h4> |
|
241 <b>rowCount</b>(<i>parent=None</i>) |
|
242 |
|
243 <p> |
|
244 Public method to get the number of rows of the model. |
|
245 </p> |
|
246 <dl> |
|
247 |
|
248 <dt><i>parent</i></dt> |
|
249 <dd> |
|
250 parent index (QModelIndex) |
|
251 </dd> |
|
252 </dl> |
|
253 <dl> |
|
254 <dt>Return:</dt> |
|
255 <dd> |
|
256 number of rows (integer) |
|
257 </dd> |
|
258 </dl> |
|
259 <a NAME="PasswordModel.setShowPasswords" ID="PasswordModel.setShowPasswords"></a> |
|
260 <h4>PasswordModel.setShowPasswords</h4> |
|
261 <b>setShowPasswords</b>(<i>on</i>) |
|
262 |
|
263 <p> |
|
264 Public methods to show passwords. |
|
265 </p> |
|
266 <dl> |
|
267 |
|
268 <dt><i>on</i></dt> |
|
269 <dd> |
|
270 flag indicating if passwords shall be shown (boolean) |
|
271 </dd> |
|
272 </dl> |
|
273 <a NAME="PasswordModel.showPasswords" ID="PasswordModel.showPasswords"></a> |
|
274 <h4>PasswordModel.showPasswords</h4> |
|
275 <b>showPasswords</b>(<i></i>) |
|
276 |
|
277 <p> |
|
278 Public method to indicate, if passwords shall be shown. |
|
279 </p> |
|
280 <dl> |
|
281 <dt>Return:</dt> |
|
282 <dd> |
|
283 flag indicating if passwords shall be shown (boolean) |
|
284 </dd> |
|
285 </dl> |
|
286 <div align="right"><a href="#top">Up</a></div> |
|
287 <hr /> |
|
288 </body></html> |