7#ifndef KBOOKMARK_OWNER_H
8#define KBOOKMARK_OWNER_H
12#include <QSharedDataPointer>
107 class FutureBookmarkPrivate;
115 FutureBookmark(
const QString &title,
const QUrl &url,
const QString &icon);
120 QString title()
const;
122 QString icon()
const;
125 QSharedDataPointer<FutureBookmarkPrivate> d;
134 return QList<FutureBookmark>();
137 enum BookmarkOption { ShowAddBookmark, ShowEditBookmark };
176 class KBookmarkOwnerPrivate;
177 KBookmarkOwnerPrivate *d;
This class provides a Dialog for editing properties, adding Bookmarks and creating new folders.
Definition kbookmarkdialog.h:30
A group of bookmarks.
Definition kbookmark.h:323
This class implements the reading/writing of bookmarks in XML.
Definition kbookmarkmanager.h:52
Represents the data for a bookmark that will be added.
Definition kbookmarkowner.h:113
The KBookmarkMenu and KBookmarkBar classes gives the user the ability to either edit bookmarks or add...
Definition kbookmarkowner.h:44
virtual QList< FutureBookmark > currentBookmarkList() const
Returns a list of bookmark data for the open tabs.
Definition kbookmarkowner.h:132
virtual QString currentIcon() const
This function is called whenever the user wants to add the current page to the bookmarks list.
Definition kbookmarkowner.h:93
virtual void openInNewWindow(const KBookmark &bm)
Called when a bookmark should be opened in a new window.
virtual void openInNewTab(const KBookmark &bm)
Called when a bookmark should be opened in a new tab.
virtual QString currentTitle() const
This function is called whenever the user wants to add the current page to the bookmarks list.
Definition kbookmarkowner.h:60
virtual void openFolderinTabs(const KBookmarkGroup &bm)
Called if the user wants to open every bookmark in this folder in a new tab.
virtual bool supportsTabs() const
This function returns whether the owner supports tabs.
Definition kbookmarkowner.h:102
virtual bool enableOption(BookmarkOption option) const
Returns true if action should be shown in the menu The default is to show both a add and editBookmark...
virtual void openBookmark(const KBookmark &bm, Qt::MouseButtons mb, Qt::KeyboardModifiers km)=0
Called if a bookmark is selected.
virtual QUrl currentUrl() const
This function is called whenever the user wants to add the current page to the bookmarks list.
Definition kbookmarkowner.h:75
A class representing a bookmark.
Definition kbookmark.h:28