aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks/xbel.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-11 17:30:38 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-11 17:30:38 +0100
commit5d0adf426a33440542eb88eca83c804dcec58475 (patch)
tree34358c8039c2f6cb2a121a169374dc4a7a21b614 /lib/bookmarks/xbel.h
parentRemoved docs (moved to site) (diff)
downloadsmolbote-5d0adf426a33440542eb88eca83c804dcec58475.tar.xz
Writing BookmarksModel to xbel
Diffstat (limited to 'lib/bookmarks/xbel.h')
-rw-r--r--lib/bookmarks/xbel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bookmarks/xbel.h b/lib/bookmarks/xbel.h
index c425cc5..c1de1df 100644
--- a/lib/bookmarks/xbel.h
+++ b/lib/bookmarks/xbel.h
@@ -17,10 +17,12 @@ class Xbel
{
public:
explicit Xbel(const QString &path);
- BookmarkItem *read();
+ bool read(BookmarkItem *root);
+ bool write(BookmarkItem *root);
private:
void readChildElements(QXmlStreamReader &reader, BookmarkItem *parentItem);
+ void writeChildElements(QXmlStreamWriter &writer, BookmarkItem *parentItem);
QString m_path;
};