18 |
18 |
19 def getImporterInfo(id): |
19 def getImporterInfo(id): |
20 """ |
20 """ |
21 Module function to get information for the given HTML source id. |
21 Module function to get information for the given HTML source id. |
22 |
22 |
|
23 @param id id of the browser ("chrome" or "chromium") |
23 @return tuple with an icon (QPixmap), readable name (string), name of |
24 @return tuple with an icon (QPixmap), readable name (string), name of |
24 the default bookmarks file (string), an info text (string), |
25 the default bookmarks file (string), an info text (string), |
25 a prompt (string) and the default directory of the bookmarks file (string) |
26 a prompt (string) and the default directory of the bookmarks file (string) |
|
27 @exception ValueError raised to indicate an invalid browser ID |
26 """ |
28 """ |
27 if id == "html": |
29 if id == "html": |
28 return ( |
30 return ( |
29 UI.PixmapCache.getPixmap("html.png"), |
31 UI.PixmapCache.getPixmap("html.png"), |
30 "HTML Netscape Bookmarks", |
32 "HTML Netscape Bookmarks", |