14#ifndef ZYPPNG_MEDIA_NETWORK_DOWNLOADSPEC_H
15#define ZYPPNG_MEDIA_NETWORK_DOWNLOADSPEC_H
18#include <zypp-core/zyppng/core/Url>
23#include <zypp-curl/TransferSettings>
30 class DownloadSpecPrivate;
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Store and operate with byte count.
DownloadSpec(DownloadSpec &&) noexcept=default
const TransferSettings & settings() const
DownloadSpec & setUrl(const Url &url)
zypp::RWCOW_pointer< DownloadSpecPrivate > d_ptr
DownloadSpec(Url file, zypp::filesystem::Pathname targetPath, zypp::ByteCount expectedFileSize=zypp::ByteCount())
zypp::ByteCount preferredChunkSize() const
DownloadSpec(const DownloadSpec &other)=default
DownloadSpec & setDeltaFile(const zypp::Pathname &file)
DownloadSpec & setExpectedFileSize(const zypp::ByteCount &bc)
const std::optional< zypp::CheckSum > & headerChecksum() const
DownloadSpec & operator=(const DownloadSpec &other)=default
DownloadSpec & setCheckExistsOnly(bool set=true)
zypp::ByteCount headerSize() const
zypp::filesystem::Pathname deltaFile() const
DownloadSpec & setHeaderChecksum(const zypp::CheckSum &sum)
DownloadSpec & setHeaderSize(const zypp::ByteCount &bc)
const zypp::Pathname & targetPath() const
DownloadSpec & setTransferSettings(TransferSettings &&set)
DownloadSpec & setMetalinkEnabled(bool enable=true)
DownloadSpec & setTargetPath(const zypp::Pathname &path)
zypp::ByteCount expectedFileSize() const
bool metalinkEnabled() const
bool checkExistsOnly() const
DownloadSpec & setPreferredChunkSize(const zypp::ByteCount &bc)
Easy-to use interface to the ZYPP dependency resolver.
zypp::media::TransferSettings TransferSettings
RW_pointer supporting 'copy on write' functionality.
#define ZYPP_DECLARE_PRIVATE(Class)