libyui-ncurses-pkg  2.48.2
 All Classes Functions
NCPkgStatusStrategy Class Referenceabstract
Inheritance diagram for NCPkgStatusStrategy:

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. More...
 
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 52 of file NCPkgStatusStrategy.h.

Member Function Documentation

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.

Definition at line 80 of file NCPkgStatusStrategy.cc.

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.

Definition at line 124 of file NCPkgStatusStrategy.cc.

Here is the call graph for this function:

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 MultiVersionStatStrategy, AvailableStatStrategy, PatchStatStrategy, PatchPkgStatStrategy, and SelectionStatStrategy.

Definition at line 100 of file NCPkgStatusStrategy.cc.

bool NCPkgStatusStrategy::toggleStatus ( ZyppSel  slbPtr,
ZyppObj  objPtr,
ZyppStatus &  newStat 
)
virtual

Toggles the package status (e.g.

from installed to delete)

Parameters
Theobject pointer
Returns
bool

Reimplemented in PatchStatStrategy.

Definition at line 231 of file NCPkgStatusStrategy.cc.

Here is the call graph for this function:


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