56 </table> |
56 </table> |
57 <h3>Methods</h3> |
57 <h3>Methods</h3> |
58 <table> |
58 <table> |
59 <tr> |
59 <tr> |
60 <td><a href="#LoginForm.__init__">LoginForm</a></td> |
60 <td><a href="#LoginForm.__init__">LoginForm</a></td> |
61 <td>Constructor</td> |
61 <td>Constructor</td> |
62 </tr><tr> |
62 </tr><tr> |
63 <td><a href="#LoginForm.isValid">isValid</a></td> |
63 <td><a href="#LoginForm.isValid">isValid</a></td> |
64 <td>Public method to test for validity.</td> |
64 <td>Public method to test for validity.</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#LoginForm.load">load</a></td> |
66 <td><a href="#LoginForm.load">load</a></td> |
67 <td>Public method to load the form data from a file.</td> |
67 <td>Public method to load the form data from a file.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#LoginForm.save">save</a></td> |
69 <td><a href="#LoginForm.save">save</a></td> |
70 <td>Public method to save the form data to a file.</td> |
70 <td>Public method to save the form data to a file.</td> |
71 </tr> |
71 </tr> |
72 </table> |
72 </table> |
73 <a NAME="LoginForm.__init__" ID="LoginForm.__init__"></a> |
73 <a NAME="LoginForm.__init__" ID="LoginForm.__init__"></a> |
74 <h4>LoginForm (Constructor)</h4> |
74 <h4>LoginForm (Constructor)</h4> |
75 <b>LoginForm</b>(<i></i>) |
75 <b>LoginForm</b>(<i></i>) |
76 <p> |
76 <p> |
77 Constructor |
77 Constructor |
78 </p><a NAME="LoginForm.isValid" ID="LoginForm.isValid"></a> |
78 </p><a NAME="LoginForm.isValid" ID="LoginForm.isValid"></a> |
79 <h4>LoginForm.isValid</h4> |
79 <h4>LoginForm.isValid</h4> |
80 <b>isValid</b>(<i></i>) |
80 <b>isValid</b>(<i></i>) |
81 <p> |
81 <p> |
82 Public method to test for validity. |
82 Public method to test for validity. |
83 </p><dl> |
83 </p><dl> |
84 <dt>Returns:</dt> |
84 <dt>Returns:</dt> |
85 <dd> |
85 <dd> |
86 flag indicating a valid form (boolean) |
86 flag indicating a valid form (boolean) |
87 </dd> |
87 </dd> |
88 </dl><a NAME="LoginForm.load" ID="LoginForm.load"></a> |
88 </dl><a NAME="LoginForm.load" ID="LoginForm.load"></a> |
89 <h4>LoginForm.load</h4> |
89 <h4>LoginForm.load</h4> |
90 <b>load</b>(<i>data</i>) |
90 <b>load</b>(<i>data</i>) |
91 <p> |
91 <p> |
92 Public method to load the form data from a file. |
92 Public method to load the form data from a file. |
93 </p><dl> |
93 </p><dl> |
94 <dt><i>data</i></dt> |
94 <dt><i>data</i></dt> |
95 <dd> |
95 <dd> |
96 list of strings to load data from (list of strings) |
96 list of strings to load data from (list of strings) |
97 </dd> |
97 </dd> |
98 </dl><dl> |
98 </dl><dl> |
99 <dt>Returns:</dt> |
99 <dt>Returns:</dt> |
100 <dd> |
100 <dd> |
101 flag indicating success (boolean) |
101 flag indicating success (boolean) |
102 </dd> |
102 </dd> |
103 </dl><a NAME="LoginForm.save" ID="LoginForm.save"></a> |
103 </dl><a NAME="LoginForm.save" ID="LoginForm.save"></a> |
104 <h4>LoginForm.save</h4> |
104 <h4>LoginForm.save</h4> |
105 <b>save</b>(<i>f</i>) |
105 <b>save</b>(<i>f</i>) |
106 <p> |
106 <p> |
107 Public method to save the form data to a file. |
107 Public method to save the form data to a file. |
108 </p><dl> |
108 </p><dl> |
109 <dt><i>f</i></dt> |
109 <dt><i>f</i></dt> |
110 <dd> |
110 <dd> |
111 file or file like object open for writing |
111 file or file like object open for writing |
112 </dd> |
112 </dd> |
113 </dl><dl> |
113 </dl><dl> |
114 <dt>Returns:</dt> |
114 <dt>Returns:</dt> |
115 <dd> |
115 <dd> |
116 flag indicating success (booelan) |
116 flag indicating success (booelan) |
117 </dd> |
117 </dd> |
118 </dl> |
118 </dl> |
119 <div align="right"><a href="#top">Up</a></div> |
119 <div align="right"><a href="#top">Up</a></div> |
120 <hr /><hr /> |
120 <hr /><hr /> |
121 <a NAME="PasswordManager" ID="PasswordManager"></a> |
121 <a NAME="PasswordManager" ID="PasswordManager"></a> |
122 <h2>PasswordManager</h2> |
122 <h2>PasswordManager</h2> |
123 <p> |
123 <p> |
124 Class implementing the password manager. |
124 Class implementing the password manager. |
125 </p><h4>Signals</h4> |
125 </p><h4>Signals</h4> |
126 <dl> |
126 <dl> |
127 <dt>changed()</dt> |
127 <dt>changed()</dt> |
128 <dd> |
128 <dd> |
129 emitted to indicate a change |
129 emitted to indicate a change |
130 </dd> |
130 </dd> |
131 </dl> |
131 </dl> |
132 <h3>Derived from</h3> |
132 <h3>Derived from</h3> |
133 QObject |
133 QObject |
134 <h3>Class Attributes</h3> |
134 <h3>Class Attributes</h3> |
137 </table> |
137 </table> |
138 <h3>Methods</h3> |
138 <h3>Methods</h3> |
139 <table> |
139 <table> |
140 <tr> |
140 <tr> |
141 <td><a href="#PasswordManager.__init__">PasswordManager</a></td> |
141 <td><a href="#PasswordManager.__init__">PasswordManager</a></td> |
142 <td>Constructor</td> |
142 <td>Constructor</td> |
143 </tr><tr> |
143 </tr><tr> |
144 <td><a href="#PasswordManager.__createKey">__createKey</a></td> |
144 <td><a href="#PasswordManager.__createKey">__createKey</a></td> |
145 <td>Private method to create the key string for the login credentials.</td> |
145 <td>Private method to create the key string for the login credentials.</td> |
146 </tr><tr> |
146 </tr><tr> |
147 <td><a href="#PasswordManager.__extractMultipartQueryItems">__extractMultipartQueryItems</a></td> |
147 <td><a href="#PasswordManager.__extractMultipartQueryItems">__extractMultipartQueryItems</a></td> |
148 <td>Private method to extract the query items for a post operation.</td> |
148 <td>Private method to extract the query items for a post operation.</td> |
149 </tr><tr> |
149 </tr><tr> |
150 <td><a href="#PasswordManager.__findForm">__findForm</a></td> |
150 <td><a href="#PasswordManager.__findForm">__findForm</a></td> |
151 <td>Private method to find the form used for logging in.</td> |
151 <td>Private method to find the form used for logging in.</td> |
152 </tr><tr> |
152 </tr><tr> |
153 <td><a href="#PasswordManager.__load">__load</a></td> |
153 <td><a href="#PasswordManager.__load">__load</a></td> |
154 <td>Private method to load the saved login credentials.</td> |
154 <td>Private method to load the saved login credentials.</td> |
155 </tr><tr> |
155 </tr><tr> |
156 <td><a href="#PasswordManager.__stripUrl">__stripUrl</a></td> |
156 <td><a href="#PasswordManager.__stripUrl">__stripUrl</a></td> |
157 <td>Private method to strip off all unneeded parts of a URL.</td> |
157 <td>Private method to strip off all unneeded parts of a URL.</td> |
158 </tr><tr> |
158 </tr><tr> |
159 <td><a href="#PasswordManager.allSiteNames">allSiteNames</a></td> |
159 <td><a href="#PasswordManager.allSiteNames">allSiteNames</a></td> |
160 <td>Public method to get a list of all site names.</td> |
160 <td>Public method to get a list of all site names.</td> |
161 </tr><tr> |
161 </tr><tr> |
162 <td><a href="#PasswordManager.clear">clear</a></td> |
162 <td><a href="#PasswordManager.clear">clear</a></td> |
163 <td>Public slot to clear the saved passwords.</td> |
163 <td>Public slot to clear the saved passwords.</td> |
164 </tr><tr> |
164 </tr><tr> |
165 <td><a href="#PasswordManager.close">close</a></td> |
165 <td><a href="#PasswordManager.close">close</a></td> |
166 <td>Public method to close the open search engines manager.</td> |
166 <td>Public method to close the open search engines manager.</td> |
167 </tr><tr> |
167 </tr><tr> |
168 <td><a href="#PasswordManager.fill">fill</a></td> |
168 <td><a href="#PasswordManager.fill">fill</a></td> |
169 <td>Public slot to fill login forms with saved data.</td> |
169 <td>Public slot to fill login forms with saved data.</td> |
170 </tr><tr> |
170 </tr><tr> |
171 <td><a href="#PasswordManager.getLogin">getLogin</a></td> |
171 <td><a href="#PasswordManager.getLogin">getLogin</a></td> |
172 <td>Public method to get the login credentials.</td> |
172 <td>Public method to get the login credentials.</td> |
173 </tr><tr> |
173 </tr><tr> |
174 <td><a href="#PasswordManager.post">post</a></td> |
174 <td><a href="#PasswordManager.post">post</a></td> |
175 <td>Public method to check, if the data to be sent contains login data.</td> |
175 <td>Public method to check, if the data to be sent contains login data.</td> |
176 </tr><tr> |
176 </tr><tr> |
177 <td><a href="#PasswordManager.removePassword">removePassword</a></td> |
177 <td><a href="#PasswordManager.removePassword">removePassword</a></td> |
178 <td>Public method to remove a password entry.</td> |
178 <td>Public method to remove a password entry.</td> |
179 </tr><tr> |
179 </tr><tr> |
180 <td><a href="#PasswordManager.save">save</a></td> |
180 <td><a href="#PasswordManager.save">save</a></td> |
181 <td>Public slot to save the login entries to disk.</td> |
181 <td>Public slot to save the login entries to disk.</td> |
182 </tr><tr> |
182 </tr><tr> |
183 <td><a href="#PasswordManager.setLogin">setLogin</a></td> |
183 <td><a href="#PasswordManager.setLogin">setLogin</a></td> |
184 <td>Public method to set the login credentials.</td> |
184 <td>Public method to set the login credentials.</td> |
185 </tr><tr> |
185 </tr><tr> |
186 <td><a href="#PasswordManager.siteInfo">siteInfo</a></td> |
186 <td><a href="#PasswordManager.siteInfo">siteInfo</a></td> |
187 <td>Public method to get a reference to the named site.</td> |
187 <td>Public method to get a reference to the named site.</td> |
188 </tr><tr> |
188 </tr><tr> |
189 <td><a href="#PasswordManager.sitesCount">sitesCount</a></td> |
189 <td><a href="#PasswordManager.sitesCount">sitesCount</a></td> |
190 <td>Public method to get the number of available sites.</td> |
190 <td>Public method to get the number of available sites.</td> |
191 </tr> |
191 </tr> |
192 </table> |
192 </table> |
193 <a NAME="PasswordManager.__init__" ID="PasswordManager.__init__"></a> |
193 <a NAME="PasswordManager.__init__" ID="PasswordManager.__init__"></a> |
194 <h4>PasswordManager (Constructor)</h4> |
194 <h4>PasswordManager (Constructor)</h4> |
195 <b>PasswordManager</b>(<i>parent = None</i>) |
195 <b>PasswordManager</b>(<i>parent = None</i>) |
196 <p> |
196 <p> |
197 Constructor |
197 Constructor |
198 </p><dl> |
198 </p><dl> |
199 <dt><i>parent</i></dt> |
199 <dt><i>parent</i></dt> |
200 <dd> |
200 <dd> |
201 reference to the parent object (QObject) |
201 reference to the parent object (QObject) |
202 </dd> |
202 </dd> |
203 </dl><a NAME="PasswordManager.__createKey" ID="PasswordManager.__createKey"></a> |
203 </dl><a NAME="PasswordManager.__createKey" ID="PasswordManager.__createKey"></a> |
204 <h4>PasswordManager.__createKey</h4> |
204 <h4>PasswordManager.__createKey</h4> |
205 <b>__createKey</b>(<i>url, realm</i>) |
205 <b>__createKey</b>(<i>url, realm</i>) |
206 <p> |
206 <p> |
207 Private method to create the key string for the login credentials. |
207 Private method to create the key string for the login credentials. |
208 </p><dl> |
208 </p><dl> |
209 <dt><i>url</i></dt> |
209 <dt><i>url</i></dt> |
210 <dd> |
210 <dd> |
211 URL to get the credentials for (QUrl) |
211 URL to get the credentials for (QUrl) |
212 </dd><dt><i>realm</i></dt> |
212 </dd><dt><i>realm</i></dt> |
213 <dd> |
213 <dd> |
214 realm to get the credentials for (string) |
214 realm to get the credentials for (string) |
215 </dd> |
215 </dd> |
216 </dl><dl> |
216 </dl><dl> |
217 <dt>Returns:</dt> |
217 <dt>Returns:</dt> |
218 <dd> |
218 <dd> |
219 key string (string) |
219 key string (string) |
220 </dd> |
220 </dd> |
221 </dl><a NAME="PasswordManager.__extractMultipartQueryItems" ID="PasswordManager.__extractMultipartQueryItems"></a> |
221 </dl><a NAME="PasswordManager.__extractMultipartQueryItems" ID="PasswordManager.__extractMultipartQueryItems"></a> |
222 <h4>PasswordManager.__extractMultipartQueryItems</h4> |
222 <h4>PasswordManager.__extractMultipartQueryItems</h4> |
223 <b>__extractMultipartQueryItems</b>(<i>data, boundary</i>) |
223 <b>__extractMultipartQueryItems</b>(<i>data, boundary</i>) |
224 <p> |
224 <p> |
225 Private method to extract the query items for a post operation. |
225 Private method to extract the query items for a post operation. |
226 </p><dl> |
226 </p><dl> |
227 <dt><i>data</i></dt> |
227 <dt><i>data</i></dt> |
228 <dd> |
228 <dd> |
229 data to be sent (QByteArray) |
229 data to be sent (QByteArray) |
230 </dd><dt><i>boundary</i></dt> |
230 </dd><dt><i>boundary</i></dt> |
231 <dd> |
231 <dd> |
232 boundary string (QByteArray) |
232 boundary string (QByteArray) |
233 </dd> |
233 </dd> |
234 </dl><dl> |
234 </dl><dl> |
235 <dt>Returns:</dt> |
235 <dt>Returns:</dt> |
236 <dd> |
236 <dd> |
237 set of name, value pairs (set of tuple of string, string) |
237 set of name, value pairs (set of tuple of string, string) |
238 </dd> |
238 </dd> |
239 </dl><a NAME="PasswordManager.__findForm" ID="PasswordManager.__findForm"></a> |
239 </dl><a NAME="PasswordManager.__findForm" ID="PasswordManager.__findForm"></a> |
240 <h4>PasswordManager.__findForm</h4> |
240 <h4>PasswordManager.__findForm</h4> |
241 <b>__findForm</b>(<i>webPage, data, boundary = None</i>) |
241 <b>__findForm</b>(<i>webPage, data, boundary = None</i>) |
242 <p> |
242 <p> |
243 Private method to find the form used for logging in. |
243 Private method to find the form used for logging in. |
244 </p><dl> |
244 </p><dl> |
245 <dt><i>webPage</i></dt> |
245 <dt><i>webPage</i></dt> |
246 <dd> |
246 <dd> |
247 reference to the web page (QWebPage) |
247 reference to the web page (QWebPage) |
248 </dd><dt><i>data</i></dt> |
248 </dd><dt><i>data</i></dt> |
249 <dd> |
249 <dd> |
250 data to be sent (QByteArray) |
250 data to be sent (QByteArray) |
251 </dd><dt><i>boundary=</i></dt> |
251 </dd><dt><i>boundary=</i></dt> |
252 <dd> |
252 <dd> |
253 boundary string (QByteArray) for multipart encoded data, |
253 boundary string (QByteArray) for multipart encoded data, |
254 None for urlencoded data |
254 None for urlencoded data |
255 </dd> |
255 </dd> |
256 </dl><dl> |
256 </dl><dl> |
257 <dt>Returns:</dt> |
257 <dt>Returns:</dt> |
258 <dd> |
258 <dd> |
259 parsed form (LoginForm) |
259 parsed form (LoginForm) |
260 </dd> |
260 </dd> |
261 </dl><a NAME="PasswordManager.__load" ID="PasswordManager.__load"></a> |
261 </dl><a NAME="PasswordManager.__load" ID="PasswordManager.__load"></a> |
262 <h4>PasswordManager.__load</h4> |
262 <h4>PasswordManager.__load</h4> |
263 <b>__load</b>(<i></i>) |
263 <b>__load</b>(<i></i>) |
264 <p> |
264 <p> |
265 Private method to load the saved login credentials. |
265 Private method to load the saved login credentials. |
266 </p><a NAME="PasswordManager.__stripUrl" ID="PasswordManager.__stripUrl"></a> |
266 </p><a NAME="PasswordManager.__stripUrl" ID="PasswordManager.__stripUrl"></a> |
267 <h4>PasswordManager.__stripUrl</h4> |
267 <h4>PasswordManager.__stripUrl</h4> |
268 <b>__stripUrl</b>(<i>url</i>) |
268 <b>__stripUrl</b>(<i>url</i>) |
269 <p> |
269 <p> |
270 Private method to strip off all unneeded parts of a URL. |
270 Private method to strip off all unneeded parts of a URL. |
271 </p><dl> |
271 </p><dl> |
272 <dt><i>url</i></dt> |
272 <dt><i>url</i></dt> |
273 <dd> |
273 <dd> |
274 URL to be stripped (QUrl) |
274 URL to be stripped (QUrl) |
275 </dd> |
275 </dd> |
276 </dl><dl> |
276 </dl><dl> |
277 <dt>Returns:</dt> |
277 <dt>Returns:</dt> |
278 <dd> |
278 <dd> |
279 stripped URL (QUrl) |
279 stripped URL (QUrl) |
280 </dd> |
280 </dd> |
281 </dl><a NAME="PasswordManager.allSiteNames" ID="PasswordManager.allSiteNames"></a> |
281 </dl><a NAME="PasswordManager.allSiteNames" ID="PasswordManager.allSiteNames"></a> |
282 <h4>PasswordManager.allSiteNames</h4> |
282 <h4>PasswordManager.allSiteNames</h4> |
283 <b>allSiteNames</b>(<i></i>) |
283 <b>allSiteNames</b>(<i></i>) |
284 <p> |
284 <p> |
285 Public method to get a list of all site names. |
285 Public method to get a list of all site names. |
286 </p><dl> |
286 </p><dl> |
287 <dt>Returns:</dt> |
287 <dt>Returns:</dt> |
288 <dd> |
288 <dd> |
289 sorted list of all site names (list of strings) |
289 sorted list of all site names (list of strings) |
290 </dd> |
290 </dd> |
291 </dl><a NAME="PasswordManager.clear" ID="PasswordManager.clear"></a> |
291 </dl><a NAME="PasswordManager.clear" ID="PasswordManager.clear"></a> |
292 <h4>PasswordManager.clear</h4> |
292 <h4>PasswordManager.clear</h4> |
293 <b>clear</b>(<i></i>) |
293 <b>clear</b>(<i></i>) |
294 <p> |
294 <p> |
295 Public slot to clear the saved passwords. |
295 Public slot to clear the saved passwords. |
296 </p><a NAME="PasswordManager.close" ID="PasswordManager.close"></a> |
296 </p><a NAME="PasswordManager.close" ID="PasswordManager.close"></a> |
297 <h4>PasswordManager.close</h4> |
297 <h4>PasswordManager.close</h4> |
298 <b>close</b>(<i></i>) |
298 <b>close</b>(<i></i>) |
299 <p> |
299 <p> |
300 Public method to close the open search engines manager. |
300 Public method to close the open search engines manager. |
301 </p><a NAME="PasswordManager.fill" ID="PasswordManager.fill"></a> |
301 </p><a NAME="PasswordManager.fill" ID="PasswordManager.fill"></a> |
302 <h4>PasswordManager.fill</h4> |
302 <h4>PasswordManager.fill</h4> |
303 <b>fill</b>(<i>page</i>) |
303 <b>fill</b>(<i>page</i>) |
304 <p> |
304 <p> |
305 Public slot to fill login forms with saved data. |
305 Public slot to fill login forms with saved data. |
306 </p><dl> |
306 </p><dl> |
307 <dt><i>page</i></dt> |
307 <dt><i>page</i></dt> |
308 <dd> |
308 <dd> |
309 reference to the web page (QWebPage) |
309 reference to the web page (QWebPage) |
310 </dd> |
310 </dd> |
311 </dl><a NAME="PasswordManager.getLogin" ID="PasswordManager.getLogin"></a> |
311 </dl><a NAME="PasswordManager.getLogin" ID="PasswordManager.getLogin"></a> |
312 <h4>PasswordManager.getLogin</h4> |
312 <h4>PasswordManager.getLogin</h4> |
313 <b>getLogin</b>(<i>url, realm</i>) |
313 <b>getLogin</b>(<i>url, realm</i>) |
314 <p> |
314 <p> |
315 Public method to get the login credentials. |
315 Public method to get the login credentials. |
316 </p><dl> |
316 </p><dl> |
317 <dt><i>url</i></dt> |
317 <dt><i>url</i></dt> |
318 <dd> |
318 <dd> |
319 URL to get the credentials for (QUrl) |
319 URL to get the credentials for (QUrl) |
320 </dd><dt><i>realm</i></dt> |
320 </dd><dt><i>realm</i></dt> |
321 <dd> |
321 <dd> |
322 realm to get the credentials for (string) |
322 realm to get the credentials for (string) |
323 </dd> |
323 </dd> |
324 </dl><dl> |
324 </dl><dl> |
325 <dt>Returns:</dt> |
325 <dt>Returns:</dt> |
326 <dd> |
326 <dd> |
327 tuple containing the user name (string) and password (string) |
327 tuple containing the user name (string) and password (string) |
328 </dd> |
328 </dd> |
329 </dl><a NAME="PasswordManager.post" ID="PasswordManager.post"></a> |
329 </dl><a NAME="PasswordManager.post" ID="PasswordManager.post"></a> |
330 <h4>PasswordManager.post</h4> |
330 <h4>PasswordManager.post</h4> |
331 <b>post</b>(<i>request, data</i>) |
331 <b>post</b>(<i>request, data</i>) |
332 <p> |
332 <p> |
333 Public method to check, if the data to be sent contains login data. |
333 Public method to check, if the data to be sent contains login data. |
334 </p><dl> |
334 </p><dl> |
335 <dt><i>request</i></dt> |
335 <dt><i>request</i></dt> |
336 <dd> |
336 <dd> |
337 reference to the network request (QNetworkRequest) |
337 reference to the network request (QNetworkRequest) |
338 </dd><dt><i>data</i></dt> |
338 </dd><dt><i>data</i></dt> |
339 <dd> |
339 <dd> |
340 data to be sent (QByteArray) |
340 data to be sent (QByteArray) |
341 </dd> |
341 </dd> |
342 </dl><a NAME="PasswordManager.removePassword" ID="PasswordManager.removePassword"></a> |
342 </dl><a NAME="PasswordManager.removePassword" ID="PasswordManager.removePassword"></a> |
343 <h4>PasswordManager.removePassword</h4> |
343 <h4>PasswordManager.removePassword</h4> |
344 <b>removePassword</b>(<i>site</i>) |
344 <b>removePassword</b>(<i>site</i>) |
345 <p> |
345 <p> |
346 Public method to remove a password entry. |
346 Public method to remove a password entry. |
347 </p><dl> |
347 </p><dl> |
348 <dt><i>site</i></dt> |
348 <dt><i>site</i></dt> |
349 <dd> |
349 <dd> |
350 web site name (string) |
350 web site name (string) |
351 </dd> |
351 </dd> |
352 </dl><a NAME="PasswordManager.save" ID="PasswordManager.save"></a> |
352 </dl><a NAME="PasswordManager.save" ID="PasswordManager.save"></a> |
353 <h4>PasswordManager.save</h4> |
353 <h4>PasswordManager.save</h4> |
354 <b>save</b>(<i></i>) |
354 <b>save</b>(<i></i>) |
355 <p> |
355 <p> |
356 Public slot to save the login entries to disk. |
356 Public slot to save the login entries to disk. |
357 </p><a NAME="PasswordManager.setLogin" ID="PasswordManager.setLogin"></a> |
357 </p><a NAME="PasswordManager.setLogin" ID="PasswordManager.setLogin"></a> |
358 <h4>PasswordManager.setLogin</h4> |
358 <h4>PasswordManager.setLogin</h4> |
359 <b>setLogin</b>(<i>url, realm, username, password</i>) |
359 <b>setLogin</b>(<i>url, realm, username, password</i>) |
360 <p> |
360 <p> |
361 Public method to set the login credentials. |
361 Public method to set the login credentials. |
362 </p><dl> |
362 </p><dl> |
363 <dt><i>url</i></dt> |
363 <dt><i>url</i></dt> |
364 <dd> |
364 <dd> |
365 URL to set the credentials for (QUrl) |
365 URL to set the credentials for (QUrl) |
366 </dd><dt><i>realm</i></dt> |
366 </dd><dt><i>realm</i></dt> |
367 <dd> |
367 <dd> |
368 realm to set the credentials for (string) |
368 realm to set the credentials for (string) |
369 </dd><dt><i>username</i></dt> |
369 </dd><dt><i>username</i></dt> |
370 <dd> |
370 <dd> |
371 username for the login (string) |
371 username for the login (string) |
372 </dd><dt><i>password</i></dt> |
372 </dd><dt><i>password</i></dt> |
373 <dd> |
373 <dd> |
374 password for the login (string) |
374 password for the login (string) |
375 </dd> |
375 </dd> |
376 </dl><a NAME="PasswordManager.siteInfo" ID="PasswordManager.siteInfo"></a> |
376 </dl><a NAME="PasswordManager.siteInfo" ID="PasswordManager.siteInfo"></a> |
377 <h4>PasswordManager.siteInfo</h4> |
377 <h4>PasswordManager.siteInfo</h4> |
378 <b>siteInfo</b>(<i>site</i>) |
378 <b>siteInfo</b>(<i>site</i>) |
379 <p> |
379 <p> |
380 Public method to get a reference to the named site. |
380 Public method to get a reference to the named site. |
381 </p><dl> |
381 </p><dl> |
382 <dt><i>site</i></dt> |
382 <dt><i>site</i></dt> |
383 <dd> |
383 <dd> |
384 web site name (string) |
384 web site name (string) |
385 </dd> |
385 </dd> |
386 </dl><dl> |
386 </dl><dl> |
387 <dt>Returns:</dt> |
387 <dt>Returns:</dt> |
388 <dd> |
388 <dd> |
389 tuple containing the user name (string) and password (string) |
389 tuple containing the user name (string) and password (string) |
390 </dd> |
390 </dd> |
391 </dl><a NAME="PasswordManager.sitesCount" ID="PasswordManager.sitesCount"></a> |
391 </dl><a NAME="PasswordManager.sitesCount" ID="PasswordManager.sitesCount"></a> |
392 <h4>PasswordManager.sitesCount</h4> |
392 <h4>PasswordManager.sitesCount</h4> |
393 <b>sitesCount</b>(<i></i>) |
393 <b>sitesCount</b>(<i></i>) |
394 <p> |
394 <p> |
395 Public method to get the number of available sites. |
395 Public method to get the number of available sites. |
396 </p><dl> |
396 </p><dl> |
397 <dt>Returns:</dt> |
397 <dt>Returns:</dt> |
398 <dd> |
398 <dd> |
399 number of sites (integer) |
399 number of sites (integer) |
400 </dd> |
400 </dd> |
401 </dl> |
401 </dl> |
402 <div align="right"><a href="#top">Up</a></div> |
402 <div align="right"><a href="#top">Up</a></div> |
403 <hr /> |
403 <hr /> |
404 </body></html> |
404 </body></html> |