diff --git a/repertory/librepertory/include/db/i_file_mgr_db.hpp b/repertory/librepertory/include/db/i_file_mgr_db.hpp index 080b7fab..8d4627f1 100644 --- a/repertory/librepertory/include/db/i_file_mgr_db.hpp +++ b/repertory/librepertory/include/db/i_file_mgr_db.hpp @@ -41,45 +41,42 @@ public: std::string source_path; }; - struct upload_entry final { - std::string api_path; - std::string source_path; - }; + using upload_entry = upload_active_entry; public: [[nodiscard]] virtual auto add_resume(const resume_entry &entry) -> bool = 0; [[nodiscard]] virtual auto add_upload(const upload_entry &entry) -> bool = 0; - [[nodiscard]] virtual auto - add_upload_active(const upload_active_entry &entry) -> bool = 0; + [[nodiscard]] virtual auto add_upload_active(const upload_active_entry &entry) + -> bool = 0; virtual void clear() = 0; - [[nodiscard]] virtual auto - get_next_upload() const -> std::optional = 0; + [[nodiscard]] virtual auto get_next_upload() const + -> std::optional = 0; - [[nodiscard]] virtual auto - get_resume_list() const -> std::vector = 0; + [[nodiscard]] virtual auto get_resume_list() const + -> std::vector = 0; [[nodiscard]] virtual auto get_upload(const std::string &api_path) const -> std::optional = 0; - [[nodiscard]] virtual auto - get_upload_active_list() const -> std::vector = 0; + [[nodiscard]] virtual auto get_upload_active_list() const + -> std::vector = 0; - [[nodiscard]] virtual auto - remove_resume(const std::string &api_path) -> bool = 0; + [[nodiscard]] virtual auto remove_resume(const std::string &api_path) + -> bool = 0; - [[nodiscard]] virtual auto - remove_upload(const std::string &api_path) -> bool = 0; + [[nodiscard]] virtual auto remove_upload(const std::string &api_path) + -> bool = 0; - [[nodiscard]] virtual auto - remove_upload_active(const std::string &api_path) -> bool = 0; + [[nodiscard]] virtual auto remove_upload_active(const std::string &api_path) + -> bool = 0; - [[nodiscard]] virtual auto - rename_resume(const std::string &from_api_path, - const std::string &to_api_path) -> bool = 0; + [[nodiscard]] virtual auto rename_resume(const std::string &from_api_path, + const std::string &to_api_path) + -> bool = 0; }; } // namespace repertory