14#ifndef ZYPPNG_CURL_ZCKHELPER_H_INCLUDED
15#define ZYPPNG_CURL_ZCKHELPER_H_INCLUDED
21#include <zypp-core/zyppng/base/Base>
32 ZckError(
const std::string & msg_r );
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Store and operate with byte count.
Base class for Exception.
ZckError(const std::string &msg_r)
static PrepareResult prepareZck(const zypp::Pathname &delta, const zypp::Pathname &target, const zypp::ByteCount &expectedFileSize)
static bool validateZckFile(const zypp::Pathname &file, std::string &error)
void setFailed(const std::string &msg)
std::optional< zypp::ByteCount > _expectedFileSize
expected< void > buildZchunkFile(const zypp::Pathname &target, const zypp::Pathname &delta, const std::optional< zypp::ByteCount > &expectedFileSize, const std::optional< zypp::ByteCount > &zcKHeaderSize)
Signal< void(PrepareResult)> _sigFinished
zypp::ByteCount _bytesReused
SignalProxy< void(PrepareResult)> sigFinished()
Called once the zchunk build process is finished, either with error or success.
zypp::AutoDispose< zckCtx * > _zchunkContext
static bool isZchunkFile(const zypp::Pathname &file)
SignalProxy< void(const std::vector< Block > &)> sigBlocksRequired()
Signal to notify the caller about required blocks, once the blocks are downloaded call cont to contin...
static zypp::ByteCount minZchunkDownloadSize()
The minimum size to download to have enough data to know the full header size.
Signal< void(const std::vector< Block > &)> _sigBlocksRequired
std::optional< zypp::ByteCount > _zcKHeaderSize
AutoDispose<int> calling close
zypp::ByteCount _bytesReused
std::vector< Block > _blocks