src/eric7/WebBrowser/Bookmarks/BookmarksImporters/BookmarksImporter.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
17 17
18 def __init__(self, sourceId="", parent=None): 18 def __init__(self, sourceId="", parent=None):
19 """ 19 """
20 Constructor 20 Constructor
21 21
22 @param sourceId source ID (string) 22 @param sourceId source ID
23 @param parent reference to the parent object (QObject) 23 @type str
24 @param parent reference to the parent object
25 @type QObject
24 """ 26 """
25 super().__init__(parent) 27 super().__init__(parent)
26 28
27 self._path = "" 29 self._path = ""
28 self._file = "" 30 self._file = ""
32 34
33 def setPath(self, path): 35 def setPath(self, path):
34 """ 36 """
35 Public method to set the path of the bookmarks file or directory. 37 Public method to set the path of the bookmarks file or directory.
36 38
37 @param path bookmarks file or directory (string) 39 @param path bookmarks file or directory
40 @type str
38 @exception NotImplementedError raised to indicate this method must 41 @exception NotImplementedError raised to indicate this method must
39 be implemented by a subclass 42 be implemented by a subclass
40 """ 43 """
41 raise NotImplementedError 44 raise NotImplementedError
42 45
64 67
65 def error(self): 68 def error(self):
66 """ 69 """
67 Public method to check for an error. 70 Public method to check for an error.
68 71
69 @return flag indicating an error (boolean) 72 @return flag indicating an error
73 @rtype bool
70 """ 74 """
71 return self._error 75 return self._error
72 76
73 def errorString(self): 77 def errorString(self):
74 """ 78 """
75 Public method to get the error description. 79 Public method to get the error description.
76 80
77 @return error description (string) 81 @return error description
82 @rtype str
78 """ 83 """
79 return self._errorString 84 return self._errorString

eric ide

mercurial