Main Page | Namespace List | Class Hierarchy | Class List | Directories | 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 PMLanguage PMPackage PMSelection PMYouPatch List of all members.

Public Member Functions

bool hasLicenseToConfirm () const
void markLicenseConfirmed ()
void markLicenseUnconfirmed ()
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
bool _license_to_confirm

Friends

class PMManager
class PMSelectable

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 PMLanguage, PMPackage, PMSelection, and PMYouPatch.

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

Implemented in PMLanguage, PMPackage, PMSelection, and PMYouPatch.

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

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

Reimplemented from PMSolvable.

Reimplemented in PMLanguage, 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::hasLicenseToConfirm  )  const [inline]
 

check if the license of the package was confirmed

Returns:
true if was accepted (no more confirmation needed), false if not

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 PMLanguage, PMPackage, PMSelection, and PMYouPatch.

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

Implemented in PMLanguage, PMPackage, PMSelection, and PMYouPatch.

unsigned PMObject::instSrcRank  )  const [pure virtual]
 

Implemented in PMLanguage, PMPackage, PMSelection, and PMYouPatch.

Vendor PMObject::instSrcVendor  )  const [pure virtual]
 

Implemented in PMLanguage, 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() !

void PMObject::markLicenseConfirmed  )  [inline]
 

mark the license of the package as confirmed

void PMObject::markLicenseUnconfirmed  )  [inline]
 

mark the license of the package as unconfirmed

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 PMLanguage, PMPackage, PMSelection, and PMYouPatch.

PMObject::REP_BODY PMObject   )  [private]
 

FSize PMObject::size  )  const [pure virtual]
 

Implemented in PMLanguage, 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 PMLanguage, PMPackage, PMSelection, and PMYouPatch.


Friends And Related Function Documentation

friend class PMManager [friend]
 

friend class PMSelectable [friend]
 


Member Data Documentation

bool PMObject::_license_to_confirm [private]
 

Mark if the license was accepted by the user In order not to ask again and again... Defaults to 'false', i.e. no licence to confirm.

PMSelectablePtr PMObject::_selectable [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 12 21:52:14 2005 for yast2-packagemanager by  doxygen 1.4.4