diff -r 44d723e53988 -r c03b8323d11a src/eric7/WebBrowser/Bookmarks/BookmarksImporters/IExplorerImporter.py --- a/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/IExplorerImporter.py Tue Nov 08 16:23:26 2022 +0100 +++ b/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/IExplorerImporter.py Tue Nov 08 16:57:46 2022 +0100 @@ -63,8 +63,10 @@ """ Constructor - @param sourceId source ID (string) - @param parent reference to the parent object (QObject) + @param sourceId source ID (defaults to "") + @type str (optional) + @param parent reference to the parent object (defaults to None) + @type QObject (optional) """ super().__init__(sourceId, parent) @@ -154,3 +156,17 @@ QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) ) return importRootNode + + +def createImporter(sourceId="", parent=None): + """ + Constructor + + @param sourceId source ID (defaults to "") + @type str (optional) + @param parent reference to the parent object (defaults to None) + @type QObject (optional) + @return reference to the instantiated importer object + @rtype IExplorerImporter + """ + return IExplorerImporter(sourceId=sourceId, parent=parent)