# class KBookmarkGroup

###

Module | kio
Namespace |
Class | KBookmarkGroup
Inherits | KBookmark

### methods

- KBookmarkGroup ( )

  returns ctor

  Create an invalid group. This is mostly for use in QValueList, and other places where we need a null group. Also used as a parent for a bookmark that doesn't have one (e.g. Netscape bookmarks)

- KBookmarkGroup (elem)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  elem | QDomElement |

  Create a bookmark group as specified by the given element

- addBookmark (bm)

  returns KBookmark

  Argument | Type | Default
  --- | --- | ---
  bm | KBookmark |

  Create a new bookmark, as the last child of this group Don't forget to use KBookmarkManager.self()->emitChanged( parentBookmark );

  bm - the bookmark to add

- addBookmark (text, url, icon)

  returns KBookmark

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  url | KUrl |
  icon | QString | QString()

  Create a new bookmark, as the last child of this group Don't forget to use KBookmarkManager.self()->emitChanged( parentBookmark );

  text - for the bookmark

  url - the URL that the bookmark points to

  icon - the name of the icon to associate with the bookmark. A suitable default will be determined from the URL if not specified.

- createNewFolder (text)

  returns KBookmarkGroup

  Argument | Type | Default
  --- | --- | ---
  text | QString |

  Create a new bookmark folder, as the last child of this group

  text - for the folder. If you want an dialog use KBookmarkDialog

- createNewSeparator ( )

  returns KBookmark

  Create a new bookmark separator Don't forget to use KBookmarkManager.self()->emitChanged( parentBookmark );

- deleteBookmark (bk)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  bk | KBookmark |

  Delete a bookmark - it has to be one of our children ! Don't forget to use KBookmarkManager.self()->emitChanged( parentBookmark );

- findToolbar ( )

  returns QDomElement

  Internal

- first ( )

  returns KBookmark

  Return the first child bookmark of this group

- groupUrlList ( )

  returns QList<KUrl>

  Returns the list of urls of bookmarks at top level of the group

- indexOf (child)

  returns int

  Argument | Type | Default
  --- | --- | ---
  child | KBookmark |

  Return the index of a child bookmark, -1 if not found

- isOpen ( )

  returns bool

  Returns true if the bookmark folder is opened in the bookmark editor

- isToolbarGroup ( )

  returns bool

  Returns true if this is the toolbar group

- moveBookmark (bookmark, after)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  bookmark | KBookmark |
  after | KBookmark |

  Moves bookmark after after (which should be a child of ours). If after is null, bookmark is moved as the first child. Don't forget to use KBookmarkManager.self()->emitChanged( parentBookmark );

- moveItem (item, after)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  item | KBookmark |
  after | KBookmark |

- next (current)

  returns KBookmark

  Argument | Type | Default
  --- | --- | ---
  current | KBookmark |

  Return the next sibling of a child bookmark of this group

  current - has to be one of our child bookmarks.

- nextKnownTag (start, goNext)

  returns QDomElement

  Argument | Type | Default
  --- | --- | ---
  start | QDomElement |
  goNext | bool |

- previous (current)

  returns KBookmark

  Argument | Type | Default
  --- | --- | ---
  current | KBookmark |

  Return the prevous sibling of a child bookmark of this group

  current - has to be one of our child bookmarks.