1 /* Copyright (C) 2008 Marco Martin <notmart@gmail.com>
3 This library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Library General Public
5 License version 2 as published by the Free Software Foundation.
7 This library is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 Library General Public License for more details.
12 You should have received a copy of the GNU Library General Public License
13 along with this library; see the file COPYING.LIB. If not, write to
14 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
15 Boston, MA 02110-1301, USA.
19 #ifndef BOOKMARKITEM_H
20 #define BOOKMARKITEM_H
23 #include <QStandardItem>
24 #include <QtCore/QModelIndex>
25 #include <kbookmark.h>
28 class BookmarkItem
: public QStandardItem
34 UrlRole
= Qt::UserRole
+1
37 BookmarkItem(KBookmark
&bookmark
);
40 KBookmark
bookmark() const;
41 void setBookmark(const KBookmark
&bookmark
);
42 QVariant
data(int role
) const;