mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-19 10:27:15 +00:00
Renew the updater branch
Now with some actual consensus on what the updater will do!
This commit is contained in:
15
mmc_updater/src/UpdateObserver.h
Normal file
15
mmc_updater/src/UpdateObserver.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
/** Base class for observers of update installation status.
|
||||
* See UpdateInstaller::setObserver()
|
||||
*/
|
||||
class UpdateObserver
|
||||
{
|
||||
public:
|
||||
virtual void updateError(const std::string& errorMessage) = 0;
|
||||
virtual void updateProgress(int percentage) = 0;
|
||||
virtual void updateFinished() = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user