mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-14 16:51:18 +10:00
feat(download manager): Added generic download manager
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use tauri::AppHandle;
|
||||
|
||||
use crate::download_manager::{application_download_error::ApplicationDownloadError, download_thread_control_flag::DownloadThreadControl, downloadable::Downloadable, downloadable_metadata::DownloadableMetadata, progress_object::ProgressObject};
|
||||
|
||||
pub struct ToolDownloadAgent {
|
||||
@ -10,7 +12,7 @@ pub struct ToolDownloadAgent {
|
||||
progress: Arc<ProgressObject>,
|
||||
}
|
||||
impl Downloadable for ToolDownloadAgent {
|
||||
fn download(&self) -> Result<bool, ApplicationDownloadError> {
|
||||
fn download(&self, app_handle: &AppHandle) -> Result<bool, ApplicationDownloadError> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user