kbookmarkhandler.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KBOOKMARKHANDLER_H_
00021 #define _KBOOKMARKHANDLER_H_
00022
00023 #include <kbookmarkmanager.h>
00024 #include <kbookmarkmenu.h>
00025 #include "katefileselector.h"
00026
00027 class QTextStream;
00028 class KPopupMenu;
00029 class KActionMenu;
00030
00031 class KBookmarkHandler : public QObject, public KBookmarkOwner
00032 {
00033 Q_OBJECT
00034
00035 public:
00036 KBookmarkHandler( KateFileSelector *parent, KPopupMenu *kpopupmenu=0 );
00037 ~KBookmarkHandler();
00038
00039
00040 virtual void openBookmarkURL( const QString& url ) { emit openURL( url ); }
00041 virtual QString currentURL() const;
00042
00043 KPopupMenu *menu() const { return m_menu; }
00044
00045 signals:
00046 void openURL( const QString& url );
00047
00048 private slots:
00049 void slotNewBookmark( const QString& text, const QCString& url,
00050 const QString& additionalInfo );
00051 void slotNewFolder( const QString& text, bool open,
00052 const QString& additionalInfo );
00053 void newSeparator();
00054 void endFolder();
00055
00056 protected:
00057 virtual void virtual_hook( int id, void* data );
00058
00059 private:
00060 KateFileSelector *mParent;
00061 KPopupMenu *m_menu;
00062 KBookmarkMenu *m_bookmarkMenu;
00063
00064 QTextStream *m_importStream;
00065
00066
00067 };
00068
00069
00070 #endif // _KBOOKMARKHANDLER_H_
This file is part of the documentation for kate Library Version 3.2.3.