From dcfac3432f981191da68f14f21f5010fc4da51c0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 Nov 2020 11:38:59 -0500 Subject: Fixed issue with status reporting --- libbible.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libbible.h') diff --git a/libbible.h b/libbible.h index cf8a1f4..85ea9eb 100644 --- a/libbible.h +++ b/libbible.h @@ -45,14 +45,18 @@ namespace libbible { class Status { public: - void update(unsigned long totalBytes, unsigned long completedBytes, std::string message); + virtual void update(unsigned long totalBytes, unsigned long completedBytes, std::string message) {} }; /** * @param status Status update method is called asynchronously as download progresses + */ + void setStatusReporter(Status& status); + + /** * @return A mapping from language to bible version names */ - std::map> downloadModsAvailable(Status *status = nullptr); + std::map> downloadModsAvailable(); /** * Cancel an in-progress download -- cgit v1.2.3