mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-12-02 16:41:58 +00:00
38 lines
466 B
C
38 lines
466 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class UpdateMessage
|
||
|
{
|
||
|
public:
|
||
|
enum Type
|
||
|
{
|
||
|
UpdateFailed,
|
||
|
UpdateProgress,
|
||
|
UpdateFinished
|
||
|
};
|
||
|
|
||
|
UpdateMessage(void* receiver, Type type)
|
||
|
{
|
||
|
init(receiver,type);
|
||
|
}
|
||
|
|
||
|
UpdateMessage(Type type)
|
||
|
{
|
||
|
init(0,type);
|
||
|
}
|
||
|
|
||
|
void init(void* receiver, Type type)
|
||
|
{
|
||
|
this->progress = 0;
|
||
|
this->receiver = receiver;
|
||
|
this->type = type;
|
||
|
}
|
||
|
|
||
|
void* receiver;
|
||
|
Type type;
|
||
|
std::string message;
|
||
|
int progress;
|
||
|
};
|
||
|
|