aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks/xbel.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-09-25 14:44:01 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-09-25 14:44:01 +0200
commit9203de811f049c8e604a9c3065781157fa506155 (patch)
tree96096d8cbeefd58c988ddb97dcd51fa21873ffb6 /lib/bookmarks/xbel.h
parentBookmarks: add BookmarkItem and BookmarkModel (diff)
downloadsmolbote-9203de811f049c8e604a9c3065781157fa506155.tar.xz
Bookmarks: integrate model/view
- fix addBookmark and search signals - fix drag'n'drop - add xbel::write
Diffstat (limited to 'lib/bookmarks/xbel.h')
-rw-r--r--lib/bookmarks/xbel.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/bookmarks/xbel.h b/lib/bookmarks/xbel.h
index e285b70..e38ae98 100644
--- a/lib/bookmarks/xbel.h
+++ b/lib/bookmarks/xbel.h
@@ -19,8 +19,7 @@ class XbelReader
{
public:
explicit XbelReader(QIODevice *file);
- void read(BookmarksView *treeWidget);
- void read(BookmarkModel *model);
+ void read(BookmarkItem *model);
private:
QIODevice *m_file;
@@ -29,11 +28,10 @@ private:
class XbelWriter
{
public:
- explicit XbelWriter(QIODevice *file);
- void write(BookmarksView *treeWidget);
+ explicit XbelWriter();
+ void write(QIODevice *device, const BookmarkItem *item);
private:
- QIODevice *m_file;
};
#endif // XBELREADER_H