aboutsummaryrefslogtreecommitdiff
path: root/libbible.h
diff options
context:
space:
mode:
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