10b6042a9c
Closes #799
25 lines
739 B
C++
25 lines
739 B
C++
#pragma once
|
|
|
|
#include "HybridEpubSpec.hpp"
|
|
|
|
namespace margelo::nitro::nitroepub {
|
|
|
|
class HybridEpub final : public HybridEpubSpec {
|
|
public:
|
|
HybridEpub() : HybridObject(TAG) {}
|
|
~HybridEpub() override = default;
|
|
|
|
std::shared_ptr<Promise<EpubNovel>> parseNovelAndChapters(
|
|
const std::string& epubDirPath) override;
|
|
std::shared_ptr<Promise<EpubExportResult>> exportEpub(
|
|
const EpubExportMetadata& metadata,
|
|
const std::vector<EpubExportChapter>& chapters,
|
|
const std::string& outputPath,
|
|
const std::function<
|
|
std::shared_ptr<Promise<std::shared_ptr<Promise<void>>>>(
|
|
double, double, const std::string&)>&
|
|
onProgress) override;
|
|
};
|
|
|
|
} // namespace margelo::nitro::nitroepub
|