Private
Public Access
1
0

Repository: add support for attachment uploading

This commit is contained in:
2025-06-12 18:13:59 -07:00
parent 501bd3f604
commit 8dbe36fde1
3 changed files with 36 additions and 0 deletions

View File

@@ -59,11 +59,17 @@ namespace DBusService {
[DBus (name = "DownloadAttachment")]
public abstract void download_attachment(string attachment_id, bool preview) throws DBusError, IOError;
[DBus (name = "UploadAttachment")]
public abstract string upload_attachment(string path) throws DBusError, IOError;
[DBus (name = "AttachmentDownloadCompleted")]
public signal void attachment_download_completed(string attachment_id);
[DBus (name = "AttachmentDownloadFailed")]
public signal void attachment_download_failed(string attachment_id, string error_message);
[DBus (name = "AttachmentUploadCompleted")]
public signal void attachment_upload_completed(string upload_guid, string attachment_guid);
}
public struct RepositoryAttachmentInfoStruct {