41 d_ptr->_url = std::move(file);
42 d_ptr->_targetPath = std::move(targetPath);
43 d_ptr->_expectedFileSize = std::move( expectedFileSize );
63 return d_ptr->_targetPath;
68 d_ptr->_targetPath = path;
74 d_ptr->_metalink_enabled = enable;
80 return d_ptr->_metalink_enabled;
85 d_ptr->_checkExistanceOnly = ( set );
91 return d_ptr->_checkExistanceOnly;
102 return d_ptr->_delta;
107 d_ptr->_preferred_chunk_size = bc;
113 return d_ptr->_preferred_chunk_size;
118 return d_ptr->_settings;
123 d_ptr->_settings = std::move( set );
129 d_ptr->_settings = set;
135 d_ptr->_expectedFileSize = bc;
141 return d_ptr->_expectedFileSize;
146 d_ptr->_headerSize = bc;
152 return d_ptr->_headerSize;
158 return d->_headerChecksum;
165 d->_headerChecksum.reset();
167 d->_headerChecksum = sum;
Store and operate with byte count.
zypp::ByteCount _preferred_chunk_size
DownloadSpecPrivate()=default
TransferSettings _settings
std::optional< zypp::CheckSum > _headerChecksum
DownloadSpecPrivate(DownloadSpecPrivate &&other)=default
DownloadSpecPrivate * clone() const
zypp::Pathname _targetPath
zypp::ByteCount _expectedFileSize
zypp::ByteCount _headerSize
DownloadSpecPrivate(const DownloadSpecPrivate &other)=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 & 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)
Easy-to use interface to the ZYPP dependency resolver.
ZYPP_IMPL_PRIVATE(Provide)