KBookmarkGroup Class Reference
A group of bookmarks. More...
#include <kbookmark.h>
Public Member Functions | |
KBookmarkGroup () | |
KBookmarkGroup (QDomElement elem) | |
QString | groupAddress () const |
bool | isOpen () const |
KBookmark | first () const |
KBookmark | previous (const KBookmark ¤t) const |
KBookmark | next (const KBookmark ¤t) const |
KBookmarkGroup | createNewFolder (KBookmarkManager *mgr, const QString &text=QString::null, bool emitSignal=true) |
KBookmark | createNewSeparator () |
KBookmark | addBookmark (KBookmarkManager *mgr, const KBookmark &bm, bool emitSignal=true) |
KBookmark | addBookmark (KBookmarkManager *mgr, const QString &text, const KURL &url, const QString &icon=QString::null, bool emitSignal=true) |
bool | moveItem (const KBookmark &item, const KBookmark &after) |
void | deleteBookmark (KBookmark bk) |
bool | isToolbarGroup () const |
QDomElement | findToolbar () const |
QValueList< KURL > | groupUrlList () const |
Protected Member Functions | |
QDomElement | nextKnownTag (QDomElement start, bool goNext) const |
Detailed Description
A group of bookmarks.
Definition at line 191 of file kbookmark.h.
Constructor & Destructor Documentation
|
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) Definition at line 35 of file kbookmark.cc. Referenced by createNewFolder(). |
|
Create a bookmark group as specified by the given element.
Definition at line 40 of file kbookmark.cc. |
Member Function Documentation
|
Much like KBookmark::address, but caches the address into m_address.
Definition at line 45 of file kbookmark.cc. |
|
Definition at line 52 of file kbookmark.cc. |
|
Return the first child bookmark of this group.
Definition at line 73 of file kbookmark.cc. Referenced by KBookmarkMenu::fillBookmarkMenu(), KBookmarkManager::findByAddress(), and groupUrlList(). |
|
Return the prevous sibling of a child bookmark of this group.
Definition at line 78 of file kbookmark.cc. |
|
Return the next sibling of a child bookmark of this group.
Definition at line 83 of file kbookmark.cc. Referenced by KBookmarkMenu::fillBookmarkMenu(), KBookmarkManager::findByAddress(), and groupUrlList(). |
|
Create a new bookmark folder, as the last child of this group.
Definition at line 110 of file kbookmark.cc. References KInputDialog::getText(), and KBookmarkGroup(). |
|
Create a new bookmark separator.
Definition at line 145 of file kbookmark.cc. |
|
Create a new bookmark, as the last child of this group Don't forget to use KBookmarkManager::self()->emitChanged( parentBookmark ); if this bookmark was added interactively.
Definition at line 178 of file kbookmark.cc. Referenced by addBookmark(), and KBookmarkManager::addBookmarkDialog(). |
|
Create a new bookmark, as the last child of this group Don't forget to use KBookmarkManager::self()->emitChanged( parentBookmark ); if this bookmark was added interactively.
Definition at line 195 of file kbookmark.cc. References addBookmark(), and KMimeType::iconForURL(). |
|
Moves
If item is null, Definition at line 155 of file kbookmark.cc. |
|
Delete a bookmark - it has to be one of our children !
Definition at line 213 of file kbookmark.cc. |
|
Definition at line 218 of file kbookmark.cc. Referenced by KBookmarkManager::saveAs(). |
|
Definition at line 246 of file kbookmark.cc. |
The documentation for this class was generated from the following files: