|
| KBookmarkGroup () |
| Create an invalid group.
|
|
| KBookmarkGroup (const QDomElement &elem) |
| Create a bookmark group as specified by the given element.
|
|
KBookmark | addBookmark (const KBookmark &bm) |
| Create a new bookmark, as the last child of this group Don't forget to use KBookmarkManager::self()->emitChanged( parentBookmark );.
|
|
KBookmark | addBookmark (const QString &text, const QUrl &url, const QString &icon) |
| Create a new bookmark, as the last child of this group Don't forget to use KBookmarkManager::self()->emitChanged( parentBookmark );.
|
|
KBookmarkGroup | createNewFolder (const QString &text) |
| Create a new bookmark folder, as the last child of this group.
|
|
KBookmark | createNewSeparator () |
| Create a new bookmark separator Don't forget to use KBookmarkManager::self()->emitChanged( parentBookmark );.
|
|
void | deleteBookmark (const KBookmark &bk) |
| Delete a bookmark - it has to be one of our children ! Don't forget to use KBookmarkManager::self()->emitChanged( parentBookmark );.
|
|
QDomElement | findToolbar () const |
|
KBookmark | first () const |
| Return the first child bookmark of this group.
|
|
QList< QUrl > | groupUrlList () const |
|
int | indexOf (const KBookmark &child) const |
| Return the index of a child bookmark, -1 if not found.
|
|
bool | isOpen () const |
|
bool | isToolbarGroup () const |
|
bool | moveBookmark (const KBookmark &bookmark, const KBookmark &after) |
| Moves bookmark after after (which should be a child of ours).
|
|
KBookmark | next (const KBookmark ¤t) const |
| Return the next sibling of a child bookmark of this group.
|
|
KBookmark | previous (const KBookmark ¤t) const |
| Return the previous sibling of a child bookmark of this group.
|
|
| KBookmark () |
| Constructs a null bookmark, i.e.
|
|
| KBookmark (const QDomElement &elem) |
| Creates the KBookmark wrapper for.
|
|
QString | address () const |
| Return the "address" of this bookmark in the whole tree.
|
|
QString | description () const |
|
QString | fullText () const |
| Text shown for the bookmark, not truncated.
|
|
bool | hasParent () const |
|
QString | icon () const |
|
QDomElement | internalElement () const |
|
bool | isGroup () const |
| Whether the bookmark is a group or a normal bookmark.
|
|
bool | isNull () const |
|
bool | isSeparator () const |
| Whether the bookmark is a separator.
|
|
QDomNode | metaData (const QString &owner, bool create) const |
|
QString | metaDataItem (const QString &key) const |
| Get the value of a specific metadata item (owner = "http://www.kde.org").
|
|
QString | mimeType () const |
|
bool | operator== (const KBookmark &rhs) const |
| Comparison operator.
|
|
KBookmarkGroup | parentGroup () const |
|
void | populateMimeData (QMimeData *mimeData) const |
| Adds this bookmark into the given QMimeData.
|
|
int | positionInParent () const |
| Return the position in the parent, i.e.
|
|
void | setDescription (const QString &description) |
| Set the description of the bookmark.
|
|
void | setFullText (const QString &fullText) |
| Set the text shown for the bookmark.
|
|
void | setIcon (const QString &icon) |
| Set the icon name of the bookmark.
|
|
void | setMetaDataItem (const QString &key, const QString &value, MetaDataOverwriteMode mode=OverwriteMetaData) |
| Change the value of a specific metadata item, or create the given item if it doesn't exist already (owner = "http://www.kde.org").
|
|
void | setMimeType (const QString &mimeType) |
| Set the Mime-Type of this item.
|
|
void | setShowInToolbar (bool show) |
| Set whether this bookmark is show in a filterd toolbar.
|
|
void | setUrl (const QUrl &url) |
| Set the URL of the bookmark.
|
|
bool | showInToolbar () const |
|
QString | text () const |
| Text shown for the bookmark If bigger than 40, the text is shortened by replacing middle characters with "..." (see KStringHandler::csqueeze)
|
|
KBookmarkGroup | toGroup () const |
| Convert this to a group - do this only if isGroup() returns true.
|
|
void | updateAccessMetadata () |
| Updates the bookmarks access metadata Call when a user accesses the bookmark.
|
|
QUrl | url () const |
| URL contained by the bookmark.
|
|