17 |
17 |
18 def read(self, device): |
18 def read(self, device): |
19 """ |
19 """ |
20 Public method to read the description. |
20 Public method to read the description. |
21 |
21 |
22 @param device device to read the description from (QIODevice) |
22 @param device device to read the description from |
23 @return search engine object (OpenSearchEngine) |
23 @type QIODevice |
|
24 @return search engine object |
|
25 @rtype OpenSearchEngine |
24 """ |
26 """ |
25 self.clear() |
27 self.clear() |
26 |
28 |
27 if not device.isOpen(): |
29 if not device.isOpen(): |
28 device.open(QIODevice.OpenModeFlag.ReadOnly) |
30 device.open(QIODevice.OpenModeFlag.ReadOnly) |