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