2020-07-21 14:03:01 +00:00
|
|
|
#pragma once
|
|
|
|
#include "common/progress_callback.h"
|
|
|
|
#include "host_interface.h"
|
|
|
|
|
2020-08-06 09:32:53 +00:00
|
|
|
class HostInterfaceProgressCallback final : public BaseProgressCallback
|
2020-07-21 14:03:01 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-07-31 07:09:18 +00:00
|
|
|
HostInterfaceProgressCallback();
|
2020-07-21 14:03:01 +00:00
|
|
|
|
|
|
|
void PushState() override;
|
|
|
|
void PopState() override;
|
|
|
|
|
|
|
|
void SetCancellable(bool cancellable) override;
|
2020-08-06 09:32:53 +00:00
|
|
|
void SetTitle(const char* title) override;
|
2020-07-21 14:03:01 +00:00
|
|
|
void SetStatusText(const char* text) override;
|
|
|
|
void SetProgressRange(u32 range) override;
|
|
|
|
void SetProgressValue(u32 value) override;
|
|
|
|
|
|
|
|
void DisplayError(const char* message) override;
|
|
|
|
void DisplayWarning(const char* message) override;
|
|
|
|
void DisplayInformation(const char* message) override;
|
|
|
|
void DisplayDebugMessage(const char* message) override;
|
|
|
|
|
|
|
|
void ModalError(const char* message) override;
|
|
|
|
bool ModalConfirmation(const char* message) override;
|
2020-08-06 09:32:53 +00:00
|
|
|
void ModalInformation(const char* message) override;
|
2020-07-21 14:03:01 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void Redraw(bool force);
|
|
|
|
|
|
|
|
int m_last_progress_percent = -1;
|
|
|
|
};
|