aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks/bookmarkformat.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-01-16 21:40:15 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-01-16 21:55:45 +0200
commit198be208d49990c3535ac765735768ad1ae79c1b (patch)
tree98b3ef03f55e0f08893cdd6713effbf54f10f11f /lib/bookmarks/bookmarkformat.h
parentMove BookmarksWidget out of libbookmarks (diff)
downloadsmolbote-198be208d49990c3535ac765735768ad1ae79c1b.tar.xz
Add Firefox bookmarks.json format to libbookmarks
- can only read folders and bookmarks, their title and uri fields Not supported by Bookmark Model: - Separator items - Date added and Date modified fields
Diffstat (limited to 'lib/bookmarks/bookmarkformat.h')
-rw-r--r--lib/bookmarks/bookmarkformat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bookmarks/bookmarkformat.h b/lib/bookmarks/bookmarkformat.h
index 673acbd..5cd1860 100644
--- a/lib/bookmarks/bookmarkformat.h
+++ b/lib/bookmarks/bookmarkformat.h
@@ -14,7 +14,8 @@
class QIODevice;
enum BookmarkFormats {
- XbelFormat
+ XbelFormat,
+ FirefoxJsonFormat
};
template<BookmarkFormats format>
@@ -23,6 +24,7 @@ class BookmarkFormat
public:
explicit BookmarkFormat(QIODevice *device)
{
+ Q_CHECK_PTR(m_device);
m_device = device;
}
~BookmarkFormat()