kate Library API Documentation

kbookmarkhandler.h

00001 /* This file is part of the KDE project 00002 Copyright (C) xxxx KFile Authors 00003 Copyright (C) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License version 2 as published by the Free Software Foundation. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 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 // KBookmarkOwner interface: 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 //class KBookmarkHandlerPrivate *d; 00067 }; 00068 00069 00070 #endif // _KBOOKMARKHANDLER_H_
KDE Logo
This file is part of the documentation for kate Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 16 15:59:28 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003