diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-18 07:57:49 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-07-18 07:57:49 +0300 |
commit | d6542ff3cfd852102d025a06d3f55002047aed1e (patch) | |
tree | f0fc1a70956764cdbfca5751fb2af843ddb72058 /src/gmrequest.h | |
parent | 9f1c07241a39d4aa2ebc34986731bba8467d4d19 (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.h | 3 |
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) | |||
64 | iDeclareNotifyFunc(GmRequest, Finished) | 64 | iDeclareNotifyFunc(GmRequest, Finished) |
65 | iDeclareAudienceGetter(GmRequest, updated) | 65 | iDeclareAudienceGetter(GmRequest, updated) |
66 | iDeclareAudienceGetter(GmRequest, finished) | 66 | iDeclareAudienceGetter(GmRequest, finished) |
67 | |||
68 | typedef void (*iGmRequestProgressFunc)(iGmRequest *, size_t current, size_t total); | ||
67 | 69 | ||
68 | void enableFilters_GmRequest (iGmRequest *, iBool enable); | 70 | void enableFilters_GmRequest (iGmRequest *, iBool enable); |
69 | void setUrl_GmRequest (iGmRequest *, const iString *url); | 71 | void setUrl_GmRequest (iGmRequest *, const iString *url); |
70 | void setTitanData_GmRequest (iGmRequest *, const iString *mime, | 72 | void setTitanData_GmRequest (iGmRequest *, const iString *mime, |
71 | const iBlock *payload, const iString *token); | 73 | const iBlock *payload, const iString *token); |
74 | void setSendProgressFunc_GmRequest(iGmRequest *, iGmRequestProgressFunc func); | ||
72 | void submit_GmRequest (iGmRequest *); | 75 | void submit_GmRequest (iGmRequest *); |
73 | void cancel_GmRequest (iGmRequest *); | 76 | void cancel_GmRequest (iGmRequest *); |
74 | 77 | ||