summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkstreeformats.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/bookmarkstreeformats.hpp')
-rw-r--r--src/bookmarks/bookmarkstreeformats.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/bookmarks/bookmarkstreeformats.hpp b/src/bookmarks/bookmarkstreeformats.hpp
new file mode 100644
index 00000000..380a7e64
--- /dev/null
+++ b/src/bookmarks/bookmarkstreeformats.hpp
@@ -0,0 +1,21 @@
+/* ============================================================
+ * rekonq
+ * ============================================================
+ * SPDX-License-Identifier: GPL-3.0-only
+ * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
+ * ============================================================
+ * Description: rekonq bookmarks model
+ * ============================================================ */
+
+#pragma once
+
+#include "bookmarkstreeformat_xbel.h"
+#include <array>
+
+typedef bool (*t_readFn)(QIODevice *, BookmarksTreeItem *);
+typedef bool (*t_writeFn)(QIODevice *, const QVector<const BookmarksTreeItem *> &);
+
+enum Formats { FormatXbel = 0 };
+
+constexpr std::array<t_readFn, 1> readFns{&xbel::read};
+constexpr std::array<t_writeFn, 1> writeFns{&xbel::write};