|
libzypp
9.1.2
|
#include <Product.h>

Classes | |
| class | UrlList |
| Helper to iterate a products URL lists. More... | |
Public Types | |
| typedef Product | Self |
| typedef ResTraits< Self > | TraitsType |
| typedef TraitsType::PtrType | Ptr |
| typedef TraitsType::constPtrType | constPtr |
| typedef std::vector< constPtr > | ReplacedProducts |
Public Member Functions | |
| sat::Solvable | referencePackage () const |
| The reference package providing the product metadata, if such a package exists. | |
| std::string | referenceFilename () const |
For installed products the name of the coddesponding /etc/products.d entry. | |
| CapabilitySet | droplist () const |
| List of packages included in older versions of this product and now dropped. | |
| ReplacedProducts | replacedProducts () const |
| Array of installed Products that would be replaced by installing this one. | |
| std::string | productLine () const |
| Vendor specific string denoting the product line. | |
| std::string | shortName () const |
Untranslated short name like SLES 10 | |
| std::string | flavor () const |
| The product flavor (LiveCD Demo, FTP edition,...). | |
| std::string | type () const ZYPP_DEPRECATED |
| Get the product type Well, in an ideal world there is only one base product. | |
| std::list< std::string > | flags () const |
| The product flags. | |
| bool | isTargetDistribution () const |
This is the installed product that is also targeted by the /etc/products.d/baseproduct symlink. | |
| std::string | registerTarget () const |
This is register.target attribute of an installed product. | |
| std::string | registerRelease () const |
This is register.release attribute of an installed product. | |
| UrlList | urls (const std::string &key_r) const |
Rerieve urls flagged with key_r for this product. | |
| UrlList | releaseNotesUrls () const |
| The URL to download the release notes for this product. | |
| UrlList | registerUrls () const |
| The URL for registration. | |
| UrlList | smoltUrls () const |
| The URL for SMOLT. | |
| UrlList | updateUrls () const |
| Online updates for the product. | |
| UrlList | extraUrls () const |
| Additional software for the product They are complementary, not alternatives. | |
| UrlList | optionalUrls () const |
| Optional software for the product. | |
Protected Member Functions | |
| Product (const sat::Solvable &solvable_r) | |
| Ctor. | |
| virtual | ~Product () |
| Dtor. | |
Friends | |
| Ptr | make (const sat::Solvable &solvable_r) |
| Directly create a certain kind of ResObject from sat::Solvable. | |
| typedef Product zypp::Product::Self |
Reimplemented from zypp::ResObject.
| typedef ResTraits<Self> zypp::Product::TraitsType |
Reimplemented from zypp::ResObject.
Reimplemented from zypp::ResObject.
Reimplemented from zypp::ResObject.
| typedef std::vector<constPtr> zypp::Product::ReplacedProducts |
| zypp::Product::Product | ( | const sat::Solvable & | solvable_r | ) | [protected] |
Ctor.
Definition at line 62 of file Product.cc.
| zypp::Product::~Product | ( | ) | [protected, virtual] |
Dtor.
Definition at line 71 of file Product.cc.
| sat::Solvable zypp::Product::referencePackage | ( | ) | const |
The reference package providing the product metadata, if such a package exists.
Definition at line 76 of file Product.cc.
References zypp::Resolvable::arch(), zypp::sat::WhatProvides::begin(), zypp::Resolvable::edition(), zypp::sat::Solvable::edition(), zypp::sat::WhatProvides::end(), for_, zypp::str::form(), zypp::Resolvable::name(), zypp::ResObject::repository(), and WAR.
| std::string zypp::Product::referenceFilename | ( | ) | const |
For installed products the name of the coddesponding /etc/products.d entry.
Definition at line 102 of file Product.cc.
References zypp::sat::Solvable::lookupStrAttribute(), and zypp::sat::SolvAttr::productReferenceFile.
| CapabilitySet zypp::Product::droplist | ( | ) | const |
List of packages included in older versions of this product and now dropped.
This evaluates the referencePackage weakremover namespace. It actually returns a CapabilitySet, because we support to drop specific versions or version ranges of a package. Use sat::WhatProvides to get the actually installed and available packages matching this list.
const Product & openSUSE; sat::WhatProvides dropped( openSUSE.droplist() ); for_( it, dropped.poolItemBegin(), dropped.poolItemEnd() ) { if ( it->status().isInstalled() ) { MIL << "Installed but no longer supported package: " << *it << endl; } }
Definition at line 131 of file Product.cc.
References zypp::PoolItem::buddy(), zypp::Resolvable::poolItem(), and zypp::sat::Solvable::valuesOfNamespace().
Array of installed Products that would be replaced by installing this one.
Definition at line 105 of file Product.cc.
References zypp::sat::WhatObsoletes::begin(), zypp::sat::WhatObsoletes::end(), for_, zypp::Resolvable::poolItem(), zypp::sat::SolvIterMixin< Derived, DerivedSolvable_iterator >::poolItemBegin(), zypp::sat::SolvIterMixin< Derived, DerivedSolvable_iterator >::poolItemEnd(), zypp::ResKind::product, and zypp::Resolvable::satSolvable().
| std::string zypp::Product::productLine | ( | ) | const |
Vendor specific string denoting the product line.
Definition at line 134 of file Product.cc.
References zypp::sat::Solvable::lookupStrAttribute(), and zypp::sat::SolvAttr::productProductLine.
| std::string zypp::Product::shortName | ( | ) | const |
Untranslated short name like SLES 10
Definition at line 139 of file Product.cc.
References zypp::sat::Solvable::lookupStrAttribute(), and zypp::sat::SolvAttr::productShortlabel.
| std::string zypp::Product::flavor | ( | ) | const |
The product flavor (LiveCD Demo, FTP edition,...).
Definition at line 142 of file Product.cc.
References zypp::Capabilities::begin(), zypp::sat::WhatProvides::begin(), zypp::Resolvable::edition(), zypp::Capabilities::end(), zypp::sat::WhatProvides::end(), for_, zypp::str::form(), zypp::str::hasPrefix(), zypp::Resolvable::name(), zypp::Resolvable::provides(), zypp::ResObject::repository(), and zypp::str::stripPrefix().
| std::string zypp::Product::type | ( | ) | const |
Get the product type Well, in an ideal world there is only one base product.
It's the installed product denoted by a symlink in /etc/products.d.
Definition at line 171 of file Product.cc.
References zypp::sat::Solvable::lookupStrAttribute(), and zypp::sat::SolvAttr::productType.
| std::list< std::string > zypp::Product::flags | ( | ) | const |
The product flags.
Definition at line 174 of file Product.cc.
References zypp::sat::SolvAttr::productFlags, and zypp::Resolvable::satSolvable().
| bool zypp::Product::isTargetDistribution | ( | ) | const |
This is the installed product that is also targeted by the /etc/products.d/baseproduct symlink.
Definition at line 181 of file Product.cc.
References zypp::Resolvable::isSystem(), zypp::sat::Solvable::lookupStrAttribute(), and zypp::sat::SolvAttr::productType.
| std::string zypp::Product::registerTarget | ( | ) | const |
This is register.target attribute of an installed product.
Used for registration.
Definition at line 184 of file Product.cc.
References zypp::sat::Solvable::lookupStrAttribute(), and zypp::sat::SolvAttr::productRegisterTarget.
| std::string zypp::Product::registerRelease | ( | ) | const |
This is register.release attribute of an installed product.
Used for registration.
Definition at line 187 of file Product.cc.
References zypp::sat::Solvable::lookupStrAttribute(), and zypp::sat::SolvAttr::productRegisterRelease.
| Product::UrlList zypp::Product::urls | ( | const std::string & | key_r | ) | const |
Rerieve urls flagged with key_r for this product.
This is the most common interface. There are convenience methods for wellknown flags like "releasenotes", "register", "updateurls", "extraurls", "optionalurls" and "smolt" below.
Definition at line 192 of file Product.cc.
References zypp::Product::UrlList::_list, zypp::sat::LookupAttr::begin(), zypp::sat::LookupAttr::end(), ERR, zypp::sat::SolvAttr::productUrl, zypp::sat::SolvAttr::productUrlType, and url.
Referenced by extraUrls(), optionalUrls(), registerUrls(), releaseNotesUrls(), smoltUrls(), and updateUrls().
The URL to download the release notes for this product.
Definition at line 220 of file Product.cc.
References urls().
| Product::UrlList zypp::Product::registerUrls | ( | ) | const |
| Product::UrlList zypp::Product::smoltUrls | ( | ) | const |
The URL for SMOLT.
Definition at line 222 of file Product.cc.
References urls().
| Product::UrlList zypp::Product::updateUrls | ( | ) | const |
Online updates for the product.
They are complementary, not alternatives. #163192
Definition at line 223 of file Product.cc.
References urls().
| Product::UrlList zypp::Product::extraUrls | ( | ) | const |
Additional software for the product They are complementary, not alternatives.
Definition at line 224 of file Product.cc.
References urls().
| Product::UrlList zypp::Product::optionalUrls | ( | ) | const |
Optional software for the product.
(for example. Non OSS repositories) They are complementary, not alternatives.
Definition at line 225 of file Product.cc.
References urls().
| Ptr make | ( | const sat::Solvable & | solvable_r | ) | [friend] |
Directly create a certain kind of ResObject from sat::Solvable.
If the sat::Solvables kind is not appropriate, a NULL pointer is returned.
sat::Solvable s; ResObject::Ptr p( makeResObject( s ) ); ResObject::Ptr q( make<ResObject>( s ) ); Package::Ptr pkg( make<Package>( s ) );
Definition at line 236 of file ResObject.h.
1.7.6.1