libyui-ncurses-pkg  2.43.4.1
 All Classes Functions
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 toggleStatus (ZyppSel slbPtr, ZyppObj objPtr, ZyppStatus &newStat)
 
void solveResolvableCollections ()
 

Detailed Description

Definition at line 53 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 79 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 123 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 99 of file NCPkgStatusStrategy.cc.

void NCPkgStatusStrategy::solveResolvableCollections ( )

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

Definition at line 308 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

Definition at line 230 of file NCPkgStatusStrategy.cc.

Here is the call graph for this function:


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