eric7.WebBrowser.Bookmarks.BookmarksImporters.FirefoxImporter
Module implementing an importer for Firefox bookmarks.
Global Attributes
Classes
Functions
FirefoxImporter
Class implementing the Chrome bookmarks importer.
Derived from
BookmarksImporter
Class Attributes
Class Methods
Methods
Static Methods
FirefoxImporter (Constructor)
FirefoxImporter(sourceId="", parent=None)
Constructor
- sourceId (str (optional))
-
source ID (defaults to "")
- parent (QObject (optional))
-
reference to the parent object (defaults to None)
FirefoxImporter.importedBookmarks
importedBookmarks()
Public method to get the imported bookmarks.
- Return:
-
imported bookmarks (BookmarkNode)
FirefoxImporter.open
open()
Public method to open the bookmarks file.
- Return:
-
flag indicating success (boolean)
FirefoxImporter.setPath
setPath(path)
Public method to set the path of the bookmarks file or directory.
- path
-
bookmarks file or directory (string)
createImporter
createImporter(sourceId="", parent=None)
Constructor
- sourceId (str (optional))
-
source ID (defaults to "")
- parent (QObject (optional))
-
reference to the parent object (defaults to None)
- Return:
-
reference to the instantiated importer object
- Return Type:
-
FirefoxImporter
getImporterInfo
getImporterInfo(sourceId)
Module function to get information for the given source id.
- sourceId
-
id of the browser ("chrome" or "chromium")
- Return:
-
tuple with an icon (QPixmap), readable name (string), name of
the default bookmarks file (string), an info text (string),
a prompt (string) and the default directory of the bookmarks file
(string)
- Raises ValueError:
-
raised to indicate an invalid browser ID