libyui-ncurses-pkg
Loading...
Searching...
No Matches
MultiVersionStatStrategy Class Reference
Inheritance diagram for MultiVersionStatStrategy:
Collaboration diagram for MultiVersionStatStrategy:

Public Member Functions

virtual ZyppStatus getPackageStatus (ZyppSel slbPtr, ZyppObj objPtr)
 
virtual bool setObjectStatus (ZyppStatus newstatus, ZyppSel slbPtr, ZyppObj objPtr)
 
virtual bool anyMultiVersionToInstall (ZyppSel slbPtr, bool multiversion) const
 
virtual bool mixedMultiVersionPopup (bool multiversion) const
 
- Public Member Functions inherited from NCPkgStatusStrategy
virtual ZyppStatus getPackageStatus (ZyppSel slbPtr, ZyppObj objPtr)
 
virtual bool setObjectStatus (ZyppStatus newstatus, ZyppSel slbPtr, ZyppObj objPtr)
 
virtual bool keyToStatus (const int &key, ZyppSel slbPtr, ZyppObj objPtr, ZyppStatus &newStat)
 
virtual bool cycleStatus (ZyppSel slbPtr, ZyppObj objPtr, ZyppStatus &newStat_ret)
 
void solveResolvableCollections ()
 

Member Function Documentation

◆ anyMultiVersionToInstall()

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

◆ getPackageStatus()

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.

◆ mixedMultiVersionPopup()

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

◆ setObjectStatus()

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.


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