diff options
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 |