libyui-ncurses-pkg
Loading...
Searching...
No Matches
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)
 
virtual bool cycleStatus (ZyppSel slbPtr, ZyppObj objPtr, ZyppStatus &newStat_ret)
 
virtual bool setObjectStatus (ZyppStatus newstatus, ZyppSel slbPtr, ZyppObj objPtr)
 
- Public Member Functions inherited from NCPkgStatusStrategy
virtual ZyppStatus getPackageStatus (ZyppSel slbPtr, ZyppObj objPtr)
 
void solveResolvableCollections ()
 

Member Function Documentation

◆ cycleStatus()

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

Cycle the patch status (e.g. from selected to unselected)

Reimplemented from NCPkgStatusStrategy.

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

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


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