53 {
static zypp::shared_ptr<Impl> _nullimpl(
new Impl );
return _nullimpl; }
86 {
static zypp::shared_ptr<Impl> _nullimpl(
new Impl );
return _nullimpl; }
101 {
return _pimpl->_label; }
110 {
return _pimpl->_medianr; }
119 {
return _pimpl->_verifyDataPath; }
123 _pimpl->_verifyDataPath = pName;
128 {
return _pimpl->_customHeaders; }
131 {
return _pimpl->_customHeaders; }
135 _pimpl->_customHeaders.set( key,val );
141 _pimpl->_customHeaders.add( key,val );
152 if ( !
_pimpl->_verifyDataPath.empty() ) {
157 return zypp::indeterminate;
167 inline std::ostream &
dumpOn( std::ostream &
str,
const ProvideFileSpec::Impl & obj )
168 {
return str << obj; }
192 {
return _pimpl->_destFilenameHint; }
195 {
_pimpl->_destFilenameHint = filename;
return *
this; }
198 {
return _pimpl->_checkExistsOnly; }
201 {
_pimpl->_checkExistsOnly = set;
return *
this; }
204 {
return _pimpl->_optional; }
207 {
_pimpl->_optional = (val_r);
return *
this; }
210 {
return _pimpl->_downloadSize; }
213 {
_pimpl->_downloadSize = (val_r);
return *
this; }
216 {
return _pimpl->_checksum; }
219 {
_pimpl->_checksum = (val_r);
return *
this; }
222 {
return _pimpl->_openSize; }
225 {
_pimpl->_openSize = (val_r);
return *
this; }
228 {
return _pimpl->_openChecksum; }
231 {
_pimpl->_openChecksum = (val_r);
return *
this; }
234 {
return _pimpl->_headerSize; }
237 {
_pimpl->_headerSize = (val_r);
return *
this; }
240 {
return _pimpl->_headerChecksum; }
243 {
_pimpl->_headerChecksum = (val_r);
return *
this; }
246 {
return _pimpl->_deltafile; }
249 {
_pimpl->_deltafile = (path);
return *
this; }
252 {
return _pimpl->_customHeaders; }
255 {
return _pimpl->_customHeaders; }
259 _pimpl->_customHeaders.set( key,val );
265 _pimpl->_customHeaders.add( key,val );
Store and operate with byte count.
zypp::ByteCount _downloadSize
zypp::ByteCount _openSize
zypp::CheckSum _openChecksum
zypp::CheckSum _headerChecksum
static zypp::shared_ptr< Impl > nullimpl()
Offer default Impl.
zypp::Pathname _mediaSpecFile
zypp::Pathname _deltafile
zypp::ByteCount _headerSize
zypp::Pathname _destFilenameHint
bool optional() const
Whether this is an optional resource.
ProvideFileSpec & setHeaderChecksum(const zypp::CheckSum &val_r)
Set the headerChecksum.
const zypp::CheckSum & openChecksum() const
The checksum of the resource once it has been uncompressed or unpacked.
ProvideFileSpec & setCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
ProvideFileSpec & setDeltafile(const zypp::Pathname &path)
Set the deltafile.
ProvideFileSpec & setCheckExistsOnly(const bool set=true)
HeaderValueMap & customHeaders()
const zypp::Pathname & destFilenameHint() const
ProvideFileSpec & setOptional(bool val)
Set whether the resource is optional.
const zypp::ByteCount & downloadSize() const
The size of the resource on the server.
zypp::OnMediaLocation asOnMediaLocation(const zypp::Pathname &path, unsigned int mediaNr) const
ProvideFileSpec & setOpenSize(const zypp::ByteCount &val_r)
Set the openSize.
ProvideFileSpec & setChecksum(const zypp::CheckSum &val_r)
Set the checksum.
const zypp::ByteCount & openSize() const
The size of the resource once it has been uncompressed or unpacked.
ProvideFileSpec & setOpenChecksum(const zypp::CheckSum &val_r)
Set the openChecksum.
const zypp::Pathname & deltafile() const
The existing deltafile that can be used to reduce download size ( zchunk or metalink )
ProvideFileSpec & setDestFilenameHint(const zypp::Pathname &filename)
zypp::RWCOW_pointer< Impl > _pimpl
Implementation class.
const zypp::CheckSum & checksum() const
The checksum of the resource on the server.
ProvideFileSpec & setDownloadSize(const zypp::ByteCount &val_r)
Set the downloadSize.
const zypp::CheckSum & headerChecksum() const
The checksum of the header prepending the resource (e.g.
ProvideFileSpec & setHeaderSize(const zypp::ByteCount &val_r)
Set the headerSize.
ProvideFileSpec & addCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
const zypp::ByteCount & headerSize() const
The size of the header prepending the resource (e.g.
bool checkExistsOnly() const
HeaderValueMap _customHeaders
ProvideSpecBasePrivate & operator=(const ProvideSpecBasePrivate &)=delete
virtual ~ProvideSpecBasePrivate()
ProvideSpecBasePrivate(const ProvideSpecBasePrivate &)=default
ProvideSpecBasePrivate(ProvideSpecBasePrivate &&)=delete
ProvideSpecBasePrivate & operator=(ProvideSpecBasePrivate &&)=delete
String related utilities and Regular expression matching.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
D * rwcowClone(const D *rhs)
Clone the underlying object.