diff options
author | Your Name <you@example.com> | 2020-11-18 11:38:59 -0500 |
---|---|---|
committer | Your Name <you@example.com> | 2020-11-18 11:38:59 -0500 |
commit | dcfac3432f981191da68f14f21f5010fc4da51c0 (patch) | |
tree | 7e2a405d15f0ce4ce1c83e070d68fcb5088ed3c2 /libbible.h | |
parent | 49c05187f739779a6433f75a348529c26e123e94 (diff) | |
download | libbible-dcfac3432f981191da68f14f21f5010fc4da51c0.tar.gz libbible-dcfac3432f981191da68f14f21f5010fc4da51c0.tar.bz2 libbible-dcfac3432f981191da68f14f21f5010fc4da51c0.zip |
Fixed issue with status reporting
Diffstat (limited to 'libbible.h')
-rw-r--r-- | libbible.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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<std::string, std::vector<std::string>> downloadModsAvailable(Status *status = nullptr); + std::map<std::string, std::vector<std::string>> downloadModsAvailable(); /** * Cancel an in-progress download |