Refactor using Fable
This commit is contained in:
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;
|
||||
};
|
||||
Reference in new issue
Block a user