#include <ResObject.h>
Public Types | |
| typedef detail::ResObjectImplIf | Impl |
| typedef ResObject | Self |
| typedef ResTraits< Self > | TraitsType |
| typedef TraitsType::PtrType | Ptr |
| typedef TraitsType::constPtrType | constPtr |
Public Member Functions | |
| Text | summary () const |
| Text | description () const |
| Text | insnotify () const |
| Text | delnotify () const |
| Text | licenseToConfirm () const |
| Vendor | vendor () const |
| ByteCount | size () const |
| Installed size. | |
| ByteCount | downloadSize () const |
| Size of the rpm package. | |
| ZYPP_DEPRECATED ByteCount | archivesize () const |
| Repository | repository () const |
| Source providing this resolvable. | |
| unsigned | mediaNr () const |
| Media number where the resolvable is located 0 if no media access is required. | |
| bool | installOnly () const |
| FIXME what is this? | |
| Date | buildtime () const |
| Date | installtime () const |
| const DiskUsage & | diskusage () const |
Protected Member Functions | |
| ResObject (const Kind &kind_r, const NVRAD &nvrad_r) | |
| Ctor. | |
| virtual | ~ResObject () |
| Dtor. | |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| Helper for stream output. | |
Private Member Functions | |
| virtual Impl & | pimpl ()=0 |
| Access implementation. | |
| virtual const Impl & | pimpl () const =0 |
| Access implementation. | |
Friends | |
| class | detail::ImplConnect |
Related Functions | |
| (Note that these are not member functions.) | |
| template<class _Res> | |
| ResTraits< _Res > ::PtrType | asKind (const ResObject::Ptr &p) |
| Convert ResObject::Ptr into Ptr of a certain Kind. | |
That is, all data not needed for solving, but common across all Resolvable kinds.
Definition at line 44 of file ResObject.h.
Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.
Definition at line 47 of file ResObject.h.
| typedef ResObject zypp::ResObject::Self |
Reimplemented from zypp::Resolvable.
Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.
Definition at line 48 of file ResObject.h.
| typedef ResTraits<Self> zypp::ResObject::TraitsType |
Reimplemented from zypp::Resolvable.
Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.
Definition at line 49 of file ResObject.h.
Reimplemented from zypp::Resolvable.
Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.
Definition at line 50 of file ResObject.h.
Reimplemented from zypp::Resolvable.
Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.
Definition at line 51 of file ResObject.h.
| zypp::ResObject::~ResObject | ( | ) | [protected, virtual] |
| Text zypp::ResObject::summary | ( | ) | const |
Short text describing the resolvable. This attribute is usually displayed in columns.
Definition at line 59 of file ResObject.cc.
References pimpl().
Referenced by zypp::Product::longName().
| Text zypp::ResObject::description | ( | ) | const |
Long text describing the resolvable.
Definition at line 62 of file ResObject.cc.
References pimpl().
| Text zypp::ResObject::insnotify | ( | ) | const |
Installation Notification This text can be used to tell the user some notes When he selects the resovable for installation.
Definition at line 65 of file ResObject.cc.
References pimpl().
| Text zypp::ResObject::delnotify | ( | ) | const |
De-Installation Notification This text can be used to tell the user some notes When he selects the resovable for deinstall.
Definition at line 68 of file ResObject.cc.
References pimpl().
| License zypp::ResObject::licenseToConfirm | ( | ) | const |
License or agreement to accept Agreement, warning or license the user should accept before installing the resolvable.
Definition at line 71 of file ResObject.cc.
References pimpl().
| Vendor zypp::ResObject::vendor | ( | ) | const |
Vendor For Example "Novell Inc."
Reimplemented in zypp::Product.
Definition at line 74 of file ResObject.cc.
References pimpl().
| ByteCount zypp::ResObject::size | ( | ) | const |
| ByteCount zypp::ResObject::downloadSize | ( | ) | const |
Size of the rpm package.
Definition at line 83 of file ResObject.cc.
References pimpl().
Referenced by archivesize().
| ZYPP_DEPRECATED ByteCount zypp::ResObject::archivesize | ( | ) | const [inline] |
| Repository zypp::ResObject::repository | ( | ) | const |
Source providing this resolvable.
Definition at line 80 of file ResObject.cc.
References pimpl().
Referenced by zypp::repo::doProvideScript(), zypp::repo::doProvideSrcPackage(), and dumpOn().
| unsigned zypp::ResObject::mediaNr | ( | ) | const |
Media number where the resolvable is located 0 if no media access is required.
Definition at line 86 of file ResObject.cc.
References pimpl().
Referenced by dumpOn().
| bool zypp::ResObject::installOnly | ( | ) | const |
| Date zypp::ResObject::buildtime | ( | ) | const |
| Date zypp::ResObject::installtime | ( | ) | const |
Installation time 0 if the resolvable is not installed.
Definition at line 95 of file ResObject.cc.
References pimpl().
| const DiskUsage & zypp::ResObject::diskusage | ( | ) | const |
Disk usage per directory A common attribute, although mostly packages require noticeable disk space. An e.g product could try to reserve a certain ammount of diskspace by providing DiskUsage data.
Definition at line 98 of file ResObject.cc.
References pimpl().
| std::ostream & zypp::ResObject::dumpOn | ( | std::ostream & | str | ) | const [protected, virtual] |
Helper for stream output.
Reimplemented from zypp::Resolvable.
Definition at line 47 of file ResObject.cc.
References zypp::Resolvable::dumpOn(), mediaNr(), zypp::Repository::numericId(), and repository().
| virtual Impl& zypp::ResObject::pimpl | ( | ) | [private, pure virtual] |
Access implementation.
Implemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.
Referenced by buildtime(), delnotify(), description(), diskusage(), downloadSize(), insnotify(), installOnly(), installtime(), licenseToConfirm(), mediaNr(), repository(), size(), summary(), and vendor().
| virtual const Impl& zypp::ResObject::pimpl | ( | ) | const [private, pure virtual] |
Access implementation.
Implemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.
friend class detail::ImplConnect [friend] |
Definition at line 155 of file ResObject.h.
| ResTraits< _Res >::PtrType asKind | ( | const ResObject::Ptr & | p | ) | [related] |
Convert ResObject::Ptr into Ptr of a certain Kind.
Convert Resolvable::Ptr into Ptr of a certain Kind.
NULL iff p is NULL or points to a Resolvable not of the specified Kind.asKind<Package>(resPtr);
Definition at line 172 of file ResObject.h.
1.5.3