53 {
static zypp::shared_ptr<Impl> _nullimpl(
new Impl );
return _nullimpl; }
87 {
static zypp::shared_ptr<Impl> _nullimpl(
new Impl );
return _nullimpl; }
96 : _pimpl( new
Impl(
std::move(label),
std::move(verifyData), medianr ) )
158 return zypp::indeterminate;
164 if ( !zypp::indeterminate (
check) )
169 bool intersect =
false;
170 for (
const auto &u: l1 ) {
171 intersect = ( std::find( l2.begin (), l2.end(), u ) != l2.end() );
178 return intersects( originA, originB );
189 {
return str << obj; }
193 : _pimpl( new
Impl() )
197 : _pimpl( new
Impl() )
ProvideFileSpec & setHeaderChecksum(const zypp::CheckSum &val_r)
Set the headerChecksum.
ProvideFileSpec & setOptional(bool val)
Set whether the resource is optional.
zypp::CheckSum _openChecksum
const zypp::ByteCount & openSize() const
The size of the resource once it has been uncompressed or unpacked.
HeaderValueMap _customHeaders
zypp::CheckSum _headerChecksum
Store and operate with byte count.
const zypp::CheckSum & openChecksum() const
The checksum of the resource once it has been uncompressed or unpacked.
ProvideSpecBasePrivate & operator=(const ProvideSpecBasePrivate &)=delete
zypp::RWCOW_pointer< Impl > _pimpl
Implementation class.
String related utilities and Regular expression matching.
const zypp::Pathname & deltafile() const
The existing deltafile that can be used to reduce download size ( zchunk or metalink ) ...
zypp::Pathname _deltafile
zypp::ByteCount _openSize
ProvideFileSpec & setOpenChecksum(const zypp::CheckSum &val_r)
Set the openChecksum.
zypp::OnMediaLocation asOnMediaLocation(const zypp::Pathname &path, unsigned int mediaNr) const
ProvideFileSpec & setDestFilenameHint(const zypp::Pathname &filename)
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
bool empty() const
Test for an empty path.
zypp::Pathname _destFilenameHint
const zypp::CheckSum & checksum() const
The checksum of the resource on the server.
Manages a data source characterized by an authoritative URL and a list of mirror URLs.
ProvideFileSpec & setDeltafile(const zypp::Pathname &path)
Set the deltafile.
virtual ~ProvideSpecBasePrivate()
ProvideFileSpec & setMirrorsAllowed(bool set=true)
Enables or disables the use of mirrors when fetching this file.
const zypp::CheckSum & headerChecksum() const
The checksum of the header prepending the resource (e.g.
zypp::ByteCount _headerSize
ProvideFileSpec & setHeaderSize(const zypp::ByteCount &val_r)
Set the headerSize.
zypp::Pathname _mediaSpecFile
ProvideFileSpec & addCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
const zypp::ByteCount & downloadSize() const
The size of the resource on the server.
const zypp::Pathname & destFilenameHint() const
ProvideFileSpec & setOpenSize(const zypp::ByteCount &val_r)
Set the openSize.
std::ostream & dumpOn(std::ostream &str, const ProvideFileSpec::Impl &obj)
relates: ProvideSpec::Impl Verbose stream output
ProvideFileSpec & setChecksum(const zypp::CheckSum &val_r)
Set the checksum.
static zypp::shared_ptr< Impl > nullimpl()
Offer default Impl.
ProvideFileSpec & setDownloadSize(const zypp::ByteCount &val_r)
Set the downloadSize.
bool optional() const
Whether this is an optional resource.
bool check(const std::string &sequenceinfo_r, bool quick_r)
Check via sequence info.
zypp::ByteCount _downloadSize
bool mirrorsAllowed() const
The requested file is allowed to be fetched via mirrors ( defaults to true )
ProvideFileSpec & setCheckExistsOnly(const bool set=true)
std::ostream & operator<<(std::ostream &str, zypp::RepoManagerFlags::RawMetadataRefreshPolicy obj)
ProvideFileSpec & setCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
const zypp::ByteCount & headerSize() const
The size of the header prepending the resource (e.g.
HeaderValueMap & customHeaders()
bool checkExistsOnly() const