use std::string::String;
use install_framework_core::interface::InstallMethod;
use install_framework_base::interface::InstallationState;
use install_framework_core::interface::Component;
use crate::error::GuiError;
pub enum Page
{
Welcome(&'static str, &'static str, &'static str), Error(GuiError),
Processing,
ComponentView(Vec<Component>, Option<InstallationState>, bool),
Finish(String)
}
pub enum RenderMessage
{
UserInput(String), SwitchPage(Page),
BeginStep(String),
UpdateStep(f32),
BeginSubstep(String),
UpdateSubstep(f32),
EndSubstep
}
pub enum ThreadMessage
{
UserInput(String),
Terminate,
Next(Option<(InstallMethod, bool)>),
InstallComponents(Vec<Component>)
}