|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Helpviewer.Passwords.PasswordReader</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><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Helpviewer.Passwords.PasswordReader</h1> |
|
23 <p> |
|
24 Module implementing a class to read login data files. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#PasswordReader">PasswordReader</a></td> |
|
34 <td>Class implementing a reader object for login data files.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="PasswordReader" ID="PasswordReader"></a> |
|
43 <h2>PasswordReader</h2> |
|
44 <p> |
|
45 Class implementing a reader object for login data files. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QXmlStreamReader |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#PasswordReader.__init__">PasswordReader</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#PasswordReader.__readForms">__readForms</a></td> |
|
64 <td>Private method to read the forms information.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#PasswordReader.__readLogins">__readLogins</a></td> |
|
67 <td>Private method to read the login information.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#PasswordReader.__readNevers">__readNevers</a></td> |
|
70 <td>Private method to read the never URLs.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#PasswordReader.__readPasswords">__readPasswords</a></td> |
|
73 <td>Private method to read and parse the login data file.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#PasswordReader.__skipUnknownElement">__skipUnknownElement</a></td> |
|
76 <td>Private method to skip over all unknown elements.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#PasswordReader.read">read</a></td> |
|
79 <td>Public method to read a login data file.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 <table> |
|
84 <tr><td>None</td></tr> |
|
85 </table> |
|
86 <a NAME="PasswordReader.__init__" ID="PasswordReader.__init__"></a> |
|
87 <h4>PasswordReader (Constructor)</h4> |
|
88 <b>PasswordReader</b>(<i></i>) |
|
89 <p> |
|
90 Constructor |
|
91 </p><a NAME="PasswordReader.__readForms" ID="PasswordReader.__readForms"></a> |
|
92 <h4>PasswordReader.__readForms</h4> |
|
93 <b>__readForms</b>(<i></i>) |
|
94 <p> |
|
95 Private method to read the forms information. |
|
96 </p><a NAME="PasswordReader.__readLogins" ID="PasswordReader.__readLogins"></a> |
|
97 <h4>PasswordReader.__readLogins</h4> |
|
98 <b>__readLogins</b>(<i></i>) |
|
99 <p> |
|
100 Private method to read the login information. |
|
101 </p><a NAME="PasswordReader.__readNevers" ID="PasswordReader.__readNevers"></a> |
|
102 <h4>PasswordReader.__readNevers</h4> |
|
103 <b>__readNevers</b>(<i></i>) |
|
104 <p> |
|
105 Private method to read the never URLs. |
|
106 </p><a NAME="PasswordReader.__readPasswords" ID="PasswordReader.__readPasswords"></a> |
|
107 <h4>PasswordReader.__readPasswords</h4> |
|
108 <b>__readPasswords</b>(<i></i>) |
|
109 <p> |
|
110 Private method to read and parse the login data file. |
|
111 </p><a NAME="PasswordReader.__skipUnknownElement" ID="PasswordReader.__skipUnknownElement"></a> |
|
112 <h4>PasswordReader.__skipUnknownElement</h4> |
|
113 <b>__skipUnknownElement</b>(<i></i>) |
|
114 <p> |
|
115 Private method to skip over all unknown elements. |
|
116 </p><a NAME="PasswordReader.read" ID="PasswordReader.read"></a> |
|
117 <h4>PasswordReader.read</h4> |
|
118 <b>read</b>(<i>fileNameOrDevice</i>) |
|
119 <p> |
|
120 Public method to read a login data file. |
|
121 </p><dl> |
|
122 <dt><i>fileNameOrDevice</i></dt> |
|
123 <dd> |
|
124 name of the file to read (string) |
|
125 or reference to the device to read (QIODevice) |
|
126 </dd> |
|
127 </dl><dl> |
|
128 <dt>Returns:</dt> |
|
129 <dd> |
|
130 tuple containing the logins, forms and never URLs |
|
131 </dd> |
|
132 </dl> |
|
133 <div align="right"><a href="#top">Up</a></div> |
|
134 <hr /> |
|
135 </body></html> |