--- a/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/FirefoxImporter.py Tue Nov 08 16:23:26 2022 +0100 +++ b/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/FirefoxImporter.py Tue Nov 08 16:57:46 2022 +0100 @@ -67,8 +67,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) @@ -188,3 +190,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 FirefoxImporter + """ + return FirefoxImporter(sourceId=sourceId, parent=parent)