Refactor using Fable

This commit is contained in:
Agel committed 2026-07-31 17:31:02 +02:00
1 parent 1a60a6b93c
commit 83968646c6
90 files changed
+2080 -2267

No files matched your search

@@ -0,0 +1,20 @@
#pragma once
#include "backend/formats/IByteSource.h"
// Byte source over an FB2 document: entries are the ids of its base64
// <binary> elements. Parsing is deferred to the calls that need it so that
// open() stays cheap for per-request provider use.
class Fb2ByteSource : public IByteSource {
public:
bool open(const QString &path) override;
QStringList listEntries() const override;
QByteArray readEntry(const QString &binaryId) const override;
QByteArray contentHash() const override;
private:
QByteArray rawBytes() const;
QString m_path;
mutable QByteArray m_hash;
};