libzypp
17.31.31
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.31/zypp-curl/ng/network/curlmultiparthandler.h>
Public Member Functions | |
virtual | ~CurlMultiPartDataReceiver ()=default |
virtual size_t | headerfunction (char *ptr, size_t bytes)=0 |
virtual size_t | writefunction (char *ptr, std::optional< off_t > offset, size_t bytes)=0 |
virtual bool | beginRange (off_t range, std::string &cancelReason) |
virtual bool | finishedRange (off_t range, bool validated, std::string &cancelReason) |
Data receiver interface for the CurlMultiPartHandler class.
Definition at line 18 of file curlmultiparthandler.h.
|
virtualdefault |
|
pure virtual |
Called for all received header data, after it was processed by the CurlMultiPartHandler.
Implemented in zypp::media::multifetchworker, and zyppng::NetworkRequestPrivate.
|
pure virtual |
Data callback func, this is called whenever there is actual data to be written to the file. If offset is set, usually when starting to write a new range, it means to continue to write on the current file pointer position, otherwise seek to the given one.
Implemented in zypp::media::multifetchworker, and zyppng::NetworkRequestPrivate.
|
inlinevirtual |
Called everytime a new range is about to be written, returning false from the function will immediately cancel the request and not write anything to the file.
range | The index of the range that is to be started |
cancelReason | Set to indicate why the request was cancelled. |
Reimplemented in zypp::media::multifetchworker.
Definition at line 41 of file curlmultiparthandler.h.
|
inlinevirtual |
Called everytime a range was finished, returning false from the function will cancel the request.
range | The index of the range that was finished |
validated | Indicates of the range data could be validated against its given checksum |
cancelReason | Set to indicate why the request was cancelled. |
Reimplemented in zypp::media::multifetchworker.
Definition at line 53 of file curlmultiparthandler.h.