libzypp 17.35.9
|
#include <zypp-curl/ng/network/downloadspec.h>
Private Attributes | |
zypp::RWCOW_pointer< DownloadSpecPrivate > | d_ptr |
Specifies all aspects of a download. Used together with the zyppng::Download and zyppng::Downloader classes
Definition at line 37 of file downloadspec.h.
zyppng::DownloadSpec::DownloadSpec | ( | Url | file, |
zypp::filesystem::Pathname | targetPath, | ||
zypp::ByteCount | expectedFileSize = zypp::ByteCount() ) |
Definition at line 40 of file downloadspec.cc.
|
default |
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
const Url & zyppng::DownloadSpec::url | ( | ) | const |
Returns the source URL of the download
Definition at line 48 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setUrl | ( | const Url & | url | ) |
Definition at line 53 of file downloadspec.cc.
const zypp::Pathname & zyppng::DownloadSpec::targetPath | ( | ) | const |
Returns the target file path, this is where the downloaded data is stored
Definition at line 59 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setTargetPath | ( | const zypp::Pathname & | path | ) |
Definition at line 64 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setMetalinkEnabled | ( | bool | enable = true | ) |
Enabled or disabled metalink handling. Enabled by default.
Definition at line 70 of file downloadspec.cc.
bool zyppng::DownloadSpec::metalinkEnabled | ( | ) | const |
Definition at line 76 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setCheckExistsOnly | ( | bool | set = true | ) |
Enables a special mode, in this case only the existance of the file is checked but no data is actually downloaded
Definition at line 81 of file downloadspec.cc.
bool zyppng::DownloadSpec::checkExistsOnly | ( | ) | const |
Definition at line 87 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setDeltaFile | ( | const zypp::Pathname & | file | ) |
Set a already existing local file to be used for partial downloading, in case of a multichunk download all chunks from the file that have the expected checksum will be reused instead of downloaded
Definition at line 92 of file downloadspec.cc.
zypp::Pathname zyppng::DownloadSpec::deltaFile | ( | ) | const |
Definition at line 98 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setPreferredChunkSize | ( | const zypp::ByteCount & | bc | ) |
Sets the prefered amount of bytes the downloader tries to request from a single server per metalink chunk request. If the metalink description has smaller chunks those are coalesced to match the preferred size.
Setting this to 0 tells the Downloader instance to automatically calculate the chunk size. This is also the default.
Definition at line 103 of file downloadspec.cc.
zypp::ByteCount zyppng::DownloadSpec::preferredChunkSize | ( | ) | const |
Definition at line 109 of file downloadspec.cc.
const TransferSettings & zyppng::DownloadSpec::settings | ( | ) | const |
Returns the
Definition at line 114 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setTransferSettings | ( | TransferSettings && | set | ) |
Definition at line 119 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setTransferSettings | ( | const TransferSettings & | set | ) |
Definition at line 125 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setExpectedFileSize | ( | const zypp::ByteCount & | bc | ) |
Definition at line 131 of file downloadspec.cc.
zypp::ByteCount zyppng::DownloadSpec::expectedFileSize | ( | ) | const |
Definition at line 137 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setHeaderSize | ( | const zypp::ByteCount & | bc | ) |
Definition at line 142 of file downloadspec.cc.
zypp::ByteCount zyppng::DownloadSpec::headerSize | ( | ) | const |
Definition at line 148 of file downloadspec.cc.
const std::optional< zypp::CheckSum > & zyppng::DownloadSpec::headerChecksum | ( | ) | const |
Definition at line 153 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setHeaderChecksum | ( | const zypp::CheckSum & | sum | ) |
Definition at line 159 of file downloadspec.cc.
|
private |
Definition at line 111 of file downloadspec.h.