chore(download manager): Added manage_go_signal command

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-01-01 13:21:27 +11:00
parent f64782e5d4
commit ea70ec9453
3 changed files with 136 additions and 73 deletions

View File

@ -7,11 +7,12 @@ use super::{
};
pub trait Downloadable: Send + Sync {
fn download(&mut self) -> Result<(), ApplicationDownloadError>;
fn download(&self) -> Result<bool, ApplicationDownloadError>;
fn progress(&self) -> Arc<ProgressObject>;
fn control_flag(&self) -> DownloadThreadControl;
fn metadata(&self) -> Arc<DownloadableMetadata>;
fn on_initialised(&self, app_handle: &AppHandle);
fn on_error(&self, app_handle: &AppHandle);
fn on_complete(&self, app_handle: &AppHandle);
fn on_incomplete(&self, app_handle: &AppHandle);
}