libzypp
10.5.0
|
#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.
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.
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.
Product::ReplacedProducts zypp::Product::replacedProducts | ( | ) | const |
Array of installed Products that would be replaced by installing this one.
Definition at line 105 of file Product.cc.
std::string zypp::Product::productLine | ( | ) | const |
Vendor specific string denoting the product line.
Definition at line 134 of file Product.cc.
std::string zypp::Product::shortName | ( | ) | const |
Untranslated short name like SLES 10
Definition at line 139 of file Product.cc.
std::string zypp::Product::flavor | ( | ) | const |
The product flavor (LiveCD Demo, FTP edition,...).
Definition at line 142 of file Product.cc.
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.
std::list< std::string > zypp::Product::flags | ( | ) | const |
The product flags.
Definition at line 174 of file Product.cc.
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.
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.
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.
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.
Product::UrlList zypp::Product::releaseNotesUrls | ( | ) | const |
The URL to download the release notes for this product.
Definition at line 220 of file Product.cc.
Product::UrlList zypp::Product::registerUrls | ( | ) | const |
The URL for registration.
Definition at line 221 of file Product.cc.
Product::UrlList zypp::Product::smoltUrls | ( | ) | const |
The URL for SMOLT.
Definition at line 222 of file Product.cc.
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.
Product::UrlList zypp::Product::extraUrls | ( | ) | const |
Additional software for the product They are complementary, not alternatives.
Definition at line 224 of file Product.cc.
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.
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.