summaryrefslogtreecommitdiffstats
path: root/kicker/menuext/konsole/konsolebookmarkhandler.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kicker/menuext/konsole/konsolebookmarkhandler.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/menuext/konsole/konsolebookmarkhandler.h')
-rw-r--r--kicker/menuext/konsole/konsolebookmarkhandler.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/kicker/menuext/konsole/konsolebookmarkhandler.h b/kicker/menuext/konsole/konsolebookmarkhandler.h
new file mode 100644
index 000000000..b22f0d03d
--- /dev/null
+++ b/kicker/menuext/konsole/konsolebookmarkhandler.h
@@ -0,0 +1,60 @@
+// Born as kdelibs/kio/kfile/kfilebookmarkhandler.h
+
+#ifndef KONSOLEBOOKMARKHANDLER_H
+#define KONSOLEBOOKMARKHANDLER_H
+
+#include <kbookmarkmanager.h>
+#include "konsolebookmarkmenu.h"
+
+
+class QTextStream;
+class KPopupMenu;
+class KonsoleBookmarkMenu;
+class KonsoleMenu;
+
+class KonsoleBookmarkHandler : public QObject, public KBookmarkOwner
+{
+ Q_OBJECT
+
+public:
+ KonsoleBookmarkHandler( KonsoleMenu *konsole, bool toplevel );
+
+ QPopupMenu * popupMenu();
+
+ // KBookmarkOwner interface:
+ virtual void openBookmarkURL( const QString& url, const QString& title )
+ { emit openURL( url, title ); }
+ virtual QString currentURL() const;
+
+ KPopupMenu *menu() const { return m_menu; }
+
+signals:
+ void openURL( const QString& url, const QString& title );
+
+private slots:
+ // for importing
+ void slotNewBookmark( const QString& text, const QCString& url,
+ const QString& additionalInfo );
+ void slotNewFolder( const QString& text, bool open,
+ const QString& additionalInfo );
+ void slotBookmarksChanged( const QString &, const QString & caller );
+ void newSeparator();
+ void endFolder();
+
+private:
+ void importOldBookmarks( const QString& path, const QString& destinationPath );
+
+ KonsoleMenu *m_konsole;
+ KPopupMenu *m_menu;
+ KonsoleBookmarkMenu *m_bookmarkMenu;
+ QTextStream *m_importStream;
+
+protected:
+ virtual void virtual_hook( int id, void* data );
+private:
+ class KonsoleBookmarkHandlerPrivate;
+ KonsoleBookmarkHandlerPrivate *d;
+};
+
+
+#endif // KONSOLEBOOKMARKHANDLER_H