45 AddBook(
const std::shared_ptr<AuxFunc> &af,
46 const std::string &collection_name,
const bool &remove_sources,
47 const std::shared_ptr<BookMarks> &bookmarks);
62 std::tuple<std::filesystem::path, std::filesystem::path>> &books);
76 std::filesystem::path>> &books);
91 const std::filesystem::path &archive_path,
93 std::tuple<std::filesystem::path, std::filesystem::path>> &books);
107 const std::filesystem::path &archive_path,
109 std::tuple<std::filesystem::path, std::filesystem::path>> &books);
122 const std::filesystem::path &archive_path,
124 std::tuple<std::filesystem::path, std::filesystem::path>> &books);
138 const std::filesystem::path &archive_path,
140 std::tuple<std::filesystem::path, std::filesystem::path>> &books);
149 static std::vector<std::string>
151 const std::shared_ptr<AuxFunc> &af);
155 remove_src(
const std::vector<
156 std::tuple<std::filesystem::path, std::filesystem::path>> &books);
158 std::shared_ptr<AuxFunc> af;
159 std::string collection_name;
160 bool remove_sources =
false;
161 std::shared_ptr<BookMarks> bookmarks;
void add_to_existing_archive(const std::filesystem::path &archive_path, const std::vector< std::tuple< std::filesystem::path, std::filesystem::path > > &books)
Adds books to existing archive.
void add_to_existing_archive_dir(const std::filesystem::path &archive_path, const std::vector< std::tuple< std::filesystem::path, std::filesystem::path > > &books)
Adds books to existing archive.
AddBook(const std::shared_ptr< AuxFunc > &af, const std::string &collection_name, const bool &remove_sources, const std::shared_ptr< BookMarks > &bookmarks)
AddBook constructor.
void simple_add_dir(const std::vector< std::tuple< std::filesystem::path, std::filesystem::path > > &books)
Adds directories containing book files to collection.
void overwrite_archive_dir(const std::filesystem::path &archive_path, const std::vector< std::tuple< std::filesystem::path, std::filesystem::path > > &books)
Removes archive from collection and replaces it by new one.
void overwrite_archive(const std::filesystem::path &archive_path, const std::vector< std::tuple< std::filesystem::path, std::filesystem::path > > &books)
Removes archive from collection and replaces it by new one.