chore(download manager): Added manage_queue_signal

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-12-31 17:00:10 +11:00
parent a2e63aa2c8
commit f64782e5d4
12 changed files with 311 additions and 160 deletions

View File

@ -0,0 +1,3 @@
pub struct CompatibilityLayer {
}

View File

@ -1,3 +1,4 @@
mod prefix;
mod registry;
mod tool;
mod tool;
mod compatibility_layer;

View File

@ -9,28 +9,28 @@ pub struct ToolDownloadAgent {
control_flag: DownloadThreadControl,
progress: Arc<ProgressObject>,
}
impl Downloadable for ToolDownloadAgent {
fn id(&self) -> String {
self.id.clone()
}
fn progress(&self) -> Arc<ProgressObject> {
self.progress.clone()
}
fn control_flag(&self) -> DownloadThreadControl {
self.control_flag.clone()
}
fn install_dir(&self) -> String {
self.location.clone()
}
fn version(&self) -> String {
self.version.clone()
}
impl Downloadable for ToolDownloadAgent {
fn download(&mut self) -> Result<(), crate::download_manager::application_download_error::ApplicationDownloadError> {
todo!()
}
fn progress(&self) -> Arc<ProgressObject> {
todo!()
}
fn control_flag(&self) -> DownloadThreadControl {
todo!()
}
fn metadata(&self) -> crate::download_manager::downloadable_metadata::DownloadableMetadata {
todo!()
}
fn on_error(&self) {
todo!()
}
fn on_complete(&self) {
todo!()
}
}