1
/* This file is part of the KDE project
2
Copyright (C) xxxx KFile Authors
3
Copyright (C) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk>
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License version 2 as published by the Free Software Foundation.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
Boston, MA 02111-1307, USA.
20
#ifndef _KBOOKMARKHANDLER_H_
21
#define _KBOOKMARKHANDLER_H_
23
#include <kbookmarkmanager.h>
24
#include <kbookmarkmenu.h>
25
#include "katefileselector.h"
31
class KBookmarkHandler : public QObject, public KBookmarkOwner
36
KBookmarkHandler( KateFileSelector *parent, KPopupMenu *kpopupmenu=0 );
39
// KBookmarkOwner interface:
40
virtual void openBookmarkURL( const QString& url ) { emit openURL( url ); }
41
virtual QString currentURL() const;
43
KPopupMenu *menu() const { return m_menu; }
46
void openURL( const QString& url );
49
void slotNewBookmark( const QString& text, const QCString& url,
50
const QString& additionalInfo );
51
void slotNewFolder( const QString& text, bool open,
52
const QString& additionalInfo );
57
virtual void virtual_hook( int id, void* data );
60
KateFileSelector *mParent;
62
KBookmarkMenu *m_bookmarkMenu;
64
QTextStream *m_importStream;
66
//class KBookmarkHandlerPrivate *d;
70
#endif // _KBOOKMARKHANDLER_H_