libzypp 17.31.23
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/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 38 of file downloadspec.cc.
|
default |
|
default |
const Url & zyppng::DownloadSpec::url | ( | ) | const |
Returns the source URL of the download
Definition at line 50 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setUrl | ( | const Url & | url | ) |
Definition at line 55 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 61 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setTargetPath | ( | const zypp::Pathname & | path | ) |
Definition at line 66 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setMetalinkEnabled | ( | bool | enable = true | ) |
Enabled or disabled metalink handling. Enabled by default.
Definition at line 72 of file downloadspec.cc.
bool zyppng::DownloadSpec::metalinkEnabled | ( | ) | const |
Definition at line 78 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 83 of file downloadspec.cc.
bool zyppng::DownloadSpec::checkExistsOnly | ( | ) | const |
Definition at line 89 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 94 of file downloadspec.cc.
zypp::Pathname zyppng::DownloadSpec::deltaFile | ( | ) | const |
Definition at line 100 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 105 of file downloadspec.cc.
zypp::ByteCount zyppng::DownloadSpec::preferredChunkSize | ( | ) | const |
Definition at line 111 of file downloadspec.cc.
const TransferSettings & zyppng::DownloadSpec::settings | ( | ) | const |
Returns the
Definition at line 116 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setTransferSettings | ( | TransferSettings && | set | ) |
Definition at line 121 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setTransferSettings | ( | const TransferSettings & | set | ) |
Definition at line 127 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setExpectedFileSize | ( | const zypp::ByteCount & | bc | ) |
Definition at line 133 of file downloadspec.cc.
zypp::ByteCount zyppng::DownloadSpec::expectedFileSize | ( | ) | const |
Definition at line 139 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setHeaderSize | ( | const zypp::ByteCount & | bc | ) |
Definition at line 144 of file downloadspec.cc.
zypp::ByteCount zyppng::DownloadSpec::headerSize | ( | ) | const |
Definition at line 150 of file downloadspec.cc.
const std::optional< zypp::CheckSum > & zyppng::DownloadSpec::headerChecksum | ( | ) | const |
Definition at line 155 of file downloadspec.cc.
DownloadSpec & zyppng::DownloadSpec::setHeaderChecksum | ( | const zypp::CheckSum & | sum | ) |
Definition at line 161 of file downloadspec.cc.
|
private |
Definition at line 109 of file downloadspec.h.