29 @pyqtSlot(result=str) |
29 @pyqtSlot(result=str) |
30 def providerString(self): |
30 def providerString(self): |
31 """ |
31 """ |
32 Public method to get a string for the search provider. |
32 Public method to get a string for the search provider. |
33 |
33 |
34 @return string for the search provider (string) |
34 @return string for the search provider |
|
35 @rtype str |
35 """ |
36 """ |
36 return self.tr("Search results provided by {0}").format( |
37 return self.tr("Search results provided by {0}").format( |
37 self.__external.page() |
38 self.__external.page() |
38 .view() |
39 .view() |
39 .mainWindow() |
40 .mainWindow() |
44 @pyqtSlot(str, result=str) |
45 @pyqtSlot(str, result=str) |
45 def searchUrl(self, searchStr): |
46 def searchUrl(self, searchStr): |
46 """ |
47 """ |
47 Public method to get the search URL for the given search term. |
48 Public method to get the search URL for the given search term. |
48 |
49 |
49 @param searchStr search term (string) |
50 @param searchStr search term |
50 @return search URL (string) |
51 @type str |
|
52 @return search URL |
|
53 @rtype str |
51 """ |
54 """ |
52 return bytes( |
55 return bytes( |
53 self.__external.page() |
56 self.__external.page() |
54 .view() |
57 .view() |
55 .mainWindow() |
58 .mainWindow() |