libyui-ncurses-pkg
Loading...
Searching...
No Matches
NCPkgStatusStrategy Class Referenceabstract
Inheritance diagram for NCPkgStatusStrategy:

Public Member Functions

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

◆ cycleStatus()

bool NCPkgStatusStrategy::cycleStatus ( ZyppSel slbPtr,
ZyppObj objPtr,
ZyppStatus & newStat_ret )
virtual

Cyle the package status (e.g. from installed to delete)

Reimplemented in PatchStatStrategy.

◆ getPackageStatus()

ZyppStatus NCPkgStatusStrategy::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 in MultiVersionStatStrategy.

◆ keyToStatus()

bool NCPkgStatusStrategy::keyToStatus ( const int & key,
ZyppSel slbPtr,
ZyppObj objPtr,
ZyppStatus & newStat )
virtual

Returns the new status to the given key (respecting the old status of th eobject).

Parameters
keyThe userinput (the key which is pressed)
slbPtrThe object pointer (e.g. a package pointer)
newStatusThe new package status
Returns
bool

Reimplemented in PatchStatStrategy.

◆ setObjectStatus()

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

Informs the package manager about the new status.

Parameters
newStatusThe new package status
slbPtrThe selectable pointer (e.g. a package pointer)
pkgPtrThe object pointer (used for candidate selection)
Returns
bool

Reimplemented in SelectionStatStrategy, PatchPkgStatStrategy, PatchStatStrategy, AvailableStatStrategy, and MultiVersionStatStrategy.

◆ solveResolvableCollections()

void NCPkgStatusStrategy::solveResolvableCollections ( )

Do a "small" solver run for all "resolvable collections", i.e., for selections, patterns, languages, patches.


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