# eric6.Helpviewer.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.
getImporters | Module function to get a list of supported importers.

## getImporter

getImporter(id, parent=None)

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

id
  source id to get an importer for (string)
parent
  reference to the parent object (QObject)

Returns:
  bookmarks importer (BookmarksImporter)

Raises ValueError:
  raised to indicate an unsupported importer

Up

## getImporterInfo

getImporterInfo(id)

Module function to get information for the given source id.

id
  source id to get info for (string)

Returns:
  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 unsupported importer

Up

## getImporters

getImporters()

Module function to get a list of supported importers.

Returns:
  list of tuples with an icon (QIcon), readable name (string) and internal name (string)

Up