summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkstreeformats.hpp
blob: 380a7e64cad6dac542728559f74b5f4f1b13eb44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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};