mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-14 16:51:18 +10:00
chore(download manager): Added manage_queue_signal
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
pub struct CompatibilityLayer {
|
||||
|
||||
}
|
||||
@ -1,3 +1,4 @@
|
||||
mod prefix;
|
||||
mod registry;
|
||||
mod tool;
|
||||
mod tool;
|
||||
mod compatibility_layer;
|
||||
@ -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!()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user