Add error and update-not-available events for auto updater.
This commit is contained in:
parent
df399f7c8c
commit
d4e362ec89
4 changed files with 43 additions and 12 deletions
|
@ -17,6 +17,12 @@ namespace auto_updater {
|
|||
|
||||
class AutoUpdaterDelegate {
|
||||
public:
|
||||
// An error happened.
|
||||
virtual void OnError(const std::string& error) {}
|
||||
|
||||
// There is no available update.
|
||||
virtual void OnUpdateNotAvailable() {}
|
||||
|
||||
// There is a new update which has been downloaded.
|
||||
virtual void OnUpdateDownloaded(const std::string& release_notes,
|
||||
const std::string& release_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue