libzypp
10.5.0
|
#include <Package.h>
Public Types | |
typedef Package | Self |
typedef ResTraits< Self > | TraitsType |
typedef TraitsType::PtrType | Ptr |
typedef TraitsType::constPtrType | constPtr |
typedef sat::ArrayAttr < PackageKeyword, IdString > | Keywords |
typedef sat::ArrayAttr < std::string, std::string > | FileList |
Public Member Functions | |
VendorSupportOption | vendorSupport () const |
Returns the level of supportability the vendor gives to this package. | |
bool | maybeUnsupported () const |
True if the vendor support for this package is unknown or explictly unsupported. | |
Changelog | changelog () const |
Get the package change log. | |
std::string | buildhost () const |
std::string | distribution () const |
The distribution string. | |
std::string | license () const |
std::string | packager () const |
std::string | group () const |
Keywords | keywords () const |
std::string | url () const |
Don't ship it as class Url, because it might be in fact anything but a legal Url. | |
ByteCount | sourcesize () const |
Size of corresponding the source package. | |
std::list< std::string > | authors () const |
FileList | filelist () const |
Return the packages filelist (if available). | |
CheckSum | checksum () const |
Checksum the source says this package should have. | |
OnMediaLocation | location () const |
Location of the resolvable in the repository. | |
Source package handling | |
std::string | sourcePkgName () const |
Name of the source rpm this package was built from. | |
Edition | sourcePkgEdition () const |
Edition of the source rpm this package was built from. | |
std::string | sourcePkgType () const |
The type of the source rpm ("src" or "nosrc" ). | |
std::string | sourcePkgLongName () const |
The source rpms "name-version-release.type" . | |
Protected Member Functions | |
Package (const sat::Solvable &solvable_r) | |
Ctor. | |
virtual | ~Package () |
Dtor. | |
Friends | |
Ptr | make (const sat::Solvable &solvable_r) |
Directly create a certain kind of ResObject from sat::Solvable. |
typedef Package zypp::Package::Self |
Reimplemented from zypp::ResObject.
typedef ResTraits<Self> zypp::Package::TraitsType |
Reimplemented from zypp::ResObject.
Reimplemented from zypp::ResObject.
Reimplemented from zypp::ResObject.
typedef sat::ArrayAttr<std::string,std::string> zypp::Package::FileList |
zypp::Package::Package | ( | const sat::Solvable & | solvable_r | ) | [protected] |
Ctor.
Definition at line 33 of file Package.cc.
zypp::Package::~Package | ( | ) | [protected, virtual] |
Dtor.
Definition at line 42 of file Package.cc.
VendorSupportOption zypp::Package::vendorSupport | ( | ) | const |
Returns the level of supportability the vendor gives to this package.
This is one value from VendorSupportOption
Definition at line 45 of file Package.cc.
bool zypp::Package::maybeUnsupported | ( | ) | const |
True if the vendor support for this package is unknown or explictly unsupported.
Definition at line 70 of file Package.cc.
Changelog zypp::Package::changelog | ( | ) | const |
Get the package change log.
Definition at line 79 of file Package.cc.
std::string zypp::Package::buildhost | ( | ) | const |
Definition at line 98 of file Package.cc.
std::string zypp::Package::distribution | ( | ) | const |
The distribution string.
E.g. code-11
.
Reimplemented from zypp::ResObject.
Definition at line 101 of file Package.cc.
std::string zypp::Package::license | ( | ) | const |
Definition at line 104 of file Package.cc.
std::string zypp::Package::packager | ( | ) | const |
Definition at line 107 of file Package.cc.
std::string zypp::Package::group | ( | ) | const |
Definition at line 110 of file Package.cc.
Package::Keywords zypp::Package::keywords | ( | ) | const |
Definition at line 113 of file Package.cc.
std::string zypp::Package::url | ( | ) | const |
Don't ship it as class Url, because it might be in fact anything but a legal Url.
Definition at line 116 of file Package.cc.
ByteCount zypp::Package::sourcesize | ( | ) | const |
Size of corresponding the source package.
Definition at line 119 of file Package.cc.
std::list< std::string > zypp::Package::authors | ( | ) | const |
Definition at line 122 of file Package.cc.
Package::FileList zypp::Package::filelist | ( | ) | const |
Return the packages filelist (if available).
The returned FileList appears to be a container of std::string
. In fact it is a query, so it does not consume much memory.
Definition at line 129 of file Package.cc.
std::string zypp::Package::sourcePkgName | ( | ) | const |
Name of the source rpm this package was built from.
Definition at line 138 of file Package.cc.
Edition zypp::Package::sourcePkgEdition | ( | ) | const |
Edition of the source rpm this package was built from.
Definition at line 145 of file Package.cc.
std::string zypp::Package::sourcePkgType | ( | ) | const |
The type of the source rpm ("src"
or "nosrc"
).
Definition at line 152 of file Package.cc.
std::string zypp::Package::sourcePkgLongName | ( | ) | const |
The source rpms "name-version-release.type"
.
Definition at line 155 of file Package.cc.
CheckSum zypp::Package::checksum | ( | ) | const |
Checksum the source says this package should have.
Definition at line 132 of file Package.cc.
OnMediaLocation zypp::Package::location | ( | ) | const |
Location of the resolvable in the repository.
OnMediaLocation conatins all information required to retrieve the packge (url, checksum, etc.).
Definition at line 135 of file Package.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.