libyui-ncurses-pkg  2.48.5
PatchStatStrategy Class Reference
Inheritance diagram for PatchStatStrategy:
Collaboration diagram for PatchStatStrategy:

Public Member Functions

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 the patch). More...
 
virtual bool toggleStatus (ZyppSel slbPtr, ZyppObj objPtr, ZyppStatus &newStat)
 Toggles the patch status (e.g. More...
 
virtual bool setObjectStatus (ZyppStatus newstatus, ZyppSel slbPtr, ZyppObj objPtr)
 Sets the status of the patch AND the status of the patch packages. More...
 
- Public Member Functions inherited from NCPkgStatusStrategy
virtual ZyppStatus getPackageStatus (ZyppSel slbPtr, ZyppObj objPtr)
 Gets the status information from the package manager. More...
 
void solveResolvableCollections ()
 
Do a "small" solver run for all "resolvable collections", i.e., for selections, patterns, languages, patches.
 

Detailed Description

Definition at line 199 of file NCPkgStatusStrategy.h.

Member Function Documentation

◆ keyToStatus()

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

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

Parameters
keyThe userinput (the key which is pressed)
slbPtrThe object pointer (the patch pointer)
newStatusThe new package status
Returns
bool

Reimplemented from NCPkgStatusStrategy.

Definition at line 352 of file NCPkgStatusStrategy.cc.

Here is the call graph for this function:

◆ setObjectStatus()

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

Sets the status of the patch AND the status of the patch packages.

Parameters
newStatusThe new package status
slbPtrThe object pointer (e.g. a package pointer)
Returns
bool

Reimplemented from NCPkgStatusStrategy.

Definition at line 490 of file NCPkgStatusStrategy.cc.

Here is the call graph for this function:

◆ toggleStatus()

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

Toggles the patch status (e.g.

from selected to unselected)

Parameters
Theobject pointer
Returns
bool

Reimplemented from NCPkgStatusStrategy.

Definition at line 437 of file NCPkgStatusStrategy.cc.

Here is the call graph for this function:

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