eric7.WebBrowser.Bookmarks.BookmarksImporters.__init__

Package implementing bookmarks importers for various sources.

Global Attributes

None

Classes

None

Functions

getImporter Module function to get an importer for the given source id.
getImporterInfo Module function to get information for the given source id.
getImporterModule Function to get a bookmark importer module for a given source.
getImporters Module function to get a list of supported importers.


getImporter

getImporter(sourceId, parent=None)

Module function to get an importer for the given source id.

sourceId (str)
source id to get an importer for
parent (QObject)
reference to the parent object
Return:
bookmarks importer
Return Type:
BookmarksImporter
Up


getImporterInfo

getImporterInfo(sourceId)

Module function to get information for the given source id.

sourceId (str)
source id to get info for
Return:
tuple with an icon, readable name, name of the default bookmarks file, an info text, a prompt and the default directory of the bookmarks file
Return Type:
tuple of (QPixmap, str, str, str, str, str)
Up


getImporterModule

getImporterModule(sourceId)

Function to get a bookmark importer module for a given source.

sourceId (str)
source id to get an importer module for
Return:
reference to the imported module
Return Type:
module
Raises ValueError:
raised to indicate an unsupported importer
Up


getImporters

getImporters()

Module function to get a list of supported importers.

Return:
list of tuples with an icon, readable name and internal name
Return Type:
list of tuples of (QIcon, str, str)
Up