File indexing completed on 2024-05-12 05:00:19
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2000 David Faure <faure@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #ifndef bookmark_item_h 0008 #define bookmark_item_h 0009 0010 #include <konq_sidebartreeitem.h> 0011 #include <kbookmark.h> 0012 0013 /** 0014 * A bookmark item 0015 */ 0016 class KonqSidebarBookmarkItem : public KonqSidebarTreeItem 0017 { 0018 public: 0019 KonqSidebarBookmarkItem(KonqSidebarTreeItem *parentItem, KonqSidebarTreeTopLevelItem *topLevelItem, 0020 const KBookmark &bk, int key); 0021 0022 virtual ~KonqSidebarBookmarkItem() {} 0023 0024 virtual bool populateMimeData(QMimeData *mimeData, bool move); 0025 0026 virtual void middleButtonClicked(); 0027 virtual void rightButtonPressed(); 0028 0029 virtual void del(); 0030 0031 // The URL to open when this link is clicked 0032 virtual QUrl externalURL() const; 0033 0034 // overwrite this if you want a tooltip shown on your item 0035 virtual QString toolTipText() const; 0036 0037 // Called when this item is selected 0038 virtual void itemSelected(); 0039 0040 virtual QString key(int column, bool /*ascending*/) const; 0041 0042 virtual KBookmark &bookmark(); 0043 0044 private: 0045 KBookmark m_bk; 0046 int m_key; 0047 }; 0048 0049 #endif