better d-bus interface for attachments
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user