summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkstreeformats.hpp
blob: 2f001ed9f8bb6e96a55d163ca99286908d23b56f (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 QList<QString> (*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};