43 d_ptr->_url = std::move(file);
44 d_ptr->_targetPath = std::move(targetPath);
45 d_ptr->_expectedFileSize = std::move( expectedFileSize );
61 return d_ptr->_targetPath;
66 d_ptr->_targetPath = path;
72 d_ptr->_metalink_enabled = enable;
78 return d_ptr->_metalink_enabled;
83 d_ptr->_checkExistanceOnly = ( set );
89 return d_ptr->_checkExistanceOnly;
100 return d_ptr->_delta;
105 d_ptr->_preferred_chunk_size = bc;
111 return d_ptr->_preferred_chunk_size;
116 return d_ptr->_settings;
121 d_ptr->_settings = std::move( set );
127 d_ptr->_settings = set;
133 d_ptr->_expectedFileSize = bc;
139 return d_ptr->_expectedFileSize;
144 d_ptr->_headerSize = bc;
150 return d_ptr->_headerSize;
156 return d->_headerChecksum;
163 d->_headerChecksum.reset();
165 d->_headerChecksum = sum;
Store and operate with byte count.
zypp::ByteCount _preferred_chunk_size
DownloadSpecPrivate()=default
TransferSettings _settings
DownloadSpecPrivate & operator=(DownloadSpecPrivate &&)=delete
std::optional< zypp::CheckSum > _headerChecksum
DownloadSpecPrivate * clone() const
zypp::Pathname _targetPath
DownloadSpecPrivate(DownloadSpecPrivate &&other) noexcept=default
zypp::ByteCount _expectedFileSize
zypp::ByteCount _headerSize
DownloadSpecPrivate & operator=(const DownloadSpecPrivate &)=delete
DownloadSpecPrivate(const DownloadSpecPrivate &other)=default
const TransferSettings & settings() const
DownloadSpec & setUrl(const Url &url)
zypp::RWCOW_pointer< DownloadSpecPrivate > d_ptr
zypp::ByteCount preferredChunkSize() const
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.
#define ZYPP_IMPL_PRIVATE(Class)