libyui-ncurses-pkg  2.48.2
 All Classes Functions
MultiVersionStatStrategy Class Reference
Inheritance diagram for MultiVersionStatStrategy:
Collaboration diagram for MultiVersionStatStrategy:

Public Member Functions

virtual ZyppStatus getPackageStatus (ZyppSel slbPtr, ZyppObj objPtr)
 Gets the status information from the package manager. More...
 
virtual bool setObjectStatus (ZyppStatus newstatus, ZyppSel slbPtr, ZyppObj objPtr)
 Informs the package manager about the new status and additionally sets the candidate object to the user chosen object. More...
 
virtual bool anyMultiVersionToInstall (ZyppSel slbPtr, bool multiversion) const
 Check if any package version is marked for installation where its 'multiversion' flag is set to 'multiversion'. More...
 
virtual bool mixedMultiVersionPopup (bool multiversion) const
 Ask user if he really wants to install incompatible package versions. More...
 
- Public Member Functions inherited from NCPkgStatusStrategy
virtual bool keyToStatus (const int &key, ZyppSel slbPtr, ZyppObj objPtr, ZyppStatus &newStat)
 Returns the new status to the given key (respecting the old status of th eobject). More...
 
virtual bool toggleStatus (ZyppSel slbPtr, ZyppObj objPtr, ZyppStatus &newStat)
 Toggles the package status (e.g. More...
 
void solveResolvableCollections ()
 Do a "small" solver run for all "resolvable collections", i.e., for selections, patterns, languages, patches.
 

Detailed Description

Definition at line 267 of file NCPkgStatusStrategy.h.

Member Function Documentation

bool MultiVersionStatStrategy::anyMultiVersionToInstall ( ZyppSel  slbPtr,
bool  multiversion 
) const
virtual

Check if any package version is marked for installation where its 'multiversion' flag is set to 'multiversion'.

Parameters
slbPtrThe selectable whose status has to be calculated.
multiversionCheck for multiversion or non-multiversion packages.
Returns
bool

Definition at line 733 of file NCPkgStatusStrategy.cc.

ZyppStatus MultiVersionStatStrategy::getPackageStatus ( ZyppSel  slbPtr,
ZyppObj  objPtr 
)
virtual

Gets the status information from the package manager.

Parameters
slbPtrThe package whose status to calculate.
Returns
UI_Status The new status of the given package

Reimplemented from NCPkgStatusStrategy.

Definition at line 665 of file NCPkgStatusStrategy.cc.

bool MultiVersionStatStrategy::mixedMultiVersionPopup ( bool  multiversion) const
virtual

Ask user if he really wants to install incompatible package versions.

Parameters
multiversionSelected package is a multiversion package.
Returns
bool Return 'true' if he hits [Continue], 'false' if [Cancel].

Definition at line 775 of file NCPkgStatusStrategy.cc.

Here is the call graph for this function:

bool MultiVersionStatStrategy::setObjectStatus ( ZyppStatus  newstatus,
ZyppSel  slbPtr,
ZyppObj  objPtr 
)
virtual

Informs the package manager about the new status and additionally sets the candidate object to the user chosen object.

Parameters
newStatusThe new package status
slbPtrThe package pointer
pkgPtrThe object pointer (used for candidate selection)
Returns
bool

Reimplemented from NCPkgStatusStrategy.

Definition at line 685 of file NCPkgStatusStrategy.cc.

Here is the call graph for this function:


The documentation for this class was generated from the following files: