434 def bookmarkForUrl(self, url, start=StartRoot): |
434 def bookmarkForUrl(self, url, start=StartRoot): |
435 """ |
435 """ |
436 Public method to get a bookmark node for a given URL. |
436 Public method to get a bookmark node for a given URL. |
437 |
437 |
438 @param url URL of the bookmark to search for (QUrl or string) |
438 @param url URL of the bookmark to search for (QUrl or string) |
439 @keyparam start indicator for the start of the search |
439 @param start indicator for the start of the search |
440 (StartRoot, StartMenu, StartToolBar) |
440 (StartRoot, StartMenu, StartToolBar) |
441 @return bookmark node for the given url (BookmarkNode) |
441 @return bookmark node for the given url (BookmarkNode) |
442 """ |
442 """ |
443 if start == StartMenu: |
443 if start == StartMenu: |
444 startNode = self.__menu |
444 startNode = self.__menu |
477 def bookmarksForUrl(self, url, start=StartRoot): |
477 def bookmarksForUrl(self, url, start=StartRoot): |
478 """ |
478 """ |
479 Public method to get a list of bookmark nodes for a given URL. |
479 Public method to get a list of bookmark nodes for a given URL. |
480 |
480 |
481 @param url URL of the bookmarks to search for (QUrl or string) |
481 @param url URL of the bookmarks to search for (QUrl or string) |
482 @keyparam start indicator for the start of the search |
482 @param start indicator for the start of the search |
483 (StartRoot, StartMenu, StartToolBar) |
483 (StartRoot, StartMenu, StartToolBar) |
484 @return list of bookmark nodes for the given url (list of BookmarkNode) |
484 @return list of bookmark nodes for the given url (list of BookmarkNode) |
485 """ |
485 """ |
486 if start == StartMenu: |
486 if start == StartMenu: |
487 startNode = self.__menu |
487 startNode = self.__menu |