61 |
61 |
62 def __init__(self, sourceId="", parent=None): |
62 def __init__(self, sourceId="", parent=None): |
63 """ |
63 """ |
64 Constructor |
64 Constructor |
65 |
65 |
66 @param sourceId source ID (string) |
66 @param sourceId source ID (defaults to "") |
67 @param parent reference to the parent object (QObject) |
67 @type str (optional) |
|
68 @param parent reference to the parent object (defaults to None) |
|
69 @type QObject (optional) |
68 """ |
70 """ |
69 super().__init__(sourceId, parent) |
71 super().__init__(sourceId, parent) |
70 |
72 |
71 self.__fileName = "" |
73 self.__fileName = "" |
72 |
74 |
152 else: |
154 else: |
153 importRootNode.title = self.tr("Imported {0}").format( |
155 importRootNode.title = self.tr("Imported {0}").format( |
154 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) |
156 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) |
155 ) |
157 ) |
156 return importRootNode |
158 return importRootNode |
|
159 |
|
160 |
|
161 def createImporter(sourceId="", parent=None): |
|
162 """ |
|
163 Constructor |
|
164 |
|
165 @param sourceId source ID (defaults to "") |
|
166 @type str (optional) |
|
167 @param parent reference to the parent object (defaults to None) |
|
168 @type QObject (optional) |
|
169 @return reference to the instantiated importer object |
|
170 @rtype IExplorerImporter |
|
171 """ |
|
172 return IExplorerImporter(sourceId=sourceId, parent=parent) |