60 |
60 |
61 def __init__(self, sourceId="", parent=None): |
61 def __init__(self, sourceId="", parent=None): |
62 """ |
62 """ |
63 Constructor |
63 Constructor |
64 |
64 |
65 @param sourceId source ID (string) |
65 @param sourceId source ID (defaults to "") |
66 @param parent reference to the parent object (QObject) |
66 @type str (optional) |
|
67 @param parent reference to the parent object (defaults to None) |
|
68 @type QObject (optional) |
67 """ |
69 """ |
68 super().__init__(sourceId, parent) |
70 super().__init__(sourceId, parent) |
69 |
71 |
70 self.__fileName = "" |
72 self.__fileName = "" |
71 |
73 |
133 else: |
135 else: |
134 importRootNode.title = self.tr("Imported {0}").format( |
136 importRootNode.title = self.tr("Imported {0}").format( |
135 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) |
137 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) |
136 ) |
138 ) |
137 return importRootNode |
139 return importRootNode |
|
140 |
|
141 |
|
142 def createImporter(sourceId="", parent=None): |
|
143 """ |
|
144 Constructor |
|
145 |
|
146 @param sourceId source ID (defaults to "") |
|
147 @type str (optional) |
|
148 @param parent reference to the parent object (defaults to None) |
|
149 @type QObject (optional) |
|
150 @return reference to the instantiated importer object |
|
151 @rtype OperaImporter |
|
152 """ |
|
153 return OperaImporter(sourceId=sourceId, parent=parent) |