summaryrefslogtreecommitdiff
path: root/src/bookmarks.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-02 16:22:28 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-02 16:22:28 +0100
commit15ecefe10101dd068c4e075fca23ba64519bedb1 (patch)
tree0985bb87525a74c1bc2d6edb5bca29fff8140301 /src/bookmarks.h
parentNew BookmarkMenu implementation (diff)
downloadrekonq-15ecefe10101dd068c4e075fca23ba64519bedb1.tar.xz
New Bookmarks menu, sharing bkmrs with Konqueror0.0.1
(And that's reKonq 1st feature!!)
Diffstat (limited to 'src/bookmarks.h')
-rw-r--r--src/bookmarks.h28
1 files changed, 20 insertions, 8 deletions
diff --git a/src/bookmarks.h b/src/bookmarks.h
index 4f527436..80362e1c 100644
--- a/src/bookmarks.h
+++ b/src/bookmarks.h
@@ -20,36 +20,48 @@
#ifndef BOOKMARKS_H
#define BOOKMARKS_H
+// KDE Includes
#include <KBookmarkOwner>
#include <KBookmarkManager>
#include <KBookmarkMenu>
+#include <KActionCollection>
+#include <KMainWindow>
-class OwnBookMarks : public KBookMarkOwner
+class BrowserMainWindow;
+
+class OwnBookMarks : public QObject , public KBookmarkOwner
{
Q_OBJECT
public:
- OwnBookMarks(KMainWindow *parent);
+ OwnBookMarks(KMainWindow * );
virtual void openBookmark (const KBookmark & , Qt::MouseButtons , Qt::KeyboardModifiers );
+
+ // KBookmarkOwner interface:
+ virtual QString currentUrl() const;
+ virtual QString currentTitle() const;
+
+signals:
+ void openUrl(const QUrl &); // FIXME pass all to KUrl!!
+
+private:
+ BrowserMainWindow *m_parent;
};
-class BookmarkMenu : public KMenu
+class BookmarksMenu : public KMenu
{
Q_OBJECT
public:
- BookmarkMenu(KMainWindow *parent);
+ BookmarksMenu(KMainWindow * parent);
private:
- void setActions();
-
KBookmarkManager *m_manager;
OwnBookMarks *m_owner;
KActionCollection *m_ac;
KBookmarkMenu *m_menu;
- KMainWindow *m_parent;
};
-#endif
+#endif