--- a/application/application.h Wed Nov 27 17:14:57 2024 +0100 +++ b/application/application.h Wed Nov 27 18:45:08 2024 +0100 @@ -52,8 +52,17 @@ typedef struct DavApp { DavConfig *dav_config; UiList *repos; + UiList *transfers; } DavApp; +// download/upload +typedef struct DavTransfer { + char *label; + size_t label_len; + double progress; + UiObject *window; + time_t last_update; +} DavTransfer; typedef enum DavResourceViewType { DAV_RESOURCE_VIEW_PROPERTIES = 0, @@ -67,6 +76,8 @@ * main window document object */ typedef struct DavBrowser { + UiObject *window; + UiContext *ctx; DavSession *sn; UiThreadpool *dav_queue; @@ -162,6 +173,12 @@ DavApp* get_application(void); +void* transfers_getlabel(void *data, int col); + +void application_register_transfer(DavTransfer *trans); +void application_remove_transfer(DavTransfer *trans); +void application_update_transferlist(void); + DavApp* application_create_app_document(void); void application_update_repolist(DavApp *app); @@ -196,6 +213,8 @@ void action_open_properties(UiEvent *event, void *data); +void action_transfer_selected(UiEvent *event, void *data); + #ifdef __cplusplus } #endif