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;
116 #endif // ZYPPNG_MEDIA_NETWORK_DOWNLOADSPEC_H DownloadSpec & setHeaderChecksum(const zypp::CheckSum &sum)
Store and operate with byte count.
DownloadSpec & setTransferSettings(TransferSettings &&set)
DownloadSpec & setPreferredChunkSize(const zypp::ByteCount &bc)
DownloadSpec & setTargetPath(const zypp::Pathname &path)
bool metalinkEnabled() const
zypp::filesystem::Pathname deltaFile() const
DownloadSpec & setExpectedFileSize(const zypp::ByteCount &bc)
DownloadSpec & setDeltaFile(const zypp::Pathname &file)
bool checkExistsOnly() const
zypp::ByteCount preferredChunkSize() const
const std::optional< zypp::CheckSum > & headerChecksum() const
zypp::RWCOW_pointer< DownloadSpecPrivate > d_ptr
DownloadSpec & setUrl(const Url &url)
const zypp::Pathname & targetPath() const
zypp::ByteCount expectedFileSize() const
DownloadSpec & setMetalinkEnabled(bool enable=true)
DownloadSpec(Url file, zypp::filesystem::Pathname targetPath, zypp::ByteCount expectedFileSize=zypp::ByteCount())
#define ZYPP_DECLARE_PRIVATE(Class)
const TransferSettings & settings() const
DownloadSpec & setHeaderSize(const zypp::ByteCount &bc)
zypp::ByteCount headerSize() const
DownloadSpec & operator=(const DownloadSpec &other)=default
zypp::media::TransferSettings TransferSettings
DownloadSpec & setCheckExistsOnly(bool set=true)
RW_pointer supporting 'copy on write' functionality.