65 |
65 |
66 def __init__(self, sourceId="", parent=None): |
66 def __init__(self, sourceId="", parent=None): |
67 """ |
67 """ |
68 Constructor |
68 Constructor |
69 |
69 |
70 @param sourceId source ID (string) |
70 @param sourceId source ID (defaults to "") |
71 @param parent reference to the parent object (QObject) |
71 @type str (optional) |
|
72 @param parent reference to the parent object (defaults to None) |
|
73 @type QObject (optional) |
72 """ |
74 """ |
73 super().__init__(sourceId, parent) |
75 super().__init__(sourceId, parent) |
74 |
76 |
75 self.__fileName = "" |
77 self.__fileName = "" |
76 self.__db = None |
78 self.__db = None |
186 else: |
188 else: |
187 importRootNode.title = self.tr("Imported {0}").format( |
189 importRootNode.title = self.tr("Imported {0}").format( |
188 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) |
190 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) |
189 ) |
191 ) |
190 return importRootNode |
192 return importRootNode |
|
193 |
|
194 |
|
195 def createImporter(sourceId="", parent=None): |
|
196 """ |
|
197 Constructor |
|
198 |
|
199 @param sourceId source ID (defaults to "") |
|
200 @type str (optional) |
|
201 @param parent reference to the parent object (defaults to None) |
|
202 @type QObject (optional) |
|
203 @return reference to the instantiated importer object |
|
204 @rtype FirefoxImporter |
|
205 """ |
|
206 return FirefoxImporter(sourceId=sourceId, parent=parent) |