fb2 support
This commit is contained in:
18 files changed
+2352
-54
No files matched your search
@@ -15,6 +15,7 @@
|
||||
#include "backend/formats/FormatRegistry.h"
|
||||
#include "backend/formats/WebImageProvider.h"
|
||||
#include "backend/formats/sources/DirByteSource.h"
|
||||
#include "backend/formats/sources/Fb2ByteSource.h"
|
||||
#include "backend/formats/sources/RarByteSource.h"
|
||||
#include "backend/formats/sources/ZipByteSource.h"
|
||||
#include "backend/HistoryModel.h"
|
||||
@@ -102,6 +103,9 @@ int main(int argc, char *argv[])
|
||||
FormatSpec::comic({}, /*matchesDirectory=*/true, QStringLiteral("dir"),
|
||||
[] { return std::make_unique<DirByteSource>(); }),
|
||||
FormatSpec::epub([] { return std::make_unique<ZipByteSource>(); }),
|
||||
FormatSpec::fb2(QStringLiteral("fb2"), [] { return std::make_unique<Fb2ByteSource>(); }),
|
||||
FormatSpec::fb2(QStringLiteral("fbz"), [] { return std::make_unique<Fb2ByteSource>(); }),
|
||||
FormatSpec::fb2(QStringLiteral("fb2.zip"), [] { return std::make_unique<Fb2ByteSource>(); }),
|
||||
});
|
||||
|
||||
HistoryModel historyModel(formatRegistry);
|
||||
|
||||
Reference in new issue
Block a user