not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / applets / webbrowser / bookmarkitem.h
blobc0a950a0cf1cdddfd2aad656461353ae71671c30
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
31 public:
32 enum BookmarkRoles
34 UrlRole = Qt::UserRole+1
37 BookmarkItem(KBookmark &bookmark);
38 ~BookmarkItem();
40 KBookmark bookmark() const;
41 void setBookmark(const KBookmark &bookmark);
42 QVariant data(int role) const;
45 private:
46 KBookmark m_bookmark;
49 #endif