summaryrefslogtreecommitdiff
path: root/src/gmrequest.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-18 07:57:49 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-18 07:57:49 +0300
commitd6542ff3cfd852102d025a06d3f55002047aed1e (patch)
treef0fc1a70956764cdbfca5751fb2af843ddb72058 /src/gmrequest.h
parent9f1c07241a39d4aa2ebc34986731bba8467d4d19 (diff)
UploadWidget: Monitoring progress
Socket can now tell us how much data is being sent, so the upload progress can be monitored.
Diffstat (limited to 'src/gmrequest.h')
-rw-r--r--src/gmrequest.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmrequest.h b/src/gmrequest.h
index 2b1f1bdd..97b23f3c 100644
--- a/src/gmrequest.h
+++ b/src/gmrequest.h
@@ -64,11 +64,14 @@ iDeclareNotifyFunc(GmRequest, Updated)
64iDeclareNotifyFunc(GmRequest, Finished) 64iDeclareNotifyFunc(GmRequest, Finished)
65iDeclareAudienceGetter(GmRequest, updated) 65iDeclareAudienceGetter(GmRequest, updated)
66iDeclareAudienceGetter(GmRequest, finished) 66iDeclareAudienceGetter(GmRequest, finished)
67
68typedef void (*iGmRequestProgressFunc)(iGmRequest *, size_t current, size_t total);
67 69
68void enableFilters_GmRequest (iGmRequest *, iBool enable); 70void enableFilters_GmRequest (iGmRequest *, iBool enable);
69void setUrl_GmRequest (iGmRequest *, const iString *url); 71void setUrl_GmRequest (iGmRequest *, const iString *url);
70void setTitanData_GmRequest (iGmRequest *, const iString *mime, 72void setTitanData_GmRequest (iGmRequest *, const iString *mime,
71 const iBlock *payload, const iString *token); 73 const iBlock *payload, const iString *token);
74void setSendProgressFunc_GmRequest(iGmRequest *, iGmRequestProgressFunc func);
72void submit_GmRequest (iGmRequest *); 75void submit_GmRequest (iGmRequest *);
73void cancel_GmRequest (iGmRequest *); 76void cancel_GmRequest (iGmRequest *);
74 77