aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks/formats/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bookmarks/formats/format.h')
-rw-r--r--lib/bookmarks/formats/format.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/bookmarks/formats/format.h b/lib/bookmarks/formats/format.h
new file mode 100644
index 0000000..e96dfcc
--- /dev/null
+++ b/lib/bookmarks/formats/format.h
@@ -0,0 +1,36 @@
+/*
+ * This file is part of smolbote. It's copyrighted by the contributors recorded
+ * in the version control history of the file, available from its original
+ * location: https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote
+ *
+ * SPDX-License-Identifier: GPL-3.0
+ */
+
+#ifndef BOOKMARKSFORMAT_H
+#define BOOKMARKSFORMAT_H
+
+class QIODevice;
+class BookmarkItem;
+
+enum BookmarksFormats {
+ XbelFormat
+};
+
+template<BookmarksFormats format>
+class BookmarksFormat
+{
+public:
+ explicit BookmarksFormat(QIODevice *device)
+ {
+ m_device = device;
+ }
+
+ void read(BookmarkItem *root);
+ void write(BookmarkItem *root);
+
+protected:
+ QIODevice *m_device;
+};
+
+#endif // BOOKMARKSFORMAT_H
+