eric7/Documentation/Source/eric7.WebBrowser.Bookmarks.BookmarksImporters.OperaImporter.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.WebBrowser.Bookmarks.BookmarksImporters.OperaImporter</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.Bookmarks.BookmarksImporters.OperaImporter</h1>
24
25 <p>
26 Module implementing an importer for Opera bookmarks.
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="#OperaImporter">OperaImporter</a></td>
39 <td>Class implementing the Opera bookmarks importer.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45
46 <tr>
47 <td><a href="#getImporterInfo">getImporterInfo</a></td>
48 <td>Module function to get information for the given source id.</td>
49 </tr>
50 </table>
51 <hr />
52 <hr />
53 <a NAME="OperaImporter" ID="OperaImporter"></a>
54 <h2>OperaImporter</h2>
55
56 <p>
57 Class implementing the Opera bookmarks importer.
58 </p>
59 <h3>Derived from</h3>
60 BookmarksImporter
61 <h3>Class Attributes</h3>
62
63 <table>
64 <tr><td>None</td></tr>
65 </table>
66 <h3>Class Methods</h3>
67
68 <table>
69 <tr><td>None</td></tr>
70 </table>
71 <h3>Methods</h3>
72
73 <table>
74
75 <tr>
76 <td><a href="#OperaImporter.__init__">OperaImporter</a></td>
77 <td>Constructor</td>
78 </tr>
79 <tr>
80 <td><a href="#OperaImporter.importedBookmarks">importedBookmarks</a></td>
81 <td>Public method to get the imported bookmarks.</td>
82 </tr>
83 <tr>
84 <td><a href="#OperaImporter.open">open</a></td>
85 <td>Public method to open the bookmarks file.</td>
86 </tr>
87 <tr>
88 <td><a href="#OperaImporter.setPath">setPath</a></td>
89 <td>Public method to set the path of the bookmarks file or directory.</td>
90 </tr>
91 </table>
92 <h3>Static Methods</h3>
93
94 <table>
95 <tr><td>None</td></tr>
96 </table>
97
98 <a NAME="OperaImporter.__init__" ID="OperaImporter.__init__"></a>
99 <h4>OperaImporter (Constructor)</h4>
100 <b>OperaImporter</b>(<i>sourceId="", parent=None</i>)
101
102 <p>
103 Constructor
104 </p>
105 <dl>
106
107 <dt><i>sourceId</i></dt>
108 <dd>
109 source ID (string)
110 </dd>
111 <dt><i>parent</i></dt>
112 <dd>
113 reference to the parent object (QObject)
114 </dd>
115 </dl>
116 <a NAME="OperaImporter.importedBookmarks" ID="OperaImporter.importedBookmarks"></a>
117 <h4>OperaImporter.importedBookmarks</h4>
118 <b>importedBookmarks</b>(<i></i>)
119
120 <p>
121 Public method to get the imported bookmarks.
122 </p>
123 <dl>
124 <dt>Return:</dt>
125 <dd>
126 imported bookmarks (BookmarkNode)
127 </dd>
128 </dl>
129 <a NAME="OperaImporter.open" ID="OperaImporter.open"></a>
130 <h4>OperaImporter.open</h4>
131 <b>open</b>(<i></i>)
132
133 <p>
134 Public method to open the bookmarks file.
135 </p>
136 <dl>
137 <dt>Return:</dt>
138 <dd>
139 flag indicating success (boolean)
140 </dd>
141 </dl>
142 <a NAME="OperaImporter.setPath" ID="OperaImporter.setPath"></a>
143 <h4>OperaImporter.setPath</h4>
144 <b>setPath</b>(<i>path</i>)
145
146 <p>
147 Public method to set the path of the bookmarks file or directory.
148 </p>
149 <dl>
150
151 <dt><i>path</i></dt>
152 <dd>
153 bookmarks file or directory (string)
154 </dd>
155 </dl>
156 <div align="right"><a href="#top">Up</a></div>
157 <hr />
158 <hr />
159 <a NAME="getImporterInfo" ID="getImporterInfo"></a>
160 <h2>getImporterInfo</h2>
161 <b>getImporterInfo</b>(<i>sourceId</i>)
162
163 <p>
164 Module function to get information for the given source id.
165 </p>
166 <dl>
167
168 <dt><i>sourceId</i></dt>
169 <dd>
170 id of the browser ("chrome" or "chromium")
171 </dd>
172 </dl>
173 <dl>
174 <dt>Return:</dt>
175 <dd>
176 tuple with an icon (QPixmap), readable name (string), name of
177 the default bookmarks file (string), an info text (string),
178 a prompt (string) and the default directory of the bookmarks file
179 (string)
180 </dd>
181 </dl>
182 <dl>
183
184 <dt>Raises <b>ValueError</b>:</dt>
185 <dd>
186 raised to indicate an invalid browser ID
187 </dd>
188 </dl>
189 <div align="right"><a href="#top">Up</a></div>
190 <hr />
191 </body></html>

eric ide

mercurial