aboutsummaryrefslogtreecommitdiff
path: root/libbible.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2020-11-18 11:38:59 -0500
committerYour Name <you@example.com>2020-11-18 11:38:59 -0500
commitdcfac3432f981191da68f14f21f5010fc4da51c0 (patch)
tree7e2a405d15f0ce4ce1c83e070d68fcb5088ed3c2 /libbible.h
parent49c05187f739779a6433f75a348529c26e123e94 (diff)
downloadlibbible-dcfac3432f981191da68f14f21f5010fc4da51c0.tar.gz
libbible-dcfac3432f981191da68f14f21f5010fc4da51c0.tar.bz2
libbible-dcfac3432f981191da68f14f21f5010fc4da51c0.zip
Fixed issue with status reporting
Diffstat (limited to 'libbible.h')
-rw-r--r--libbible.h8
1 files changed, 6 insertions, 2 deletions
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<std::string, std::vector<std::string>> downloadModsAvailable(Status *status = nullptr);
+ std::map<std::string, std::vector<std::string>> downloadModsAvailable();
/**
* Cancel an in-progress download