Applets
bookmarkitem.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef BOOKMARKITEM_H
00020 #define BOOKMARKITEM_H
00021
00022
00023 #include <QStandardItem>
00024 #include <QtCore/QModelIndex>
00025 #include <kbookmark.h>
00026
00027
00028 class BookmarkItem : public QStandardItem
00029 {
00030
00031 public:
00032 enum BookmarkRoles
00033 {
00034 UrlRole = Qt::UserRole+1
00035 };
00036
00037 BookmarkItem(KBookmark &bookmark);
00038 ~BookmarkItem();
00039
00040 KBookmark bookmark() const;
00041 void setBookmark(const KBookmark &bookmark);
00042 QVariant data(int role) const;
00043
00044
00045 private:
00046 KBookmark m_bookmark;
00047 };
00048
00049 #endif