Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

PMObject Class Reference

Interface class for stuff common to all objects (Packages, Selections,..). More...

#include <PMObject.h>

Inheritance diagram for PMObject:

PMSolvable CountedRep Rep PMPackage PMSelection PMYouPatch List of all members.

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

Detailed Description

Interface class for stuff common to all objects (Packages, Selections,..).


Constructor & Destructor Documentation

PMObject::PMObject const PkgName name_r,
const PkgEdition edition_r,
const PkgArch arch_r
 

PMObject::~PMObject  )  [virtual]
 


Member Function Documentation

std::list< std::string > PMObject::delnotify  )  const [pure virtual]
 

Implemented in PMPackage, PMSelection, and PMYouPatch.

std::list< std::string > PMObject::description  )  const [pure virtual]
 

Implemented in PMPackage, PMSelection, and PMYouPatch.

ostream & PMObject::dumpOn std::ostream &  str  )  const [virtual]
 

Used by ostream::operator<< to print some debug lines

Reimplemented from PMSolvable.

Reimplemented in PMPackage, PMSelection, and PMYouPatch.

PMObjectPtr PMObject::getCandidateObj  )  const
 

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).

PMObjectPtr PMObject::getInstalledObj  )  const
 

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).

PMSelectablePtr PMObject::getSelectable  )  const [inline]
 

Return the managing Selectable.

bool PMObject::hasCandidateObj  )  const
 

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() !

bool PMObject::hasInstalledObj  )  const
 

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() !

bool PMObject::hasSelectable  )  const [inline]
 

Return true if the Object is linked to a Selectable. This is true if the Object is under controll of a Manager.

std::list< std::string > PMObject::insnotify  )  const [pure virtual]
 

Implemented in PMPackage, PMSelection, and PMYouPatch.

std::string PMObject::instSrcLabel  )  const [pure virtual]
 

Implemented in PMPackage, PMSelection, and PMYouPatch.

unsigned PMObject::instSrcRank  )  const [pure virtual]
 

Implemented in PMPackage, PMSelection, and PMYouPatch.

Vendor PMObject::instSrcVendor  )  const [pure virtual]
 

Implemented in PMPackage, PMSelection, and PMYouPatch.

bool PMObject::isAvailableOnly  )  const
 

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.

bool PMObject::isCandidateObj  )  const
 

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() !

bool PMObject::isInstalledObj  )  const
 

Return true if this is the Selectables InstalledObj (on InstTartget). The one actually installed on the target system. Not to be confused with hasInstalledObj() !

virtual bool PMObject::prefererCandidate  )  const [inline, private, virtual]
 

Internally used by PMSelectable. InstSrc may overwrite candidate selection rules under certain conditions.

Reimplemented in PMPackage.

bool PMObject::providesSources  )  const [pure virtual]
 

Implemented in PMPackage, PMSelection, and PMYouPatch.

PMObject::REP_BODY PMObject   )  [private]
 

FSize PMObject::size  )  const [pure virtual]
 

Implemented in PMPackage, PMSelection, and PMYouPatch.

std::string PMObject::summary  )  const [pure virtual]
 

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.


Member Data Documentation

PMSelectablePtr PMObject::_selectable [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 14:30:32 2007 for yast2-packagemanager by doxygen 1.3.6