# class KBookmarkOwner

### abstract

Module | kio
Namespace |
Class | KBookmarkOwner
Inherits |

### enums

- BookmarkOption { ShowAddBookmark, ShowEditBookmark }

enum details

### methods

- bookmarkDialog (mgr, parent)

  returns KBookmarkDialog

  Argument | Type | Default
  --- | --- | ---
  mgr | KBookmarkManager |
  parent | QWidget |

- currentBookmarkList ( )

  returns QList<QPair<QString,QString>>

  Returns a list of title, URL pairs of the open tabs.

- currentTitle ( )

  returns QString

  This function is called whenever the user wants to add the current page to the bookmarks list. The title will become the "name" of the bookmark. You must overload this function if you wish to give your users the ability to add bookmarks.

  Returns the title of the current page.

- currentUrl ( )

  returns QString

  This function is called whenever the user wants to add the current page to the bookmarks list. The URL will become the URL of the bookmark. You must overload this function if you wish to give your users the ability to add bookmarks.

  Returns the URL of the current page.

- enableOption (option)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  option | KBookmarkOwner.BookmarkOption |

  Returns true if action should be shown in the menu The default is to show both a add and editBookmark Entry //TODO ContextMenuAction? to disable the contextMenu? Delete and Propeties to disable those in the context menu?

- openBookmark (bm, mb, km)

  returns Nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  bm | KBookmark |
  mb | Qt.MouseButtons |
  km | Qt.KeyboardModifiers |

  Called if a bookmark is selected. You need to override this.

- openFolderinTabs (bm)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  bm | KBookmarkGroup |

  Called if the user wants to open every bookmark in this folder in a new tab. The default implementation does nothing. This is only called if supportsTabs() returns true

- supportsTabs ( )

  returns bool

  This function returns whether the owner supports tabs.

### enums - detail

- BookmarkOption { ShowAddBookmark, ShowEditBookmark }

  | ShowAddBookmark | - | - |
  | ShowEditBookmark | - | - |