14#ifndef ZYPPNG_MEDIA_NETWORK_DOWNLOADSPEC_H
15#define ZYPPNG_MEDIA_NETWORK_DOWNLOADSPEC_H
17#include <zypp-core/zyppng/base/zyppglobal.h>
18#include <zypp-core/zyppng/core/Url>
19#include <zypp-core/Pathname.h>
20#include <zypp-core/base/PtrTypes.h>
21#include <zypp-core/ByteCount.h>
22#include <zypp-core/CheckSum.h>
23#include <zypp-curl/TransferSettings>
30 class DownloadSpecPrivate;
51 const Url &
url ()
const;
Store and operate with byte count.
const TransferSettings & settings() const
DownloadSpec & setUrl(const Url &url)
zypp::RWCOW_pointer< DownloadSpecPrivate > d_ptr
DownloadSpec(const DownloadSpec &other)
zypp::ByteCount preferredChunkSize() const
DownloadSpec & operator=(const DownloadSpec &other)
DownloadSpec & setDeltaFile(const zypp::Pathname &file)
DownloadSpec & setExpectedFileSize(const zypp::ByteCount &bc)
const std::optional< zypp::CheckSum > & headerChecksum() const
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)
zypp::media::TransferSettings TransferSettings
RW_pointer supporting 'copy on write' functionality.