Private
Public Access
1
0

better d-bus interface for attachments

This commit is contained in:
2025-05-26 16:19:26 -07:00
parent 831e490eb4
commit 2b5df53cc3
5 changed files with 88 additions and 53 deletions

View File

@@ -60,6 +60,7 @@ pub mod target {
pub static EVENT: &str = "event";
pub static SETTINGS: &str = "settings";
pub static UPDATES: &str = "updates";
pub static ATTACHMENTS: &str = "attachments";
}
pub struct Daemon {
@@ -284,6 +285,12 @@ impl Daemon {
let attachment = self.attachment_store.get_attachment(&guid);
reply.send(attachment).unwrap();
}
Event::DownloadAttachment(attachment_id, reply) => {
// For now, just return success - we'll implement the actual download logic later
log::info!(target: target::ATTACHMENTS, "Download requested for attachment: {}", attachment_id);
reply.send(()).unwrap();
}
}
}