KBookmark Class Reference
Inheritance diagram for KBookmark:

Detailed Description
Definition at line 31 of file kbookmark.h.
Public Types | |
enum | MetaDataOverwriteMode { OverwriteMetaData, DontOverwriteMetaData } |
Public Member Functions | |
KBookmark () | |
KBookmark (QDomElement elem) | |
bool | isGroup () const |
bool | isSeparator () const |
bool | isNull () const |
bool | hasParent () const |
QString | text () const |
QString | fullText () const |
KURL | url () const |
QString | icon () const |
KBookmarkGroup | parentGroup () const |
KBookmarkGroup | toGroup () const |
QString | address () const |
QDomElement | internalElement () const |
void | updateAccessMetadata () |
QString | metaDataItem (const QString &key) const |
void | setMetaDataItem (const QString &key, const QString &value, MetaDataOverwriteMode mode=OverwriteMetaData) |
Static Public Member Functions | |
static KBookmark | standaloneBookmark (const QString &text, const KURL &url, const QString &icon=QString::null) |
static QString | parentAddress (const QString &address) |
static uint | positionInParent (const QString &address) |
static QString | previousAddress (const QString &address) |
static QString | nextAddress (const QString &address) |
static QString | commonParent (QString A, QString B) |
Protected Attributes | |
QDomElement | element |
Friends | |
class | KBookmarkGroup |
Member Function Documentation
|
Return the "address" of this bookmark in the whole tree. This is used when telling other processes about a change in a given bookmark. The encoding of the address is "/4/2", for instance, to design the 2nd child inside the 4th child of the root bk. Definition at line 323 of file kbookmark.cc. |
|
Definition at line 371 of file kbookmark.cc. |
|
Text shown for the bookmark, not truncated. You should not use this - this is mainly for keditbookmarks. Definition at line 283 of file kbookmark.cc. |
|
Definition at line 272 of file kbookmark.cc. |
|
Definition at line 296 of file kbookmark.cc. |
|
Whether the bookmark is a group or a normal bookmark.
Definition at line 260 of file kbookmark.cc. |
|
Definition at line 59 of file kbookmark.h. |
|
Whether the bookmark is a separator.
Definition at line 267 of file kbookmark.cc. |
|
Get the value of a specific metadata item.
Definition at line 465 of file kbookmark.cc. |
|
Definition at line 155 of file kbookmark.h. |
|
Definition at line 132 of file kbookmark.h. |
|
Definition at line 312 of file kbookmark.cc. |
|
Definition at line 138 of file kbookmark.h. |
|
Definition at line 145 of file kbookmark.h. |
|
Change the value of a specific metadata item, or create the given item if it doesn't exist already.
Definition at line 481 of file kbookmark.cc. |
|
Text shown for the bookmark If bigger than 40, the text is shortened by replacing middle characters with "..." (see KStringHandler::csqueeze).
Definition at line 278 of file kbookmark.cc. |
|
Convert this to a group - do this only if isGroup() returns true.
Definition at line 317 of file kbookmark.cc. |
|
Updates the bookmarks access metadata Call when a user accesses the bookmark.
Definition at line 446 of file kbookmark.cc. |
|
URL contained by the bookmark.
Definition at line 291 of file kbookmark.cc. |
The documentation for this class was generated from the following files: