62 |
62 |
63 def __init__(self, sourceId="", parent=None): |
63 def __init__(self, sourceId="", parent=None): |
64 """ |
64 """ |
65 Constructor |
65 Constructor |
66 |
66 |
67 @param sourceId source ID (string) |
67 @param sourceId source ID (defaults to "") |
68 @param parent reference to the parent object (QObject) |
68 @type str (optional) |
|
69 @param parent reference to the parent object (defaults to None) |
|
70 @type QObject (optional) |
69 """ |
71 """ |
70 super().__init__(sourceId, parent) |
72 super().__init__(sourceId, parent) |
71 |
73 |
72 self.__fileName = "" |
74 self.__fileName = "" |
73 |
75 |
147 continue |
149 continue |
148 |
150 |
149 bookmark = BookmarkNode(BookmarkNode.Bookmark, rootNode) |
151 bookmark = BookmarkNode(BookmarkNode.Bookmark, rootNode) |
150 bookmark.url = url |
152 bookmark.url = url |
151 bookmark.title = child["URIDictionary"]["title"].replace("&", "&&") |
153 bookmark.title = child["URIDictionary"]["title"].replace("&", "&&") |
|
154 |
|
155 |
|
156 def createImporter(sourceId="", parent=None): |
|
157 """ |
|
158 Constructor |
|
159 |
|
160 @param sourceId source ID (defaults to "") |
|
161 @type str (optional) |
|
162 @param parent reference to the parent object (defaults to None) |
|
163 @type QObject (optional) |
|
164 @return reference to the instantiated importer object |
|
165 @rtype SafariImporter |
|
166 """ |
|
167 return SafariImporter(sourceId=sourceId, parent=parent) |