2020-07-21 14:03:01 +00:00
|
|
|
#pragma once
|
|
|
|
#include "common/progress_callback.h"
|
|
|
|
#include "host_interface.h"
|
|
|
|
|
|
|
|
class HostInterfaceProgressCallback : public BaseProgressCallback
|
|
|
|
{
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
u32 ModalPrompt(const char* message, u32 num_options, ...) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Redraw(bool force);
|
|
|
|
|
|
|
|
int m_last_progress_percent = -1;
|
|
|
|
};
|