From 500e1f9892dd41419663e9f72cf47bab5b2aca0b Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 23 Sep 2024 00:33:33 -0500 Subject: Saving work. --- src/archive.hpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/archive.hpp') diff --git a/src/archive.hpp b/src/archive.hpp index d8464e5..257f204 100644 --- a/src/archive.hpp +++ b/src/archive.hpp @@ -3,13 +3,14 @@ #include "result.hpp" -#include #include +#include +#include #include #include #include -namespace getsuyomi { +namespace bookmouse { enum class ArchiveError { @@ -19,7 +20,7 @@ enum class ArchiveError Unimplemented }; -using ArchiveResult = Result, ArchiveError>; +using ArchiveResult = Result>, ArchiveError>; class Archive { public: @@ -30,8 +31,13 @@ class Archive { class ZipArchive : public Archive { public: - explicit ZipArchive(const QString& filename); + explicit ZipArchive(const std::string& filename); virtual ~ZipArchive() override; + ZipArchive(const ZipArchive& rhs) = delete; + ZipArchive(ZipArchive&& rhs); + ZipArchive& operator=(const ZipArchive& rhs) = delete; + ZipArchive& operator=(ZipArchive&& rhs); + virtual ArchiveResult getPage(size_t page) override; virtual size_t numPages() const override; @@ -44,9 +50,9 @@ class ZipArchive : public Archive { std::vector m_filenames{}; std::vector m_fileSizes{}; - std::vector> m_pages{}; + std::vector>> m_pages{}; }; -} // namespace getsuyomi +} // namespace bookmouse #endif -- cgit v1.2.3