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;
114 #endif // ZYPPNG_MEDIA_NETWORK_DOWNLOADSPEC_H DownloadSpec & setHeaderChecksum(const zypp::CheckSum &sum)
DownloadSpec & operator=(const DownloadSpec &other)
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())
const TransferSettings & settings() const
DownloadSpec & setHeaderSize(const zypp::ByteCount &bc)
zypp::ByteCount headerSize() const
zypp::media::TransferSettings TransferSettings
DownloadSpec & setCheckExistsOnly(bool set=true)
RW_pointer supporting 'copy on write' functionality.