#include <PMObject.h>
Inheritance diagram for PMObject:
Public Member Functions | |
virtual std::string | summary () const=0 |
virtual std::list< std::string > | description () const=0 |
virtual std::list< std::string > | insnotify () const=0 |
virtual std::list< std::string > | delnotify () const=0 |
virtual FSize | size () const=0 |
virtual bool | providesSources () const=0 |
virtual std::string | instSrcLabel () const=0 |
virtual Vendor | instSrcVendor () const=0 |
virtual unsigned | instSrcRank () const=0 |
PMObject (const PkgName &name_r, const PkgEdition &edition_r, const PkgArch &arch_r) | |
virtual | ~PMObject () |
bool | hasSelectable () const |
PMSelectablePtr | getSelectable () const |
bool | isInstalledObj () const |
bool | isCandidateObj () const |
bool | isAvailableOnly () const |
PMObjectPtr | getInstalledObj () const |
PMObjectPtr | getCandidateObj () const |
bool | hasInstalledObj () const |
bool | hasCandidateObj () const |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Private Member Functions | |
REP_BODY (PMObject) | |
virtual bool | prefererCandidate () const |
Private Attributes | |
PMSelectablePtr | _selectable |
|
|
|
|
|
Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
Used by ostream::operator<< to print some debug lines Reimplemented from PMSolvable. Reimplemented in PMPackage, PMSelection, and PMYouPatch. |
|
Convenience method: Retrieve the candidate instance of this selectable. This may be a brother of this object or this object itself or 0 (if there is no candidate instance or if this object doesn't have a selectable - in which case something has gone wrong badly anyway). |
|
Convenience method: Retrieve the installed instance of this selectable. This may be a brother of this object or this object itself or 0 (if there is no installed instance or if this object doesn't have a selectable - in which case something has gone wrong badly anyway). |
|
Return the managing Selectable. |
|
Convenience method: Check if there is any candidate instance of this selectable - this instance or any of its brothers. Not to be confused with isCandidateObj() ! |
|
Convenience method: Check if there is any installed instance of this selectable - this instance or any of its brothers. Not to be confused with isInstalledObj() ! |
|
Return true if the Object is linked to a Selectable. This is true if the Object is under controll of a Manager. |
|
Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
Short for neither isInstalledObj nor isCandidateObj. Thus the Object is in the Selectables list of available Objects (from an InstSrc), but not considered to be the best choice for an installation. |
|
Return true if this is the Selectables CandidateObj (from an InstSrc). Among all available Objects, this is considered to be the best choice for an installation. Not to be confused with hasCandidateObj() ! |
|
Return true if this is the Selectables InstalledObj (on InstTartget). The one actually installed on the target system. Not to be confused with hasInstalledObj() ! |
|
Internally used by PMSelectable. InstSrc may overwrite candidate selection rules under certain conditions. Reimplemented in PMPackage. |
|
Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
|
|
Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
PMObject attributes that should be realized by each concrete Object. Mostly because the UI likes to have some data to show. If there are no data a concrete Object could provide, call PMObjects default implementation. Implemented in PMPackage, PMSelection, and PMYouPatch. |
|
|